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 : 2215893 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 (2667749) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2667749) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388973 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2667749'] with mtr_portfolio_ids : ['21388973'] and first list_photo_ids : [] new path : /proc/2215893/ Name: python3 Umask: 0002 State: R (running) Tgid: 2215893 Ngid: 0 Pid: 2215893 PPid: 2215892 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2215893 NSpid: 2215893 NSpgid: 2215082 NSsid: 2215082 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97812 kB VmRSS: 97812 kB RssAnon: 59792 kB RssFile: 38020 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 556 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: 49 nonvoluntary_ctxt_switches: 117 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2215893', 'Ngid': '0', 'Pid': '2215893', 'PPid': '2215892', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2215893', 'NSpid': '2215893', 'NSpgid': '2215082', 'NSsid': '2215082', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97812 kB', 'VmRSS': '97812 kB', 'RssAnon': '59792 kB', 'RssFile': '38020 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '49', 'nonvoluntary_ctxt_switches': '117'} ('datou_batch_current', '2215893', '1106844', '0', '1106844', '865596', '97812', b'', 'marlene', '2667749') 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 (21388973) 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 (2667749 ) ) 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 (21388973) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343868316, 'portfolio_id': 21388973}, {'photo_id': 1343867865, 'portfolio_id': 21388973}, {'photo_id': 1343867823, 'portfolio_id': 21388973}, {'photo_id': 1343867765, 'portfolio_id': 21388973}, {'photo_id': 1343867157, 'portfolio_id': 21388973}, {'photo_id': 1343867086, 'portfolio_id': 21388973}, {'photo_id': 1343866976, 'portfolio_id': 21388973}, {'photo_id': 1343866926, 'portfolio_id': 21388973}, {'photo_id': 1343866841, 'portfolio_id': 21388973}, {'photo_id': 1343866284, 'portfolio_id': 21388973}, {'photo_id': 1343866189, 'portfolio_id': 21388973}, {'photo_id': 1343866132, 'portfolio_id': 21388973}, {'photo_id': 1343866062, 'portfolio_id': 21388973}, {'photo_id': 1343865995, 'portfolio_id': 21388973}, {'photo_id': 1343865640, 'portfolio_id': 21388973}, {'photo_id': 1343865612, 'portfolio_id': 21388973}, {'photo_id': 1343865562, 'portfolio_id': 21388973}, {'photo_id': 1343864893, 'portfolio_id': 21388973}, {'photo_id': 1343864844, 'portfolio_id': 21388973}] map_portfolio_id_photo_id: {21388973: [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844]} ##### 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.8754851818084717 #### 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 Fri Mar 14 05:53:32 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 (21388973) 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 : 21388973 get user id for portfolio 21388973 get sub ptf for main ptf 21388973, type 3726 and hashtags ['environnement', 'Carton_brun', 'metal', 'flou', 'Teint_Dans_La_Masse', 'plastique', 'autre_refus', 'mal_croppe', 'cartonnette', 'kraft', 'papier', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21388973 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','metal','flou','Teint_Dans_La_Masse','plastique','autre_refus','mal_croppe','cartonnette','kraft','papier','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21388973 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','metal','flou','Teint_Dans_La_Masse','plastique','autre_refus','mal_croppe','cartonnette','kraft','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21388973, 'sub_port_id': 21388993, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964107, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'environnement': {'main_port_id': 21388973, 'sub_port_id': 21388994, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964108, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'kraft': {'main_port_id': 21388973, 'sub_port_id': 21388995, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964109, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21388973, 'sub_port_id': 21388996, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964110, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'Carton_brun': {'main_port_id': 21388973, 'sub_port_id': 21388997, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964111, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'metal': {'main_port_id': 21388973, 'sub_port_id': 21388998, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964112, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'papier': {'main_port_id': 21388973, 'sub_port_id': 21388999, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964113, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'autre_refus': {'main_port_id': 21388973, 'sub_port_id': 21389000, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964114, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'plastique': {'main_port_id': 21388973, 'sub_port_id': 21389001, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964115, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'cartonnette': {'main_port_id': 21388973, 'sub_port_id': 21389002, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964116, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'mal_croppe': {'main_port_id': 21388973, 'sub_port_id': 21389003, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964117, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}, 'flou': {'main_port_id': 21388973, 'sub_port_id': 21389004, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964118, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 29, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388993 , 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=21388973 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 (21388993) result : ((1343867999,), (1343868000,), (1343868152,), (1343868565,), (1343898988,), (1343900231,), (1343900232,), (1343900233,), (1343900234,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388994 , 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=21388973 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 (21388994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388995 , 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=21388973 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 (21388995) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388996 , 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=21388973 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 (21388996) result : ((1343867979,), (1343867980,), (1343868091,), (1343868092,), (1343868094,), (1343868140,), (1343900160,), (1343900161,), (1343900162,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388997 , 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=21388973 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 (21388997) result : ((1343868014,), (1343868016,), (1343868017,), (1343868133,), (1343868134,), (1343868136,), (1343900252,), (1343900253,), (1343900254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388998 , 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=21388973 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 (21388998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21388999 , 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=21388973 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 (21388999) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21389000 , 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=21388973 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 (21389000) result : ((1343867986,), (1343867987,), (1343867988,), (1343868111,), (1343868112,), (1343868113,), (1343868114,), (1343868147,), (1343868538,), (1343868539,), (1343868541,), (1343868545,), (1343868549,), (1343868554,), (1343898984,), (1343900176,), (1343900177,), (1343900178,), (1343900179,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21389001 , 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=21388973 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 (21389001) result : ((1343868025,), (1343868026,), (1343900262,), (1343900264,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21389002 , 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=21388973 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 (21389002) result : ((1343868006,), (1343868123,), (1343868124,), (1343900244,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21389003 , 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=21388973 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 (21389003) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21389004 , 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=21388973 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 (21389004) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21388973) result : ((1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21388973 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','metal','flou','Teint_Dans_La_Masse','plastique','autre_refus','mal_croppe','cartonnette','kraft','papier','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21388973 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','metal','flou','Teint_Dans_La_Masse','plastique','autre_refus','mal_croppe','cartonnette','kraft','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21388973, 'sub_port_id': 21389005, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964119, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'environnement': {'main_port_id': 21388973, 'sub_port_id': 21389006, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964120, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'kraft': {'main_port_id': 21388973, 'sub_port_id': 21389007, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964121, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21388973, 'sub_port_id': 21389008, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964122, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'Carton_brun': {'main_port_id': 21388973, 'sub_port_id': 21389009, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964123, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'metal': {'main_port_id': 21388973, 'sub_port_id': 21389010, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964124, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'papier': {'main_port_id': 21388973, 'sub_port_id': 21389011, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964125, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'autre_refus': {'main_port_id': 21388973, 'sub_port_id': 21389012, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964126, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'plastique': {'main_port_id': 21388973, 'sub_port_id': 21389013, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964127, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'cartonnette': {'main_port_id': 21388973, 'sub_port_id': 21389014, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964128, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'mal_croppe': {'main_port_id': 21388973, 'sub_port_id': 21389015, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964129, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}, 'flou': {'main_port_id': 21388973, 'sub_port_id': 21389016, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13964130, 'last_updated_at': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 13, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 13, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21388999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21389000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21389001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21389002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21389003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21389016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21389004 lien utilise dans velours : https://www.fotonower.com/velours/21389005,21389006,21389007,21389008,21389009,21389010,21389011,21389012,21389013,21389014,21389015,21389016?tags=Carton_gris,environnement,kraft,Teint_Dans_La_Masse,Carton_brun,metal,papier,autre_refus,plastique,cartonnette,mal_croppe,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21388973]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] map_info['map_portfolio_photo'] : {21388973: [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844]} final : False mtd_id 4302 list_pids : [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] Looping around the photos to save general results len do output : 1 /21388973. 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, '2667749') ('4302', '21388973', '1343868316', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '21388973', "{'Carton_gris': 21388993, 'environnement': 21388994, 'kraft': 21388995, 'Teint_Dans_La_Masse': 21388996, 'Carton_brun': 21388997, 'metal': 21388998, 'papier': 21388999, 'autre_refus': 21389000, 'plastique': 21389001, 'cartonnette': 21389002, 'mal_croppe': 21389003, 'flou': 21389004}", None, None, None, None, '2667749'), ('4302', '21388973', '1343868316', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749')] time used for this insertion : 0.015586614608764648 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2041244506835938 time spend to save output : 0.015935897827148438 total time spend for step 1 : 2.220060348510742 step2:final Fri Mar 14 05:53:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21388973) 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 21388973 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343864893,1343864844,1343865640,1343865612,1343865562,1343866284,1343866189,1343866132,1343866062,1343865995,1343867157,1343867086,1343866976,1343866926,1343866841,1343867865,1343867823,1343867765,1343868316); 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([21388973]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} new output for save of step final : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] map_info['map_portfolio_photo'] : {21388973: [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844]} final : False mtd_id 4302 list_pids : [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] Looping around the photos to save general results len do output : 19 /1343868316.Didn't retrieve data . /1343867865.Didn't retrieve data . /1343867823.Didn't retrieve data . /1343867765.Didn't retrieve data . /1343867157.Didn't retrieve data . /1343867086.Didn't retrieve data . /1343866976.Didn't retrieve data . /1343866926.Didn't retrieve data . /1343866841.Didn't retrieve data . /1343866284.Didn't retrieve data . /1343866189.Didn't retrieve data . /1343866132.Didn't retrieve data . /1343866062.Didn't retrieve data . /1343865995.Didn't retrieve data . /1343865640.Didn't retrieve data . /1343865612.Didn't retrieve data . /1343865562.Didn't retrieve data . /1343864893.Didn't retrieve data . /1343864844.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, '2667749') ('4302', '21388973', '1343868316', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '21388973', '1343868316', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343867865', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343867823', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343867765', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343867157', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343867086', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866976', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866926', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866841', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866284', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866189', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866132', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343866062', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343865995', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343865640', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343865612', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343865562', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343864893', '0.066937986252761', None, None, None, None, '2667749'), ('4302', '21388973', '1343864844', '0.066937986252761', None, None, None, None, '2667749')] time used for this insertion : 0.014328241348266602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07292723655700684 time spend to save output : 0.015029430389404297 total time spend for step 2 : 0.08795666694641113 step3:velours_tree Fri Mar 14 05:53:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21388973: [{'Carton_gris': 21388993, 'environnement': 21388994, 'kraft': 21388995, 'Teint_Dans_La_Masse': 21388996, 'Carton_brun': 21388997, 'metal': 21388998, 'papier': 21388999, 'autre_refus': 21389000, 'plastique': 21389001, 'cartonnette': 21389002, 'mal_croppe': 21389003, 'flou': 21389004}]} input_args_next_step : {21388973: ()} output_args : {21388973: [{'Carton_gris': 21388993, 'environnement': 21388994, 'kraft': 21388995, 'Teint_Dans_La_Masse': 21388996, 'Carton_brun': 21388997, 'metal': 21388998, 'papier': 21388999, 'autre_refus': 21389000, 'plastique': 21389001, 'cartonnette': 21389002, 'mal_croppe': 21389003, 'flou': 21389004}]} args : 21388973 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 : ({'Carton_gris': 21388993, 'environnement': 21388994, 'kraft': 21388995, 'Teint_Dans_La_Masse': 21388996, 'Carton_brun': 21388997, 'metal': 21388998, 'papier': 21388999, 'autre_refus': 21389000, 'plastique': 21389001, 'cartonnette': 21389002, 'mal_croppe': 21389003, 'flou': 21389004},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21388973) 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([21388973]) 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.2842836380004883 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.2843341827392578 step4:send_mail_cod Fri Mar 14 05:53:35 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} input_args_next_step : {1343868316: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343868316 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343867865 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343867823 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343867765 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343867157 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343867086 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866976 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866926 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866841 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866284 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866189 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866132 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343866062 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343865995 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343865640 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343865612 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343865562 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343864893 depend.output_id : 0 input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ()} output_args : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',)} args : 1343864844 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21388973: [{'Carton_gris': 21388993, 'environnement': 21388994, 'kraft': 21388995, 'Teint_Dans_La_Masse': 21388996, 'Carton_brun': 21388997, 'metal': 21388998, 'papier': 21388999, 'autre_refus': 21389000, 'plastique': 21389001, 'cartonnette': 21389002, 'mal_croppe': 21389003, 'flou': 21389004}]} input_args_next_step : {1343868316: ('0.066937986252761',), 1343867865: ('0.066937986252761',), 1343867823: ('0.066937986252761',), 1343867765: ('0.066937986252761',), 1343867157: ('0.066937986252761',), 1343867086: ('0.066937986252761',), 1343866976: ('0.066937986252761',), 1343866926: ('0.066937986252761',), 1343866841: ('0.066937986252761',), 1343866284: ('0.066937986252761',), 1343866189: ('0.066937986252761',), 1343866132: ('0.066937986252761',), 1343866062: ('0.066937986252761',), 1343865995: ('0.066937986252761',), 1343865640: ('0.066937986252761',), 1343865612: ('0.066937986252761',), 1343865562: ('0.066937986252761',), 1343864893: ('0.066937986252761',), 1343864844: ('0.066937986252761',), 21388973: ()} output_args : {21388973: [{'Carton_gris': 21388993, 'environnement': 21388994, 'kraft': 21388995, 'Teint_Dans_La_Masse': 21388996, 'Carton_brun': 21388997, 'metal': 21388998, 'papier': 21388999, 'autre_refus': 21389000, 'plastique': 21389001, 'cartonnette': 21389002, 'mal_croppe': 21389003, 'flou': 21389004}]} args : 21388973 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 :20, first value : ('0.066937986252761',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21388973) 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 (1343868316,1343867865,1343867823,1343867765,1343867157,1343867086,1343866976,1343866926,1343866841,1343866284,1343866189,1343866132,1343866062,1343865995,1343865640,1343865612,1343865562,1343864893,1343864844) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343864844 begin to download photo : 1343865640 begin to download photo : 1343866189 begin to download photo : 1343866976 begin to download photo : 1343867823 download finish for photo 1343866976 begin to download photo : 1343867086 download finish for photo 1343865640 begin to download photo : 1343865995 download finish for photo 1343866189 begin to download photo : 1343866284 download finish for photo 1343867823 begin to download photo : 1343867865 download finish for photo 1343864844 begin to download photo : 1343864893 download finish for photo 1343867086 begin to download photo : 1343867157 download finish for photo 1343866284 begin to download photo : 1343866841 download finish for photo 1343867865 begin to download photo : 1343868316 download finish for photo 1343864893 begin to download photo : 1343865562 download finish for photo 1343865995 begin to download photo : 1343866062 download finish for photo 1343867157 begin to download photo : 1343867765 download finish for photo 1343866841 begin to download photo : 1343866926 download finish for photo 1343868316 download finish for photo 1343865562 begin to download photo : 1343865612 download finish for photo 1343866062 begin to download photo : 1343866132 download finish for photo 1343867765 download finish for photo 1343866926 download finish for photo 1343865612 download finish for photo 1343866132 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette213889951741928015/ imagette213889981741928015/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P21388973_14-03-2025_05_53_35.pdf 21388995 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=21388995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213889951741928015 21388998 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=21388998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213889981741928015 21389000 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=21389000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343868539: '1741890747_174873_1343867086_b1b437fe7e1aa5b619fcfb0ee5354106_rle_crop_3710194714_0.png', 1343900179: '1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185886_0.png', 1343900178: '1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185870_0.png', 1343900177: '1741893574_3827272_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185756_0.png', 1343900176: '1741893574_3827272_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf_rle_crop_3710362320_0.png', 1343898984: '1741893433_3820115_1343867823_848ba950f9229ad570e49515a995ad8a_rle_crop_3710197794_0.png', 1343868554: '1741890747_174873_1343866841_41cfd173c46cbe1a2f9a4a3abc781d8a_rle_crop_3710194854_0.png', 1343868549: '1741890747_174873_1343866841_41cfd173c46cbe1a2f9a4a3abc781d8a_rle_crop_3710194853_0.png', 1343868545: '1741890747_174873_1343866926_4a94007af91e952ace0a9ad96cb863de_rle_crop_3710194838_0.png', 1343868541: '1741890747_174873_1343866976_d9fb01699c24069879f6e887d604ab36_rle_crop_3710194736_0.png', 1343867986: '1741890612_3730124_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185756_0.png', 1343868538: '1741890747_174873_1343867865_0723bc80c572a6a58b72666ffe9f560c_rle_crop_3710194701_0.png', 1343868147: '1741890652_3730900_1343865640_7a3830fb5060b8d629140273bf34e707_rle_crop_3710191642_0.png', 1343868114: '1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191396_0.png', 1343868113: '1741890631_3730572_1343865612_6064552fdd3a41f394cd8c501c9c7d09_rle_crop_3710191032_0.png', 1343868112: '1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187904_0.png', 1343868111: '1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187911_0.png', 1343867988: '1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185886_0.png', 1343867987: '1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185870_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/07991ae6f4aa2183deb9e7644f831628_24059739.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/64449a36140aae9dcfe612ab4bbe5440_70475024.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/65c09bb338588fda2ccf6b19c2d41c72_74050902.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/96798285dbdc5b4fb831af0b5d9341bd_90125402.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/8a20cd55a01a7de1cc0ba843fab80d94_24635760.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/bc225bdb404a02aa75a4b5ac6a434524_77376081.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/38d24e2a4a457da48621e51bd9fcd2f1_1622781.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/653780ef55e401fabe713a7852b57bec_94565576.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/566826af5d6739f0c0a7f6d9c97b0bb2_55646348.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/41d36c192e99a09013017f0e90e73cac_18157667.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/96798285dbdc5b4fb831af0b5d9341bd_56166605.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/3ff5f378561a754b52118a2d74aebfd6_80423988.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/ac52b9996d16c6a2219e8281e27220cf_49444869.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/a28907518549059b92663262a2bcf5cd_55814914.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/2203fe200e9195a586fc813a1be62be3_36507340.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/4868ffdf16c79c7151e4655ce85029c1_60647496.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/ae213298e3fb16e457aa5c79e33c69b0_3655855.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/64449a36140aae9dcfe612ab4bbe5440_73720549.png change filename to text .imagette213890001741928015/ imagette213890001741928015/1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185870_0.png.png imagette213890001741928015/1741890747_174873_1343867086_b1b437fe7e1aa5b619fcfb0ee5354106_rle_crop_3710194714_0.png.png imagette213890001741928015/1741890747_174873_1343866841_41cfd173c46cbe1a2f9a4a3abc781d8a_rle_crop_3710194853_0.png.png imagette213890001741928015/1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185870_0.png.png imagette213890001741928015/1741890612_3730124_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185756_0.png.png imagette213890001741928015/1741890747_174873_1343866926_4a94007af91e952ace0a9ad96cb863de_rle_crop_3710194838_0.png.png imagette213890001741928015/1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187904_0.png.png imagette213890001741928015/1741893574_3827272_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf_rle_crop_3710362320_0.png.png imagette213890001741928015/1741890652_3730900_1343865640_7a3830fb5060b8d629140273bf34e707_rle_crop_3710191642_0.png.png imagette213890001741928015/1741890747_174873_1343867865_0723bc80c572a6a58b72666ffe9f560c_rle_crop_3710194701_0.png.png imagette213890001741928015/1741890747_174873_1343866841_41cfd173c46cbe1a2f9a4a3abc781d8a_rle_crop_3710194854_0.png.png imagette213890001741928015/1741893574_3827272_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185756_0.png.png imagette213890001741928015/1741890631_3730572_1343865612_6064552fdd3a41f394cd8c501c9c7d09_rle_crop_3710191032_0.png.png imagette213890001741928015/1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187911_0.png.png imagette213890001741928015/1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185886_0.png.png imagette213890001741928015/1741890747_174873_1343866976_d9fb01699c24069879f6e887d604ab36_rle_crop_3710194736_0.png.png imagette213890001741928015/1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185886_0.png.png imagette213890001741928015/1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191396_0.png.png imagette213890001741928015/1741893433_3820115_1343867823_848ba950f9229ad570e49515a995ad8a_rle_crop_3710197794_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/65c09bb338588fda2ccf6b19c2d41c72_40698874.png imagette213890001741928015 21389001 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=21389001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343868025: '1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185867_0.png', 1343868026: '1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185890_0.png', 1343900262: '1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185867_0.png', 1343900264: '1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/b65c9f86735da9a516d1bb5b95c1b97b_98517956.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/f255d2ea12d7a1e4c4b21e81035c8657_45583532.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/b65c9f86735da9a516d1bb5b95c1b97b_62158622.png change filename to text .imagette213890011741928017/ imagette213890011741928017/1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185867_0.png.png imagette213890011741928017/1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185890_0.png.png imagette213890011741928017/1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185867_0.png.png imagette213890011741928017/1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185890_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/f255d2ea12d7a1e4c4b21e81035c8657_94110896.png imagette213890011741928017 21389002 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=21389002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343868006: '1741890612_3730124_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185754_0.png', 1343868123: '1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187902_0.png', 1343868124: '1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191392_0.png', 1343900244: '1741893574_3827272_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/d1ad94540d70df0d5116369ac49dfee1_91639279.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/74a7cec0dd03bf380400fb1ba7236276_64587101.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/a59d076df12e4bff36d9b1734f3dfac5_28762323.png change filename to text .imagette213890021741928017/ imagette213890021741928017/1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187902_0.png.png imagette213890021741928017/1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191392_0.png.png imagette213890021741928017/1741893574_3827272_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185754_0.png.png imagette213890021741928017/1741890612_3730124_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9_rle_crop_3710185754_0.png.png imagette213890031741928017/ imagette213890041741928017/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/d1ad94540d70df0d5116369ac49dfee1_15740185.png imagette213890021741928017 21389003 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=21389003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213890031741928017 21389004 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=21389004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213890041741928017 21388993 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=21388993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343867999: '1741890612_3730124_1343866189_48881064a71b2dc32014a69c55326eda_rle_crop_3710185741_0.png', 1343868000: '1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185858_0.png', 1343868152: '1741890652_3730900_1343865640_7a3830fb5060b8d629140273bf34e707_rle_crop_3710191641_0.png', 1343868565: '1741890747_174873_1343866976_d9fb01699c24069879f6e887d604ab36_rle_crop_3710194731_0.png', 1343898988: '1741893433_3820115_1343867823_848ba950f9229ad570e49515a995ad8a_rle_crop_3710197795_0.png', 1343900231: '1741893574_3827272_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf_rle_crop_3710362318_0.png', 1343900232: '1741893574_3827272_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf_rle_crop_3710362319_0.png', 1343900233: '1741893574_3827272_1343866189_48881064a71b2dc32014a69c55326eda_rle_crop_3710185741_0.png', 1343900234: '1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_bib_crop_3710185858_0.jpg'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/d43c17819a953e9960565c47b97730ab_57672622.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/8e6812ec5b98e3f3a2ed41e527b0ff1a_38899285.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/529e3f3ea2439383cd1cdf54faf390fc_15735792.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/45944a2af173a035d1fb618bec0df256_62093812.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/a2a28bb26b7aa79dfb67a7d03558d222_89551909.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/6634b7a2c94d891ec84b8fd28db2dd22_17179560.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/4a59afa64b12e0d1da4770883c5abf9d_7687026.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/d43c17819a953e9960565c47b97730ab_59287671.png change filename to text .imagette213889931741928017/ imagette213889931741928017/1741893574_3827272_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf_rle_crop_3710362319_0.png.png imagette213889931741928017/1741890652_3730900_1343865640_7a3830fb5060b8d629140273bf34e707_rle_crop_3710191641_0.png.png imagette213889931741928017/1741893433_3820115_1343867823_848ba950f9229ad570e49515a995ad8a_rle_crop_3710197795_0.png.png imagette213889931741928017/1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185858_0.png.png imagette213889931741928017/1741893574_3827272_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf_rle_crop_3710362318_0.png.png imagette213889931741928017/1741893574_3827272_1343866189_48881064a71b2dc32014a69c55326eda_rle_crop_3710185741_0.png.png imagette213889931741928017/1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_bib_crop_3710185858_0.jpg.jpg imagette213889931741928017/1741890612_3730124_1343866189_48881064a71b2dc32014a69c55326eda_rle_crop_3710185741_0.png.png imagette213889931741928017/1741890747_174873_1343866976_d9fb01699c24069879f6e887d604ab36_rle_crop_3710194731_0.png.png wget -O 9.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/169302b459d930421846e05b44680839_83816602.jpg imagette213889931741928017 21388996 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=21388996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343867979: '1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185872_0.png', 1343867980: '1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185889_0.png', 1343868091: '1741890631_3730572_1343865612_6064552fdd3a41f394cd8c501c9c7d09_rle_crop_3710191030_0.png', 1343868092: '1741890631_3730572_1343865612_6064552fdd3a41f394cd8c501c9c7d09_rle_crop_3710191033_0.png', 1343868094: '1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191397_0.png', 1343868140: '1741890652_3730900_1343865640_7a3830fb5060b8d629140273bf34e707_rle_crop_3710191645_0.png', 1343900160: '1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185872_0.png', 1343900161: '1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_bib_crop_3710185889_0.jpg', 1343900162: '1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710362398_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/baf7f78a83668110bf3f78a5203edd23_60992097.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/d233d368784515a65d4edbc4043c3c33_92285458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/c740d745e9e604a4a1138a6552e6ccd3_44819470.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/c5943f726e20ac286aa937da53ed67bb_90281685.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/97a7bdb3a09ff25d18f8ba26ce3e343d_43568485.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/72143331d6db8d45bbf95f79223b5471_59822999.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/baf7f78a83668110bf3f78a5203edd23_21680559.png change filename to text .wget -O 8.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/a1ebf24490db3df77bee630bf64fd399_95592108.jpg change filename to text .imagette213889961741928018/ imagette213889961741928018/1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_bib_crop_3710185889_0.jpg.jpg imagette213889961741928018/1741890631_3730572_1343865612_6064552fdd3a41f394cd8c501c9c7d09_rle_crop_3710191033_0.png.png imagette213889961741928018/1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191397_0.png.png imagette213889961741928018/1741890631_3730572_1343865612_6064552fdd3a41f394cd8c501c9c7d09_rle_crop_3710191030_0.png.png imagette213889961741928018/1741890652_3730900_1343865640_7a3830fb5060b8d629140273bf34e707_rle_crop_3710191645_0.png.png imagette213889961741928018/1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185872_0.png.png imagette213889961741928018/1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710362398_0.png.png imagette213889961741928018/1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185872_0.png.png imagette213889961741928018/1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185889_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/7330ce7bcffab0499421e38214b60602_77450091.png imagette213889961741928018 21388997 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=21388997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343868014: '1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185864_0.png', 1343868016: '1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185882_0.png', 1343868017: '1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185885_0.png', 1343868133: '1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187910_0.png', 1343868134: '1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191394_0.png', 1343868136: '1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191395_0.png', 1343900252: '1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185864_0.png', 1343900253: '1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185882_0.png', 1343900254: '1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185885_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/f79b9ca2464c0b902c6d03fd7bcd8d39_8130276.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/fda39b2c39507dd78a0421d7c56d2000_59428140.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/60d46f73013a84be44d63b5afbb7b1b9_8030160.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/41639ecbc6762907046732c310d26326_99812424.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/e406405dfea8eb2b46b76fc961632d7e_23053976.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/68a2c701bfb074f37ae7d5f1a115b00b_87483017.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/f79b9ca2464c0b902c6d03fd7bcd8d39_43911335.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/fda39b2c39507dd78a0421d7c56d2000_27620698.png change filename to text .imagette213889971741928020/ imagette213889971741928020/1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185882_0.png.png imagette213889971741928020/1741890631_3730572_1343866284_e9ddf0ab9eb704ddde18e33914460507_rle_crop_3710187910_0.png.png imagette213889971741928020/1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191394_0.png.png imagette213889971741928020/1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185882_0.png.png imagette213889971741928020/1741890612_3730124_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185864_0.png.png imagette213889971741928020/1741890631_3730572_1343865562_6a7d2d74c138253c6d44c41be523ad46_rle_crop_3710191395_0.png.png imagette213889971741928020/1741893574_3827272_1343866062_ee02a9253030edeeea7bb1ecabc88887_rle_crop_3710185864_0.png.png imagette213889971741928020/1741893574_3827272_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185885_0.png.png imagette213889971741928020/1741890612_3730124_1343865995_591f379fa1f6ae092dd862d7d5309692_rle_crop_3710185885_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/60d46f73013a84be44d63b5afbb7b1b9_65253903.png imagette213889971741928020 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21388973 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21389005,21389006,21389007,21389008,21389009,21389010,21389011,21389012,21389013,21389014,21389015,21389016?tags=Carton_gris,environnement,kraft,Teint_Dans_La_Masse,Carton_brun,metal,papier,autre_refus,plastique,cartonnette,mal_croppe,flou your option no_mail is active, we will not send the real mail to your client args[1343868316] : ('0.066937986252761',) no score found for photo 1343868316 We are sending mail with results at report@fotonower.com args[1343867865] : ('0.066937986252761',) no score found for photo 1343867865 We are sending mail with results at report@fotonower.com args[1343867823] : ('0.066937986252761',) no score found for photo 1343867823 We are sending mail with results at report@fotonower.com args[1343867765] : ('0.066937986252761',) no score found for photo 1343867765 We are sending mail with results at report@fotonower.com args[1343867157] : ('0.066937986252761',) no score found for photo 1343867157 We are sending mail with results at report@fotonower.com args[1343867086] : ('0.066937986252761',) no score found for photo 1343867086 We are sending mail with results at report@fotonower.com args[1343866976] : ('0.066937986252761',) no score found for photo 1343866976 We are sending mail with results at report@fotonower.com args[1343866926] : ('0.066937986252761',) no score found for photo 1343866926 We are sending mail with results at report@fotonower.com args[1343866841] : ('0.066937986252761',) no score found for photo 1343866841 We are sending mail with results at report@fotonower.com args[1343866284] : ('0.066937986252761',) no score found for photo 1343866284 We are sending mail with results at report@fotonower.com args[1343866189] : ('0.066937986252761',) no score found for photo 1343866189 We are sending mail with results at report@fotonower.com args[1343866132] : ('0.066937986252761',) no score found for photo 1343866132 We are sending mail with results at report@fotonower.com args[1343866062] : ('0.066937986252761',) no score found for photo 1343866062 We are sending mail with results at report@fotonower.com args[1343865995] : ('0.066937986252761',) no score found for photo 1343865995 We are sending mail with results at report@fotonower.com args[1343865640] : ('0.066937986252761',) no score found for photo 1343865640 We are sending mail with results at report@fotonower.com args[1343865612] : ('0.066937986252761',) no score found for photo 1343865612 We are sending mail with results at report@fotonower.com args[1343865562] : ('0.066937986252761',) no score found for photo 1343865562 We are sending mail with results at report@fotonower.com args[1343864893] : ('0.066937986252761',) no score found for photo 1343864893 We are sending mail with results at report@fotonower.com args[1343864844] : ('0.066937986252761',) no score found for photo 1343864844 We are sending mail with results at report@fotonower.com refus_total : 0.066937986252761 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=21388973 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_P21388973_14-03-2025_05_53_35.pdf results_Auto_P21388973_14-03-2025_05_53_35.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388973_14-03-2025_05_53_35.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','21388973','results_Auto_P21388973_14-03-2025_05_53_35.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388973_14-03-2025_05_53_35.pdf','pdf','','0.29','0.066937986252761') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21388973]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] map_info['map_portfolio_photo'] : {21388973: [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844]} final : False mtd_id 4302 list_pids : [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] 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, '2667749') ('4302', '21388973', '1343868316', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '21388973', '1343868316', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749')] time used for this insertion : 0.6826448440551758 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.757681131362915 time spend to save output : 0.6828939914703369 total time spend for step 4 : 8.440575122833252 step5:split_time_score Fri Mar 14 05:53:43 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 : ['21388973'] 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 : [('21388973',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21388973) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343867823: {'path': 'temp/1741928015_2215893_1343867823_848ba950f9229ad570e49515a995ad8a.jpg', 'extension': 'jpg'}, 1343867865: {'path': 'temp/1741928015_2215893_1343867865_0723bc80c572a6a58b72666ffe9f560c.jpg', 'extension': 'jpg'}, 1343868316: {'path': 'temp/1741928015_2215893_1343868316_8cd7b86f0593efda31eb855243b9450e.jpg', 'extension': 'jpg'}, 1343866976: {'path': 'temp/1741928015_2215893_1343866976_d9fb01699c24069879f6e887d604ab36.jpg', 'extension': 'jpg'}, 1343867086: {'path': 'temp/1741928015_2215893_1343867086_b1b437fe7e1aa5b619fcfb0ee5354106.jpg', 'extension': 'jpg'}, 1343867157: {'path': 'temp/1741928015_2215893_1343867157_a6579d5702c7cedc0fb6bd81b3a04acf.jpg', 'extension': 'jpg'}, 1343867765: {'path': 'temp/1741928015_2215893_1343867765_3f50d339b4de6738a696625a44d1c443.jpg', 'extension': 'jpg'}, 1343866189: {'path': 'temp/1741928015_2215893_1343866189_48881064a71b2dc32014a69c55326eda.jpg', 'extension': 'jpg'}, 1343866284: {'path': 'temp/1741928015_2215893_1343866284_e9ddf0ab9eb704ddde18e33914460507.jpg', 'extension': 'jpg'}, 1343866841: {'path': 'temp/1741928015_2215893_1343866841_41cfd173c46cbe1a2f9a4a3abc781d8a.jpg', 'extension': 'jpg'}, 1343866926: {'path': 'temp/1741928015_2215893_1343866926_4a94007af91e952ace0a9ad96cb863de.jpg', 'extension': 'jpg'}, 1343864844: {'path': 'temp/1741928015_2215893_1343864844_872080bf79d6ee24a57f92a4b8530654.jpg', 'extension': 'jpg'}, 1343864893: {'path': 'temp/1741928015_2215893_1343864893_4e1d47b9c307f6fcf8b91f54aa1c6f6b.jpg', 'extension': 'jpg'}, 1343865562: {'path': 'temp/1741928015_2215893_1343865562_6a7d2d74c138253c6d44c41be523ad46.jpg', 'extension': 'jpg'}, 1343865612: {'path': 'temp/1741928015_2215893_1343865612_6064552fdd3a41f394cd8c501c9c7d09.jpg', 'extension': 'jpg'}, 1343865640: {'path': 'temp/1741928015_2215893_1343865640_7a3830fb5060b8d629140273bf34e707.jpg', 'extension': 'jpg'}, 1343865995: {'path': 'temp/1741928015_2215893_1343865995_591f379fa1f6ae092dd862d7d5309692.jpg', 'extension': 'jpg'}, 1343866062: {'path': 'temp/1741928015_2215893_1343866062_ee02a9253030edeeea7bb1ecabc88887.jpg', 'extension': 'jpg'}, 1343866132: {'path': 'temp/1741928015_2215893_1343866132_03941bc12f7796f6d0ddbac0ef82c3e9.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 = 21388973; (('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 = 21388973 group by h (('19', 19),) 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=21388973 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 (21388973) 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 (21388973) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13032025 21388973 Nombre de photos uploadées : 19 / 23040 (0%) 13032025 21388973 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 13032025 21388973 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1343864893, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/4e1d47b9c307f6fcf8b91f54aa1c6f6b.jpg', 'username': None, 'uploaded_at': 1741890404, 'text': 'image_13032025_19_22_45_10138.jpg'}, {'photo_id': 1343864844, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/872080bf79d6ee24a57f92a4b8530654.jpg', 'username': None, 'uploaded_at': 1741890404, 'text': 'image_13032025_19_25_44_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343865640, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/7a3830fb5060b8d629140273bf34e707.jpg', 'username': None, 'uploaded_at': 1741890464, 'text': 'image_13032025_19_25_54_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343865612, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/13/6064552fdd3a41f394cd8c501c9c7d09.jpg', 'username': None, 'uploaded_at': 1741890464, 'text': 'image_13032025_19_26_15_010139m0.jpg 3.0000000000000004e-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 5.245208740234375e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010347366333007812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21388973, '2025-03-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1664531,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.044583797454833984 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= 1664531 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21372357, 'dashboard_result_id': 9433680, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372357_14-03-2025_05_34_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21372361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21372362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21372363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21372364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21372365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21372366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21372367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21372368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21372369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21372370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21372371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21372372, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21372764, 'dashboard_result_id': 9433681, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372764_14-03-2025_05_35_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21372765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21372766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21372767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21372768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21372769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21372770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21372771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21372772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21372773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21372774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21372775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21372776, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21373172, 'dashboard_result_id': 9433682, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373172_14-03-2025_05_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21373232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21373233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21373235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21373236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21373237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21373238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21373240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21373241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21373242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21373243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21373244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21373245, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21373693, 'dashboard_result_id': 9433683, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373693_14-03-2025_05_37_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21373694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21373695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21373696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21373697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21373698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21373699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21373700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21373701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21373702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21373703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21373704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21373705, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21374101, 'dashboard_result_id': 9433684, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374101_14-03-2025_05_38_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21374118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21374119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21374120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21374121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21374122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21374123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21374124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21374125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21374126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21374127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21374128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21374129, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21374849, 'dashboard_result_id': 9433685, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374849_14-03-2025_05_38_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21374874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21374875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21374876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21374877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21374878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21374879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21374880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21374881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21374882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21374883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21374884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21374885, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21375494, 'dashboard_result_id': 9433686, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21375494_14-03-2025_05_39_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21375497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21375498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21375499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21375501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21375502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21375503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21375504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21375505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21375506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21375507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21375508, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21376239, 'dashboard_result_id': 9433687, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376239_14-03-2025_05_39_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21376257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21376258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21376259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21376260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21376261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21376262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21376263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21376264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21376265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21376266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21376267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21376268, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21376738, 'dashboard_result_id': 9433688, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376738_14-03-2025_05_40_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21376830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21376831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21376832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21376833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21376834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21376835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21376836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21376837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21376838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21376839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21376840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21376841, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404712, 'dashboard_result_id': 9433689, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404712_14-03-2025_05_41_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405200, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404713, 'dashboard_result_id': 9433690, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404713_14-03-2025_05_41_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405224, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404714, 'dashboard_result_id': 9433691, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404714_14-03-2025_01_08_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21405225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405236, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404733, 'dashboard_result_id': 9433692, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404733_14-03-2025_05_42_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21405165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405176, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404734, 'dashboard_result_id': 9433693, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404734_14-03-2025_05_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405135, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404753, 'dashboard_result_id': 9433694, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404753_14-03-2025_05_43_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405111, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404754, 'dashboard_result_id': 9433695, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404754_14-03-2025_05_44_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21405028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405039, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404755, 'dashboard_result_id': 9433696, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404755_14-03-2025_05_44_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405077, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404756, 'dashboard_result_id': 9433697, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404756_14-03-2025_05_45_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405006, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404757, 'dashboard_result_id': 9433698, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404757_14-03-2025_01_04_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21404949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404960, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404758, 'dashboard_result_id': 9433699, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404758_14-03-2025_05_46_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404948, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404759, 'dashboard_result_id': 9433700, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404759_14-03-2025_01_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404847, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404760, 'dashboard_result_id': 9433701, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404760_14-03-2025_01_04_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404888, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404761, 'dashboard_result_id': 9433702, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404761_14-03-2025_01_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404818, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404823, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404762, 'dashboard_result_id': 9433703, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404762_14-03-2025_05_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404787, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21404763, 'dashboard_result_id': 9433704, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404763_14-03-2025_05_49_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404775, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21377710, 'dashboard_result_id': 9433705, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21377710_14-03-2025_05_50_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21377716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21377717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21377718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21377719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21377720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21377721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21377722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21377723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21377724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21377725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21377726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21377727, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21383050, 'dashboard_result_id': 9433706, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21383050_14-03-2025_05_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21383078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21383079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21383080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21383081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21383082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21383083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21383084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21383085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21383086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21383087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21383088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21383089, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21384820, 'dashboard_result_id': 9433707, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21384820_14-03-2025_05_51_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21384897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21384898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21384899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21384900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21384901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21384902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21384903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21384904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21384905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21384906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21384907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21384908, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21385552, 'dashboard_result_id': 9433708, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21385552_14-03-2025_05_51_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21385565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21385566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21385567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21385568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21385569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21385570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21385571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21385572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21385573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21385574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21385575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21385576, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21386481, 'dashboard_result_id': 9433709, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21386481_14-03-2025_05_52_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21386482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21386483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21386484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21386485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21386486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21386487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21386488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21386489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21386490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21386491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21386492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21386493, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21388894, 'dashboard_result_id': 9433710, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388894_14-03-2025_05_52_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21388895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21388896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21388897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21388898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21388899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21388900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21388901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21388902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21388903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21388904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21388905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21388906, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21388973, 'dashboard_result_id': 9433711, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388973_13-03-2025_19_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21388993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21388994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21388995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21388996, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21388997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21388998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21388999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21389000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21389001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21389002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21389003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21389004, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21389291, 'dashboard_result_id': 9433712, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21389291_13-03-2025_19_48_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21389353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21389354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21389355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21389356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21389357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21389358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21389359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21389360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21389361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21389362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21389363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21389364, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21390308, 'dashboard_result_id': 9433713, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21390308_13-03-2025_20_03_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21390351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21390352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21390353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21390354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21390355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21390356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21390357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21390358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21390359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21390360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21390361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21390362, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21391251, 'dashboard_result_id': 9433714, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21391251_13-03-2025_20_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21391270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21391271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21391272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21391273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21391274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21391275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21391276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21391277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21391278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21391279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21391280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21391281, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21392334, 'dashboard_result_id': 9433715, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21392334_13-03-2025_20_38_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21392502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21392503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21392505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21392506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21392507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21392508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21392509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21392510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21392511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21392512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21392513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21392514, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21393678, 'dashboard_result_id': 9433716, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21393678_13-03-2025_21_05_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21393697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21393698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21393699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21393700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21393701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21393702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21393703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21393704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21393705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21393706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21393707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21393708, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21394780, 'dashboard_result_id': 9433717, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21394780_13-03-2025_21_17_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21394831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21394832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21394833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21394834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21394835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21394836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21394837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21394838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21394839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21394840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21394841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21394842, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21395431, 'dashboard_result_id': 9433718, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21395431_13-03-2025_21_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21395437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21395438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21395439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21395440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21395441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21395442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21395443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21395444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21395445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21395446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21395447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21395448, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21396174, 'dashboard_result_id': 9433719, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21396174_13-03-2025_21_48_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21396181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21396182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21396184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21396185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21396187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21396188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21396189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21396190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21396192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21396193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21396194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21396195, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21397287, 'dashboard_result_id': 9433720, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21397287_13-03-2025_22_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21397291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21397292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21397293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21397294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21397295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21397296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21397297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21397298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21397299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21397300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21397301, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21397302, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21398040, 'dashboard_result_id': 9433721, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21398040_13-03-2025_22_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21398121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21398122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21398123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21398124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21398125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21398126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21398127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21398128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21398129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21398130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21398131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21398133, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21400996, 'dashboard_result_id': 9433722, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21400996_13-03-2025_23_04_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21400997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21400998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21400999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21401000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21401001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21401002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21401003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21401004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21401005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21401006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21401007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21401008, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21401669, 'dashboard_result_id': 9433723, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21401669_13-03-2025_23_17_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21401694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21401695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21401696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21401697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21401698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21401699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21401700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21401701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21401702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21401703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21401704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21401705, 'pht': 3726}}"}, {'dashboat_entry_day': 1664531, 'dashboard_run_id': 1675248, 'mtr_portfolio_id': 21402278, 'dashboard_result_id': 9433724, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21402278_13-03-2025_23_35_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21402279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21402280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21402281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21402282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21402283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21402284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21402285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21402286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21402287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21402288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21402289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21402290, '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 = 21372357 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667718, 'mtr_portfolio_id': 21372357, 'created_at': datetime.datetime(2025, 3, 14, 5, 34, 30), 'result': '0.11229118769661359', 'result_long': None, 'result_double': None}] Qualite : 0.11229118769661359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21372357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372357_14-03-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21372357 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372357_14-03-2025_05_34_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21372361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21372362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21372363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21372364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21372365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21372366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21372367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21372368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21372369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21372370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21372371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21372372, 'pht': 3726}}" where mtr_portfolio_id = 21372357 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21372357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433680, 0.11229118769661359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372357_14-03-2025_05_34_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21372361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21372362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21372363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21372364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21372365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21372366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21372367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21372368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21372369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21372370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21372371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21372372, '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 = 21372764 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667719, 'mtr_portfolio_id': 21372764, 'created_at': datetime.datetime(2025, 3, 14, 5, 35, 32), 'result': '0.08953972044377281', 'result_long': None, 'result_double': None}] Qualite : 0.08953972044377281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21372764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372764_14-03-2025_05_35_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21372764 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372764_14-03-2025_05_35_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21372765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21372766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21372767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21372768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21372769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21372770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21372771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21372772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21372773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21372774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21372775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21372776, 'pht': 3726}}" where mtr_portfolio_id = 21372764 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21372764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433681, 0.08953972044377281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21372764_14-03-2025_05_35_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21372765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21372766, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21372767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21372768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21372769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21372770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21372771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21372772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21372773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21372774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21372775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21372776, '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 = 21373172 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667720, 'mtr_portfolio_id': 21373172, 'created_at': datetime.datetime(2025, 3, 14, 5, 36, 29), 'result': '0.08074579242858267', 'result_long': None, 'result_double': None}] Qualite : 0.08074579242858267 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21373172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373172_14-03-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21373172 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373172_14-03-2025_05_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21373232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21373233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21373235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21373236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21373237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21373238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21373240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21373241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21373242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21373243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21373244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21373245, 'pht': 3726}}" where mtr_portfolio_id = 21373172 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21373172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433682, 0.08074579242858267, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373172_14-03-2025_05_36_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21373232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21373233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21373235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21373236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21373237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21373238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21373240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21373241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21373242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21373243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21373244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21373245, '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 = 21373693 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667721, 'mtr_portfolio_id': 21373693, 'created_at': datetime.datetime(2025, 3, 14, 5, 37, 1), 'result': '0.07510759779976604', 'result_long': None, 'result_double': None}] Qualite : 0.07510759779976604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21373693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373693_14-03-2025_05_37_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21373693 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373693_14-03-2025_05_37_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21373694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21373695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21373696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21373697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21373698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21373699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21373700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21373701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21373702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21373703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21373704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21373705, 'pht': 3726}}" where mtr_portfolio_id = 21373693 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21373693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433683, 0.07510759779976604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21373693_14-03-2025_05_37_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21373694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21373695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21373696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21373697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21373698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21373699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21373700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21373701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21373702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21373703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21373704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21373705, '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 = 21374101 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667722, 'mtr_portfolio_id': 21374101, 'created_at': datetime.datetime(2025, 3, 14, 5, 38, 1), 'result': '0.09486426083580202', 'result_long': None, 'result_double': None}] Qualite : 0.09486426083580202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21374101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374101_14-03-2025_05_38_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21374101 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374101_14-03-2025_05_38_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21374118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21374119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21374120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21374121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21374122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21374123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21374124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21374125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21374126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21374127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21374128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21374129, 'pht': 3726}}" where mtr_portfolio_id = 21374101 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21374101 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433684, 0.09486426083580202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374101_14-03-2025_05_38_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21374118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21374119, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21374120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21374121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21374122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21374123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21374124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21374125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21374126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21374127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21374128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21374129, '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 = 21374849 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667723, 'mtr_portfolio_id': 21374849, 'created_at': datetime.datetime(2025, 3, 14, 5, 38, 31), 'result': '0.09499661257730552', 'result_long': None, 'result_double': None}] Qualite : 0.09499661257730552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21374849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374849_14-03-2025_05_38_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21374849 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374849_14-03-2025_05_38_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21374874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21374875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21374876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21374877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21374878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21374879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21374880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21374881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21374882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21374883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21374884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21374885, 'pht': 3726}}" where mtr_portfolio_id = 21374849 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21374849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433685, 0.09499661257730552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21374849_14-03-2025_05_38_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21374874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21374875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21374876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21374877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21374878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21374879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21374880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21374881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21374882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21374883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21374884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21374885, '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 = 21375494 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667724, 'mtr_portfolio_id': 21375494, 'created_at': datetime.datetime(2025, 3, 14, 5, 39, 1), 'result': '0.093033995222796', 'result_long': None, 'result_double': None}] Qualite : 0.093033995222796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21375494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21375494_14-03-2025_05_39_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21375494 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21375494_14-03-2025_05_39_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21375497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21375498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21375499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21375501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21375502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21375503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21375504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21375505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21375506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21375507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21375508, 'pht': 3726}}" where mtr_portfolio_id = 21375494 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21375494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433686, 0.093033995222796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21375494_14-03-2025_05_39_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21375497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21375498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21375499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21375501, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21375502, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21375503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21375504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21375505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21375506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21375507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21375508, '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 = 21376239 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667725, 'mtr_portfolio_id': 21376239, 'created_at': datetime.datetime(2025, 3, 14, 5, 39, 28), 'result': '0.09699580029443165', 'result_long': None, 'result_double': None}] Qualite : 0.09699580029443165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21376239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376239_14-03-2025_05_39_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21376239 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376239_14-03-2025_05_39_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21376257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21376258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21376259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21376260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21376261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21376262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21376263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21376264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21376265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21376266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21376267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21376268, 'pht': 3726}}" where mtr_portfolio_id = 21376239 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21376239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433687, 0.09699580029443165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376239_14-03-2025_05_39_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21376257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21376258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21376259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21376260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21376261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21376262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21376263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21376264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21376265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21376266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21376267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21376268, '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 = 21376738 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667726, 'mtr_portfolio_id': 21376738, 'created_at': datetime.datetime(2025, 3, 14, 5, 40, 28), 'result': '0.08754507332249967', 'result_long': None, 'result_double': None}] Qualite : 0.08754507332249967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21376738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376738_14-03-2025_05_40_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21376738 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376738_14-03-2025_05_40_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21376830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21376831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21376832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21376833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21376834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21376835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21376836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21376837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21376838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21376839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21376840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21376841, 'pht': 3726}}" where mtr_portfolio_id = 21376738 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21376738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433688, 0.08754507332249967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21376738_14-03-2025_05_40_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21376830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21376831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21376832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21376833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21376834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21376835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21376836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21376837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21376838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21376839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21376840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21376841, '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 = 21404712 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667727, 'mtr_portfolio_id': 21404712, 'created_at': datetime.datetime(2025, 3, 14, 5, 41), 'result': '0.14960710004861208', 'result_long': None, 'result_double': None}] Qualite : 0.14960710004861208 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404712_14-03-2025_05_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404712 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404712_14-03-2025_05_41_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405200, 'pht': 3726}}" where mtr_portfolio_id = 21404712 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21404712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433689, 0.14960710004861208, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404712_14-03-2025_05_41_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405200, '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 = 21404713 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404713 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404713 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404713 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404713 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404713_14-03-2025_05_41_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404713 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404713_14-03-2025_05_41_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405224, 'pht': 3726}}" where mtr_portfolio_id = 21404713 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404714 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404714 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404714_14-03-2025_01_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404714 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404714_14-03-2025_01_08_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21405225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405236, 'pht': 3726}}" where mtr_portfolio_id = 21404714 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404733 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404733 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404733 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404733 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404733 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404733_14-03-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404733_14-03-2025_05_42_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21405165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405175, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405176, 'pht': 3726}}" where mtr_portfolio_id = 21404733 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404734 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404734 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404734 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404734 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404734 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404734_14-03-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404734 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404734_14-03-2025_05_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405135, 'pht': 3726}}" where mtr_portfolio_id = 21404734 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404753 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404753 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404753 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404753 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404753 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404753_14-03-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404753 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404753_14-03-2025_05_43_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405111, 'pht': 3726}}" where mtr_portfolio_id = 21404753 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404754 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404754 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404754 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404754 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404754 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404754_14-03-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404754 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404754_14-03-2025_05_44_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21405028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405029, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405030, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405039, 'pht': 3726}}" where mtr_portfolio_id = 21404754 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404755 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404755 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404755 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404755 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404755 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404755_14-03-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404755 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404755_14-03-2025_05_44_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21405065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21405066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21405067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21405068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21405077, 'pht': 3726}}" where mtr_portfolio_id = 21404755 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404756 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404756 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404756 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404756 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404756 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404756 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404756_14-03-2025_05_45_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404756 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404756_14-03-2025_05_45_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21405000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21405001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21405002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21405003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21405004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21405005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21405006, 'pht': 3726}}" where mtr_portfolio_id = 21404756 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404757 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404757 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404757_14-03-2025_01_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404757 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404757_14-03-2025_01_04_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21404949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404960, 'pht': 3726}}" where mtr_portfolio_id = 21404757 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404758 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404758 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404758 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404758 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404758 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404758_14-03-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404758 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404758_14-03-2025_05_46_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404948, 'pht': 3726}}" where mtr_portfolio_id = 21404758 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404759 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404759 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404759_14-03-2025_01_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404759 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404759_14-03-2025_01_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404847, 'pht': 3726}}" where mtr_portfolio_id = 21404759 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404760 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404760 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404760_14-03-2025_01_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404760 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404760_14-03-2025_01_04_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404888, 'pht': 3726}}" where mtr_portfolio_id = 21404760 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404761 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404761 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404761_14-03-2025_01_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404761 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404761_14-03-2025_01_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404818, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404823, 'pht': 3726}}" where mtr_portfolio_id = 21404761 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404762 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404762 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404762 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404762 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404762 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404762_14-03-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404762 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404762_14-03-2025_05_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404787, 'pht': 3726}}" where mtr_portfolio_id = 21404762 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404763 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404763 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21404763 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404763 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21404763 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21404763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404763_14-03-2025_05_49_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21404763 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21404763_14-03-2025_05_49_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21404764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21404765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21404766, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21404767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21404768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21404769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21404770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21404771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21404772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21404773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21404774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21404775, 'pht': 3726}}" where mtr_portfolio_id = 21404763 and dashboard_run_id = 1675248 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21377710 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667743, 'mtr_portfolio_id': 21377710, 'created_at': datetime.datetime(2025, 3, 14, 5, 50, 35), 'result': '0.07717703068651291', 'result_long': None, 'result_double': None}] Qualite : 0.07717703068651291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21377710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21377710_14-03-2025_05_50_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21377710 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21377710_14-03-2025_05_50_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21377716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21377717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21377718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21377719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21377720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21377721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21377722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21377723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21377724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21377725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21377726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21377727, 'pht': 3726}}" where mtr_portfolio_id = 21377710 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21377710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433705, 0.07717703068651291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21377710_14-03-2025_05_50_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21377716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21377717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21377718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21377719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21377720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21377721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21377722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21377723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21377724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21377725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21377726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21377727, '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 = 21383050 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667744, 'mtr_portfolio_id': 21383050, 'created_at': datetime.datetime(2025, 3, 14, 5, 50, 30), 'result': '0.10313259400869483', 'result_long': None, 'result_double': None}] Qualite : 0.10313259400869483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21383050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21383050_14-03-2025_05_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21383050 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21383050_14-03-2025_05_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21383078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21383079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21383080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21383081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21383082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21383083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21383084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21383085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21383086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21383087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21383088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21383089, 'pht': 3726}}" where mtr_portfolio_id = 21383050 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21383050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433706, 0.10313259400869483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21383050_14-03-2025_05_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21383078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21383079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21383080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21383081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21383082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21383083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21383084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21383085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21383086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21383087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21383088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21383089, '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 = 21384820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667745, 'mtr_portfolio_id': 21384820, 'created_at': datetime.datetime(2025, 3, 14, 5, 51, 1), 'result': '0.07729490571505546', 'result_long': None, 'result_double': None}] Qualite : 0.07729490571505546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21384820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21384820_14-03-2025_05_51_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21384820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21384820_14-03-2025_05_51_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21384897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21384898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21384899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21384900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21384901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21384902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21384903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21384904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21384905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21384906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21384907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21384908, 'pht': 3726}}" where mtr_portfolio_id = 21384820 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21384820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433707, 0.07729490571505546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21384820_14-03-2025_05_51_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21384897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21384898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21384899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21384900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21384901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21384902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21384903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21384904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21384905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21384906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21384907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21384908, '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 = 21385552 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667746, 'mtr_portfolio_id': 21385552, 'created_at': datetime.datetime(2025, 3, 14, 5, 51, 32), 'result': '0.07450755416522704', 'result_long': None, 'result_double': None}] Qualite : 0.07450755416522704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21385552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21385552_14-03-2025_05_51_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21385552 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21385552_14-03-2025_05_51_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21385565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21385566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21385567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21385568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21385569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21385570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21385571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21385572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21385573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21385574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21385575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21385576, 'pht': 3726}}" where mtr_portfolio_id = 21385552 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21385552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433708, 0.07450755416522704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21385552_14-03-2025_05_51_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21385565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21385566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21385567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21385568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21385569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21385570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21385571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21385572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21385573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21385574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21385575, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21385576, '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 = 21386481 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667747, 'mtr_portfolio_id': 21386481, 'created_at': datetime.datetime(2025, 3, 14, 5, 52, 1), 'result': '0.06719627873538137', 'result_long': None, 'result_double': None}] Qualite : 0.06719627873538137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21386481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21386481_14-03-2025_05_52_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21386481 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21386481_14-03-2025_05_52_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21386482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21386483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21386484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21386485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21386486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21386487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21386488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21386489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21386490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21386491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21386492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21386493, 'pht': 3726}}" where mtr_portfolio_id = 21386481 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21386481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433709, 0.06719627873538137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21386481_14-03-2025_05_52_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21386482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21386483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21386484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21386485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21386486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21386487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21386488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21386489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21386490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21386491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21386492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21386493, '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 = 21388894 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667748, 'mtr_portfolio_id': 21388894, 'created_at': datetime.datetime(2025, 3, 14, 5, 52, 58), 'result': '0.13584063402328697', 'result_long': None, 'result_double': None}] Qualite : 0.13584063402328697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21388894 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388894_14-03-2025_05_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21388894 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388894_14-03-2025_05_52_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21388895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21388896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21388897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21388898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21388899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21388900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21388901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21388902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21388903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21388904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21388905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21388906, 'pht': 3726}}" where mtr_portfolio_id = 21388894 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21388894 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433710, 0.13584063402328697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388894_14-03-2025_05_52_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21388895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21388896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21388897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21388898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21388899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21388900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21388901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21388902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21388903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21388904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21388905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21388906, '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 = 21388973 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667749, 'mtr_portfolio_id': 21388973, 'created_at': datetime.datetime(2025, 3, 14, 5, 53, 34), 'result': '0.066937986252761', 'result_long': None, 'result_double': None}] Qualite : 0.066937986252761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21388973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388973_14-03-2025_05_53_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21388973 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388973_14-03-2025_05_53_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21388993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21388994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21388995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21388996, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21388997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21388998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21388999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21389000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21389001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21389002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21389003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21389004, 'pht': 3726}}" where mtr_portfolio_id = 21388973 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21388973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433711, 0.066937986252761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21388973_14-03-2025_05_53_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21388993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21388994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21388995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21388996, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21388997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21388998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21388999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21389000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21389001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21389002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21389003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21389004, '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 = 21389291 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666390, 'mtr_portfolio_id': 21389291, 'created_at': datetime.datetime(2025, 3, 13, 19, 48, 31), 'result': '0.08831646096892938', 'result_long': None, 'result_double': None}] Qualite : 0.08831646096892938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21389291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21389291_13-03-2025_19_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21389291 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21389291_13-03-2025_19_48_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21389353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21389354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21389355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21389356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21389357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21389358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21389359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21389360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21389361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21389362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21389363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21389364, 'pht': 3726}}" where mtr_portfolio_id = 21389291 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21389291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433712, 0.08831646096892938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21389291_13-03-2025_19_48_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21389353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21389354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21389355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21389356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21389357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21389358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21389359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21389360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21389361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21389362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21389363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21389364, '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 = 21390308 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666470, 'mtr_portfolio_id': 21390308, 'created_at': datetime.datetime(2025, 3, 13, 20, 3, 57), 'result': '0.08588763514383527', 'result_long': None, 'result_double': None}] Qualite : 0.08588763514383527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21390308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21390308_13-03-2025_20_03_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21390308 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21390308_13-03-2025_20_03_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21390351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21390352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21390353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21390354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21390355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21390356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21390357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21390358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21390359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21390360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21390361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21390362, 'pht': 3726}}" where mtr_portfolio_id = 21390308 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21390308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433713, 0.08588763514383527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21390308_13-03-2025_20_03_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21390351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21390352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21390353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21390354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21390355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21390356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21390357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21390358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21390359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21390360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21390361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21390362, '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 = 21391251 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666523, 'mtr_portfolio_id': 21391251, 'created_at': datetime.datetime(2025, 3, 13, 20, 19), 'result': '0.07361632084326168', 'result_long': None, 'result_double': None}] Qualite : 0.07361632084326168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21391251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21391251_13-03-2025_20_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21391251 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21391251_13-03-2025_20_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21391270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21391271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21391272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21391273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21391274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21391275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21391276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21391277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21391278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21391279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21391280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21391281, 'pht': 3726}}" where mtr_portfolio_id = 21391251 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21391251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433714, 0.07361632084326168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21391251_13-03-2025_20_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21391270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21391271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21391272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21391273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21391274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21391275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21391276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21391277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21391278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21391279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21391280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21391281, '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 = 21392334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666569, 'mtr_portfolio_id': 21392334, 'created_at': datetime.datetime(2025, 3, 13, 20, 38, 1), 'result': '0.08351774005555894', 'result_long': None, 'result_double': None}] Qualite : 0.08351774005555894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21392334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21392334_13-03-2025_20_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21392334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21392334_13-03-2025_20_38_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21392502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21392503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21392505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21392506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21392507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21392508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21392509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21392510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21392511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21392512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21392513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21392514, 'pht': 3726}}" where mtr_portfolio_id = 21392334 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21392334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433715, 0.08351774005555894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21392334_13-03-2025_20_38_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21392502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21392503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21392505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21392506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21392507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21392508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21392509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21392510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21392511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21392512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21392513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21392514, '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 = 21393678 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666651, 'mtr_portfolio_id': 21393678, 'created_at': datetime.datetime(2025, 3, 13, 21, 5, 59), 'result': '0.06108328275433152', 'result_long': None, 'result_double': None}] Qualite : 0.06108328275433152 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21393678 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21393678_13-03-2025_21_05_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21393678 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21393678_13-03-2025_21_05_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21393697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21393698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21393699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21393700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21393701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21393702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21393703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21393704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21393705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21393706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21393707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21393708, 'pht': 3726}}" where mtr_portfolio_id = 21393678 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21393678 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433716, 0.06108328275433152, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21393678_13-03-2025_21_05_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21393697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21393698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21393699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21393700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21393701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21393702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21393703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21393704, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21393705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21393706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21393707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21393708, '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 = 21394780 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666734, 'mtr_portfolio_id': 21394780, 'created_at': datetime.datetime(2025, 3, 13, 21, 17, 31), 'result': '0.0655586001911245', 'result_long': None, 'result_double': None}] Qualite : 0.0655586001911245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21394780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21394780_13-03-2025_21_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21394780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21394780_13-03-2025_21_17_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21394831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21394832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21394833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21394834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21394835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21394836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21394837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21394838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21394839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21394840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21394841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21394842, 'pht': 3726}}" where mtr_portfolio_id = 21394780 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21394780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433717, 0.0655586001911245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21394780_13-03-2025_21_17_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21394831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21394832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21394833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21394834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21394835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21394836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21394837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21394838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21394839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21394840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21394841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21394842, '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 = 21395431 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666751, 'mtr_portfolio_id': 21395431, 'created_at': datetime.datetime(2025, 3, 13, 21, 34, 30), 'result': '0.07310246597403268', 'result_long': None, 'result_double': None}] Qualite : 0.07310246597403268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21395431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21395431_13-03-2025_21_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21395431 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21395431_13-03-2025_21_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21395437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21395438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21395439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21395440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21395441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21395442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21395443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21395444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21395445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21395446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21395447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21395448, 'pht': 3726}}" where mtr_portfolio_id = 21395431 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21395431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433718, 0.07310246597403268, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21395431_13-03-2025_21_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21395437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21395438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21395439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21395440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21395441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21395442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21395443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21395444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21395445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21395446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21395447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21395448, '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 = 21396174 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666797, 'mtr_portfolio_id': 21396174, 'created_at': datetime.datetime(2025, 3, 13, 21, 48, 1), 'result': '0.07672616095167956', 'result_long': None, 'result_double': None}] Qualite : 0.07672616095167956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21396174 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21396174_13-03-2025_21_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21396174 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21396174_13-03-2025_21_48_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21396181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21396182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21396184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21396185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21396187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21396188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21396189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21396190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21396192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21396193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21396194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21396195, 'pht': 3726}}" where mtr_portfolio_id = 21396174 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21396174 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433719, 0.07672616095167956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21396174_13-03-2025_21_48_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21396181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21396182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21396184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21396185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21396187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21396188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21396189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21396190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21396192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21396193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21396194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21396195, '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 = 21397287 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666874, 'mtr_portfolio_id': 21397287, 'created_at': datetime.datetime(2025, 3, 13, 22, 4, 59), 'result': '0.0798408357707004', 'result_long': None, 'result_double': None}] Qualite : 0.0798408357707004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21397287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21397287_13-03-2025_22_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21397287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21397287_13-03-2025_22_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21397291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21397292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21397293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21397294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21397295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21397296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21397297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21397298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21397299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21397300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21397301, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21397302, 'pht': 3726}}" where mtr_portfolio_id = 21397287 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21397287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433720, 0.0798408357707004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21397287_13-03-2025_22_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21397291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21397292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21397293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21397294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21397295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21397296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21397297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21397298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21397299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21397300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21397301, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21397302, '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 = 21398040 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2666982, 'mtr_portfolio_id': 21398040, 'created_at': datetime.datetime(2025, 3, 13, 22, 51), 'result': '0.09105159642696223', 'result_long': None, 'result_double': None}] Qualite : 0.09105159642696223 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21398040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21398040_13-03-2025_22_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21398040 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21398040_13-03-2025_22_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21398121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21398122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21398123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21398124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21398125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21398126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21398127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21398128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21398129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21398130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21398131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21398133, 'pht': 3726}}" where mtr_portfolio_id = 21398040 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21398040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433721, 0.09105159642696223, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21398040_13-03-2025_22_51_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21398121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21398122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21398123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21398124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21398125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21398126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21398127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21398128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21398129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21398130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21398131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21398133, '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 = 21400996 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667141, 'mtr_portfolio_id': 21400996, 'created_at': datetime.datetime(2025, 3, 13, 23, 4, 30), 'result': '0.17467052348354237', 'result_long': None, 'result_double': None}] Qualite : 0.17467052348354237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21400996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21400996_13-03-2025_23_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21400996 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21400996_13-03-2025_23_04_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21400997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21400998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21400999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21401000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21401001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21401002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21401003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21401004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21401005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21401006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21401007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21401008, 'pht': 3726}}" where mtr_portfolio_id = 21400996 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21400996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433722, 0.17467052348354237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21400996_13-03-2025_23_04_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21400997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21400998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21400999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21401000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21401001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21401002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21401003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21401004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21401005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21401006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21401007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21401008, '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 = 21401669 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667163, 'mtr_portfolio_id': 21401669, 'created_at': datetime.datetime(2025, 3, 13, 23, 17, 33), 'result': '0.10495362949316643', 'result_long': None, 'result_double': None}] Qualite : 0.10495362949316643 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21401669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21401669_13-03-2025_23_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21401669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21401669_13-03-2025_23_17_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21401694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21401695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21401696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21401697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21401698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21401699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21401700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21401701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21401702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21401703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21401704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21401705, 'pht': 3726}}" where mtr_portfolio_id = 21401669 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21401669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433723, 0.10495362949316643, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21401669_13-03-2025_23_17_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21401694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21401695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21401696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21401697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21401698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21401699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21401700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21401701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21401702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21401703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21401704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21401705, '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 = 21402278 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2667190, 'mtr_portfolio_id': 21402278, 'created_at': datetime.datetime(2025, 3, 13, 23, 35, 58), 'result': '0.12521998225209086', 'result_long': None, 'result_double': None}] Qualite : 0.12521998225209086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21402278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21402278_13-03-2025_23_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21402278 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21402278_13-03-2025_23_35_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21402279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21402280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21402281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21402282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21402283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21402284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21402285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21402286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21402287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21402288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21402289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21402290, 'pht': 3726}}" where mtr_portfolio_id = 21402278 and dashboard_run_id = 1675248 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21402278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9433724, 0.12521998225209086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21402278_13-03-2025_23_35_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21402279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21402280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21402281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21402282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21402283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21402284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21402285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21402286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21402287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21402288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21402289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21402290, '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 (21372357,21372764,21373172,21373693,21374101,21374849,21375494,21376239,21376738,21404712,21404713,21404714,21404733,21404734,21404753,21404754,21404755,21404756,21404757,21404758,21404759,21404760,21404761,21404762,21404763,21377710,21383050,21384820,21385552,21386481,21388894,21388973,21389291,21390308,21391251,21392334,21393678,21394780,21395431,21396174,21397287,21398040,21400996,21401669,21402278) result : ((1343708816,), (1343708820,), (1343708824,), (1343708850,), (1343708853,), (1343708886,), (1343708889,), (1343708891,), (1343708894,), (1343708907,), (1343708921,), (1343708925,), (1343708931,), (1343708934,), (1343708935,), (1343708950,), (1343708956,), (1343708963,), (1343708968,), (1343708971,), (1343708972,), (1343708990,), (1343709000,), (1343709022,), (1343709031,), (1343709036,), (1343709037,), (1343709057,), (1343709062,), (1343709068,), (1343709073,), (1343709075,), (1343709077,), (1343709097,), (1343709103,), (1343709131,), (1343709137,), (1343709142,), (1343709147,), (1343709164,), (1343712361,), (1343712425,), (1343712430,), (1343712436,), (1343712457,), (1343712464,), (1343712466,), (1343712471,), (1343712475,), (1343712479,), (1343712495,), (1343712498,), (1343712501,), (1343712504,), (1343712529,), (1343712534,), (1343712537,), (1343712541,), (1343712544,), (1343712546,), (1343712570,), (1343712573,), (1343712576,), (1343712607,), (1343712611,), (1343712613,), (1343712645,), (1343712650,), (1343712654,), (1343712657,), (1343712685,), (1343712690,), (1343712695,), (1343712700,), (1343712704,), (1343712728,), (1343712732,), (1343712736,), (1343712739,), (1343712740,), (1343712741,), (1343712771,), (1343712774,), (1343712778,), (1343712780,), (1343712782,), (1343712785,), (1343712816,), (1343712820,), (1343712825,), (1343712829,), (1343712831,), (1343712832,), (1343712854,), (1343712859,), (1343712863,), (1343712868,), (1343712869,), (1343712870,), (1343712892,), (1343712897,), (1343712902,), (1343712906,), (1343712907,), (1343712908,), (1343712930,), (1343712936,), (1343712941,), (1343712946,), (1343712947,), (1343712948,), (1343712972,), (1343712976,), (1343712980,), (1343712985,), (1343712989,), (1343713031,), (1343713007,), (1343713013,), (1343713017,), (1343713025,), (1343713029,), (1343713058,), (1343713062,), (1343713069,), (1343713071,), (1343713074,), (1343713077,), (1343713094,), (1343713100,), (1343713105,), (1343713112,), (1343713116,), (1343713117,), (1343713141,), (1343713146,), (1343713152,), (1343713155,), (1343713157,), (1343713161,), (1343713183,), (1343713190,), (1343713194,), (1343713196,), (1343713200,), (1343713205,), (1343713227,), (1343713231,), (1343713235,), (1343713238,), (1343713239,), (1343713241,), (1343713262,), (1343713264,), (1343713268,), (1343713272,), (1343713278,), (1343713284,), (1343713304,), (1343713309,), (1343713313,), (1343713318,), (1343713320,), (1343713344,), (1343713377,), (1343713381,), (1343713384,), (1343713386,), (1343713389,), (1343713420,), (1343713422,), (1343713425,), (1343713427,), (1343713432,), (1343713436,), (1343713513,), (1343713540,), (1343713556,), (1343713569,), (1343713590,), (1343713605,), (1343713688,), (1343713691,), (1343713694,), (1343713696,), (1343713697,), (1343713698,), (1343714266,), (1343714303,), (1343714335,), (1343714398,), (1343714433,), (1343714482,), (1343714954,), (1343714858,), (1343714896,), (1343714916,), (1343714931,), (1343715142,), (1343715174,), (1343715195,), (1343715207,), (1343715248,), (1343715273,), (1343715434,), (1343715444,), (1343715467,), (1343715483,), (1343715488,), (1343715506,), (1343715591,), (1343715595,), (1343715599,), (1343715602,), (1343715605,), (1343715606,), (1343715655,), (1343715658,), (1343715662,), (1343715663,), (1343715665,), (1343715667,), (1343715710,), (1343715713,), (1343715715,), (1343715717,), (1343715718,), (1343715719,), (1343715780,), (1343715785,), (1343715789,), (1343715793,), (1343715818,), (1343715844,), (1343715950,), (1343715955,), (1343715959,), (1343715961,), (1343715964,), (1343715968,), (1343716032,), (1343716041,), (1343716048,), (1343716064,), (1343716073,), (1343716080,), (1343716093,), (1343716095,), (1343716097,), (1343716102,), (1343716110,), (1343716121,), (1343716163,), (1343716170,), (1343716172,), (1343716179,), (1343716186,), (1343716192,), (1343716199,), (1343716240,), (1343716246,), (1343716253,), (1343716255,), (1343716261,), (1343716266,), (1343716293,), (1343716299,), (1343716331,), (1343716333,), (1343716337,), (1343716341,), (1343716352,), (1343716354,), (1343716363,), (1343716370,), (1343716376,), (1343716382,), (1343716430,), (1343716434,), (1343716447,), (1343716450,), (1343716463,), (1343716469,), (1343716145,), (1343716153,), (1343716156,), (1343716158,), (1343716160,), (1343716211,), (1343716213,), (1343716216,), (1343716219,), (1343716221,), (1343716223,), (1343716273,), (1343716282,), (1343716285,), (1343716288,), (1343716324,), (1343716330,), (1343716391,), (1343716411,), (1343716420,), (1343716426,), (1343716491,), (1343716493,), (1343716501,), (1343716505,), (1343716507,), (1343716509,), (1343716512,), (1343716513,), (1343716518,), (1343716519,), (1343716522,), (1343716524,), (1343716539,), (1343716545,), (1343716558,), (1343716579,), (1343716598,), (1343716613,), (1343716741,), (1343716746,), (1343716751,), (1343716771,), (1343716814,), (1343716849,), (1343716965,), (1343716972,), (1343716978,), (1343716984,), (1343716986,), (1343716991,), (1343717041,), (1343717049,), (1343717057,), (1343717063,), (1343717066,), (1343717225,), (1343717255,), (1343717272,), (1343717277,), (1343717280,), (1343717283,), (1343717319,), (1343717324,), (1343717329,), (1343717334,), (1343717336,), (1343717339,), (1343717394,), (1343717398,), (1343717401,), (1343717405,), (1343717408,), (1343717414,), (1343717469,), (1343717494,), (1343717516,), (1343717534,), (1343717553,), (1343717571,), (1343717774,), (1343717789,), (1343717801,), (1343717805,), (1343717809,), (1343717820,), (1343717890,), (1343717863,), (1343717870,), (1343717876,), (1343717880,), (1343717884,), (1343717956,), (1343717963,), (1343717970,), (1343717977,), (1343717978,), (1343717987,), (1343718018,), (1343718041,), (1343718050,), (1343718054,), (1343718056,), (1343718060,), (1343718201,), (1343718228,), (1343718247,), (1343718253,), (1343718271,), (1343718458,), (1343718510,), (1343718555,), (1343718585,), (1343718611,), (1343718635,), (1343718743,), (1343718750,), (1343718757,), (1343718800,), (1343718819,), (1343718826,), (1343719005,), (1343719210,), (1343719220,), (1343719226,), (1343719272,), (1343719294,), (1343719321,), (1343719345,), (1343719369,), (1343719404,), (1343719429,), (1343719555,), (1343719564,), (1343719569,), (1343719574,), (1343719619,), (1343719672,), (1343719757,), (1343719763,), (1343719767,), (1343719771,), (1343719829,), (1343719835,), (1343719840,), (1343719843,), (1343719844,), (1343719847,), (1343720088,), (1343719924,), (1343720006,), (1343720043,), (1343720066,), (1343720074,), (1343720168,), (1343720174,), (1343720180,), (1343720183,), (1343720185,), (1343720186,), (1343720216,), (1343720222,), (1343720226,), (1343720229,), (1343720230,), (1343720233,), (1343720364,), (1343720421,), (1343720438,), (1343720444,), (1343720453,), (1343720464,), (1343720502,), (1343720508,), (1343720513,), (1343720520,), (1343720522,), (1343720555,), (1343720562,), (1343720567,), (1343720571,), (1343720605,), (1343720611,), (1343720616,), (1343720625,), (1343720626,), (1343720628,), (1343720665,), (1343720670,), (1343720673,), (1343720679,), (1343720682,), (1343720687,), (1343720713,), (1343720718,), (1343720723,), (1343720761,), (1343720768,), (1343720774,), (1343720804,), (1343720808,), (1343720813,), (1343720818,), (1343720858,), (1343720863,), (1343720871,), (1343720873,), (1343720903,), (1343720912,), (1343720916,), (1343720920,), (1343721264,), (1343721289,), (1343721315,), (1343721423,), (1343721798,), (1343722466,), (1343722497,), (1343722526,), (1343722560,), (1343722947,), (1343723003,), (1343723042,), (1343723099,), (1343723352,), (1343723382,), (1343723411,), (1343723418,), (1343723422,), (1343723439,), (1343723582,), (1343723590,), (1343723631,), (1343723653,), (1343723671,), (1343723685,), (1343723757,), (1343723762,), (1343723768,), (1343723772,), (1343723776,), (1343723825,), (1343723951,), (1343724782,), (1343724833,), (1343724838,), (1343724844,), (1343724850,), (1343724853,), (1343724857,), (1343724878,), (1343724882,), (1343724889,), (1343724894,), (1343724901,), (1343724923,), (1343725205,), (1343725267,), (1343725308,), (1343725325,), (1343725369,), (1343725390,), (1343726021,), (1343726121,), (1343726159,), (1343726167,), (1343726181,), (1343726199,), (1343726242,), (1343726250,), (1343726254,), (1343726259,), (1343726275,), (1343726285,), (1343726479,), (1343726362,), (1343726387,), (1343726415,), (1343726429,), (1343726474,), (1343726559,), (1343726563,), (1343726568,), (1343726571,), (1343726576,), (1343726580,), (1343726666,), (1343726670,), (1343726678,), (1343726691,), (1343726693,), (1343726696,), (1343726725,), (1343726736,), (1343726774,), (1343726798,), (1343726802,), (1343726806,), (1343726945,), (1343726953,), (1343726977,), (1343726979,), (1343726980,), (1343727010,), (1343727015,), (1343727020,), (1343727024,), (1343727031,), (1343727037,), (1343727062,), (1343727069,), (1343727072,), (1343727079,), (1343727082,), (1343727086,), (1343727116,), (1343727128,), (1343727131,), (1343727133,), (1343727135,), (1343727138,), (1343727168,), (1343727172,), (1343727177,), (1343727918,), (1343728240,), (1343746263,), (1343746514,), (1343746520,), (1343746717,), (1343746724,), (1343746759,), (1343746766,), (1343746881,), (1343800286,), (1343800610,), (1343801463,), (1343801528,), (1343802006,), (1343802071,), (1343802285,), (1343802299,), (1343809216,), (1343822564,), (1343823151,), (1343823179,), (1343825089,), (1343825652,), (1343826049,), (1343826080,), (1343826102,), (1343826415,), (1343826445,), (1343826476,), (1343827207,), (1343827281,), (1343827407,), (1343827474,), (1343827523,), (1343827610,), (1343827737,), (1343827764,), (1343827988,), (1343828017,), (1343828053,), (1343828081,), (1343828108,), (1343828622,), (1343828632,), (1343828654,), (1343828673,), (1343828956,), (1343828991,), (1343829069,), (1343829122,), (1343829158,), (1343829364,), (1343829392,), (1343829418,), (1343829826,), (1343829752,), (1343829786,), (1343829808,), (1343830432,), (1343830445,), (1343830475,), (1343830541,), (1343830579,), (1343830830,), (1343830871,), (1343830895,), (1343830913,), (1343830935,), (1343830980,), (1343831231,), (1343831248,), (1343831259,), (1343831261,), (1343831411,), (1343831444,), (1343831480,), (1343831510,), (1343831532,), (1343831543,), (1343831684,), (1343831784,), (1343831826,), (1343831852,), (1343831878,), (1343832113,), (1343832131,), (1343832135,), (1343832137,), (1343832150,), (1343832235,), (1343832237,), (1343832242,), (1343832274,), (1343832359,), (1343832428,), (1343832433,), (1343832438,), (1343832441,), (1343832530,), (1343832556,), (1343832590,), (1343832616,), (1343833009,), (1343833061,), (1343833126,), (1343833161,), (1343833603,), (1343833606,), (1343833611,), (1343833617,), (1343834022,), (1343834083,), (1343834159,), (1343834223,), (1343834274,), (1343834525,), (1343834528,), (1343834531,), (1343834604,), (1343834618,), (1343834625,), (1343834807,), (1343834876,), (1343835878,), (1343835501,), (1343835549,), (1343835630,), (1343835720,), (1343835813,), (1343836389,), (1343836416,), (1343836435,), (1343836437,), (1343836481,), (1343836529,), (1343836741,), (1343836763,), (1343836784,), (1343836837,), (1343837581,), (1343837660,), (1343837733,), (1343837845,), (1343837913,), (1343838392,), (1343838438,), (1343838470,), (1343838509,), (1343838543,), (1343838842,), (1343838899,), (1343838977,), (1343839018,), (1343839074,), (1343839763,), (1343839828,), (1343839864,), (1343839923,), (1343839951,), (1343840196,), (1343840219,), (1343840255,), (1343840299,), (1343840830,), (1343840885,), (1343840931,), (1343840958,), (1343840981,), (1343841222,), (1343841224,), (1343841234,), (1343841243,), (1343841426,), (1343841447,), (1343841475,), (1343841537,), (1343841558,), (1343841672,), (1343841704,), (1343841733,), (1343841772,), (1343842432,), (1343842472,), (1343842502,), (1343842958,), (1343843010,), (1343843092,), (1343843145,), (1343843192,), (1343843640,), (1343843663,), (1343843673,), (1343843677,), (1343843878,), (1343843853,), (1343843859,), (1343843873,), (1343844049,), (1343844055,), (1343844061,), (1343844066,), (1343862735,), (1343864844,), (1343864893,), (1343865562,), (1343865612,), (1343865640,), (1343865995,), (1343866062,), (1343866132,), (1343866189,), (1343866284,), (1343866841,), (1343866926,), (1343866976,), (1343867086,), (1343867157,), (1343867765,), (1343867823,), (1343867865,), (1343868316,), (1343868078,), (1343868106,), (1343868166,), (1343868192,), (1343868417,), (1343868468,), (1343868496,), (1343868531,), (1343868556,), (1343868623,), (1343868807,), (1343868938,), (1343869033,), (1343869120,), (1343869570,), (1343869734,), (1343870437,), (1343870504,), (1343870979,), (1343871038,), (1343871078,), (1343871111,), (1343871899,), (1343871947,), (1343871990,), (1343872051,), (1343872146,), (1343872359,), (1343872435,), (1343872597,), (1343873602,), (1343873655,), (1343874190,), (1343874272,), (1343874294,), (1343874339,), (1343874482,), (1343874620,), (1343874664,), (1343874708,), (1343875028,), (1343875079,), (1343875127,), (1343875192,), (1343875248,), (1343875423,), (1343875445,), (1343875498,), (1343875548,), (1343875877,), (1343875911,), (1343875956,), (1343876017,), (1343876646,), (1343876707,), (1343876784,), (1343877714,), (1343877534,), (1343877586,), (1343877670,), (1343878072,), (1343878077,), (1343878081,), (1343878083,), (1343878431,), (1343878475,), (1343878502,), (1343878550,), (1343878600,), (1343878643,), (1343878980,), (1343879010,), (1343879036,), (1343879071,), (1343879087,), (1343879600,), (1343879653,), (1343879721,), (1343879772,), (1343879794,), (1343880391,), (1343880597,), (1343880741,), (1343881030,), (1343881137,), (1343881167,), (1343881193,), (1343881256,), (1343881282,), (1343881759,), (1343881811,), (1343881869,), (1343881926,), (1343882087,), (1343882340,), (1343882375,), (1343882402,), (1343882644,), (1343883159,), (1343883200,), (1343883239,), (1343883256,), (1343883263,), (1343883265,), (1343883301,), (1343883307,), (1343883330,), (1343883361,), (1343883408,), (1343883434,), (1343883752,), (1343883823,), (1343883833,), (1343883834,), (1343883996,), (1343884279,), (1343884310,), (1343884404,), (1343885465,), (1343885494,), (1343885520,), (1343885553,), (1343885574,), (1343885666,), (1343885738,), (1343885994,), (1343886750,), (1343886320,), (1343886461,), (1343886622,), (1343887307,), (1343887343,), (1343887368,), (1343887394,), (1343887399,), (1343887403,), (1343887806,), (1343887929,), (1343887976,), (1343888017,), (1343888056,), (1343888082,), (1343888617,), (1343888695,), (1343888771,), (1343889826,), (1343889911,), (1343890024,), (1343890187,), (1343890279,), (1343890419,), (1343890924,), (1343890979,), (1343891023,), (1343891128,), (1343891208,), (1343891294,), (1343891784,), (1343891978,), (1343892022,), (1343892079,), (1343892385,), (1343892454,), (1343892525,), (1343892572,), (1343892617,), (1343893335,), (1343893379,), (1343893452,), (1343893487,), (1343894007,), (1343894120,), (1343894160,), (1343894249,), (1343894322,), (1343894639,), (1343894669,), (1343894722,), (1343894780,), (1343895160,), (1343895185,), (1343895199,), (1343895303,), (1343895398,), (1343895464,), (1343895725,), (1343895841,), (1343895902,), (1343895994,), (1343896064,), (1343896691,), (1343896812,), (1343896901,), (1343897508,), (1343897553,), (1343897686,), (1343897797,), (1343897856,), (1343897919,), (1343898170,), (1343898131,), (1343898138,), (1343898143,), (1343898154,), (1343898507,), (1343898532,), (1343898603,), (1343898632,), (1343898634,), (1343899055,), (1343899075,), (1343899081,), (1343899127,), (1343899671,), (1343899702,), (1343899724,), (1343899781,), (1343899869,), (1343900145,), (1343900168,), (1343900198,), (1343900230,), (1343900557,), (1343900583,), (1343900611,), (1343900664,), (1343900725,), (1343900771,), (1343901221,), (1343901281,), (1343901305,), (1343901411,), (1343901449,), (1343901473,), (1343901748,), (1343901842,), (1343901994,), (1343906530,), (1343906474,), (1343906478,), (1343906918,), (1343906974,), (1343907137,), (1343907232,), (1343907239,), (1343907334,), (1343907742,), (1343907807,), (1343907875,), (1343908106,), (1343908510,), (1343908576,), (1343908641,), (1343909555,), (1343911126,), (1343911256,), (1343920812,), (1343920786,), (1343921088,), (1343922333,), (1343922583,), (1343922594,), (1343922607,), (1343922611,), (1343922809,), (1343923199,), (1343923224,), (1343923248,), (1343923754,), (1343923794,), (1343923825,), (1343924210,), (1343924236,), (1343924845,), (1343925029,), (1343925120,), (1343925160,), (1343925209,), (1343925660,), (1343925697,), (1343925761,), (1343925796,), (1343925815,), (1343926174,), (1343926203,), (1343926232,), (1343926246,), (1343926249,), (1343926251,), (1343926330,), (1343926356,), (1343926380,), (1343926409,), (1343926699,), (1343926739,), (1343926770,), (1343926806,), (1343926831,), (1343927450,), (1343927221,), (1343927280,), (1343927408,), (1343928086,), (1343928312,), (1343928392,), (1343928594,), (1343928685,), (1343929419,), (1343929452,), (1343929580,), (1343929906,), (1343929918,), (1343929922,), (1343929925,), (1343929943,), (1343929958,), (1343930114,), (1343930182,), (1343930186,), (1343930199,), (1343930281,), (1343930309,), (1343930719,), (1343930730,), (1343930737,), (1343930755,), (1343930756,), (1343930758,), (1343930843,), (1343930851,), (1343930882,), (1343930984,), (1343930989,), (1343930994,), (1343930998,), (1343931001,), (1343931371,), (1343931408,), (1343931433,), (1343931477,), (1343931519,), (1343931577,), (1343931900,), (1343931912,), (1343931918,), (1343932085,), (1343932110,), (1343932171,), (1343932196,), (1343932508,), (1343932518,), (1343932538,), (1343932578,), (1343932640,), (1343932839,), (1343932864,), (1343932929,), (1343932977,), (1343933179,), (1343933273,), (1343933300,), (1343933554,), (1343933575,), (1343933605,), (1343933635,), (1343933654,), (1343933674,), (1343933940,), (1343933867,), (1343933897,), (1343933912,), (1343934174,), (1343934212,), (1343934286,), (1343934328,), (1343934348,), (1343934451,), (1343934548,), (1343934645,), (1343934823,), (1343934991,), (1343935082,), (1343935110,), (1343935276,), (1343935338,), (1343935398,), (1343935507,), (1343935569,), (1343935620,), (1343935822,), (1343935869,), (1343935919,), (1343935990,), (1343936066,), (1343936110,), (1343936396,), (1343936453,), (1343936564,), (1343936843,), (1343936926,), (1343936990,), (1343937227,), (1343937327,), (1343937399,), (1343937430,), (1343937497,), (1343937594,), (1343937726,), (1343937752,), (1343937763,), (1343938078,), (1343938103,), (1343938135,), (1343938164,), (1343938183,), (1343938512,), (1343938525,), (1343938535,), (1343938544,), (1343938563,), (1343938982,), (1343939061,), (1343939127,), (1343939901,), (1343939968,), (1343940044,), (1343940103,), (1343940179,), (1343940782,), (1343940861,), (1343940916,), (1343940977,), (1343941039,), (1343941544,), (1343941616,), (1343941666,), (1343941673,), (1343941716,), (1343942012,), (1343942053,), (1343942093,), (1343942682,), (1343942719,), (1343942746,), (1343942804,), (1343942886,), (1343943872,), (1343943485,), (1343943581,), (1343943640,), (1343943728,), (1343943777,), (1343944365,), (1343944431,), (1343944512,), (1343944599,), (1343945086,), (1343945131,), (1343945167,), (1343945205,), (1343945472,), (1343945475,), (1343945488,), (1343945510,), (1343946107,), (1343946192,), (1343946257,), (1343946335,), (1343946403,), (1343946453,), (1343946773,), (1343946794,), (1343946820,), (1343946834,), (1343946858,), (1343947014,), (1343947038,), (1343947060,), (1343947091,), (1343947461,), (1343947496,), (1343947540,), (1343947593,), (1343947953,), (1343947973,), (1343947983,), (1343948008,), (1343948052,), (1343948069,), (1343948175,), (1343948179,), (1343948183,), (1343948186,), (1343948187,), (1343948297,), (1343948312,), (1343948345,), (1343948775,), (1343948799,), (1343948826,), (1343948865,), (1343948911,), (1343949098,), (1343949118,), (1343950120,), (1343950155,), (1343950245,), (1343950315,), (1343950330,), (1343950479,), (1343950487,), (1343950491,), (1343950511,), (1343950532,), (1343950552,), (1343950548,), (1343950666,), (1343950670,), (1343950674,), (1343950694,), (1343950765,), (1343950782,), (1343950786,), (1343951054,), (1343951083,), (1343951134,), (1343951193,), (1343951279,), (1343951844,), (1343951897,), (1343951968,), (1343952688,), (1343952740,), (1343952798,), (1343952859,), (1343952901,), (1343953136,), (1343953165,), (1343953211,), (1343953265,), (1343953723,), (1343953821,), (1343953839,), (1343953972,), (1343954502,), (1343954519,), (1343954524,), (1343954548,), (1343954823,), (1343954826,), (1343954830,), (1343954862,), (1343955042,), (1343955066,), (1343956961,), (1343973062,), (1343973649,), (1343975502,), (1343975959,), (1343975971,), (1343976608,), (1343977489,), (1343977516,), (1343978083,), (1343978108,), (1343978500,), (1343978463,), (1343979604,), (1343980005,), (1343980008,), (1343981517,), (1343981743,), (1343981819,), (1343983376,), (1343984392,), (1343984586,), (1343984795,), (1343984974,), (1343985559,), (1343986222,), (1343989841,), (1343989892,), (1343992400,), (1343992950,), (1343993519,), (1343728198,), (1343728210,), (1343728229,), (1343728234,), (1343728238,), (1343728265,), (1343728271,), (1343728276,), (1343728281,), (1343728284,), (1343728286,), (1343728359,), (1343728364,), (1343728369,), (1343728373,), (1343728427,), (1343728455,), (1343728594,), (1343728603,), (1343728617,), (1343728631,), (1343728634,), (1343728635,), (1343728678,), (1343728683,), (1343728689,), (1343728694,), (1343728697,), (1343728699,), (1343728725,), (1343728730,), (1343728735,), (1343728739,), (1343728741,), (1343728771,), (1343728778,), (1343728786,), (1343728792,), (1343728799,), (1343728883,), (1343728898,), (1343728984,), (1343728986,), (1343729091,), (1343729103,), (1343729268,), (1343729273,), (1343729349,), (1343729386,), (1343729427,), (1343729433,), (1343729439,), (1343729444,), (1343729449,), (1343729473,), (1343729478,), (1343729488,), (1343729493,), (1343729497,), (1343729499,), (1343729542,), (1343729519,), (1343729525,), (1343729531,), (1343729536,), (1343729540,), (1343729705,), (1343729711,), (1343729716,), (1343729720,), (1343729723,), (1343729726,), (1343729752,), (1343729758,), (1343729762,), (1343729767,), (1343729771,), (1343729774,), (1343729803,), (1343729810,), (1343729815,), (1343729818,), (1343729821,), (1343729825,), (1343729838,), (1343729855,), (1343729860,), (1343729863,), (1343729867,), (1343729870,), (1343729892,), (1343729895,), (1343729901,), (1343729906,), (1343729910,), (1343729915,), (1343729946,), (1343729953,), (1343729956,), (1343729960,), (1343729965,), (1343729971,), (1343729994,), (1343730004,), (1343730011,), (1343730017,), (1343730021,), (1343730025,), (1343730043,), (1343730048,), (1343730052,), (1343730056,), (1343730062,), (1343730069,), (1343730093,), (1343730097,), (1343730101,), (1343730104,), (1343730108,), (1343730115,), (1343730139,), (1343730142,), (1343730145,), (1343730146,), (1343730149,), (1343730155,), (1343730184,), (1343730186,), (1343730189,), (1343730190,), (1343730194,), (1343730198,), (1343730233,), (1343730236,), (1343730239,), (1343730242,), (1343730244,), (1343730310,), (1343730314,), (1343730316,), (1343730320,), (1343730322,), (1343730325,), (1343730364,), (1343731749,), (1343731752,), (1343731756,), (1343731790,), (1343731794,), (1343731798,), (1343731801,), (1343731838,), (1343731842,), (1343731845,), (1343731847,), (1343731879,), (1343731922,), (1343731928,), (1343731934,), (1343731979,), (1343731983,), (1343732023,), (1343732027,), (1343732031,), (1343732034,), (1343732073,), (1343732077,), (1343732080,), (1343732082,), (1343732118,), (1343732121,), (1343732123,), (1343732125,), (1343732126,), (1343732127,), (1343732164,), (1343732168,), (1343732171,), (1343732214,), (1343732217,), (1343732221,), (1343732224,), (1343732225,), (1343732272,), (1343732262,), (1343732265,), (1343732268,), (1343732271,), (1343732309,), (1343732314,), (1343732318,), (1343732321,), (1343732355,), (1343732358,), (1343732361,), (1343732399,), (1343732402,), (1343732406,), (1343732409,), (1343732410,), (1343732450,), (1343732454,), (1343732458,), (1343732460,), (1343732462,), (1343732463,), (1343732497,), (1343732500,), (1343732504,), (1343732540,), (1343732543,), (1343732547,), (1343732551,), (1343732554,), (1343732591,), (1343732596,), (1343732600,), (1343732603,), (1343732636,), (1343732640,), (1343732643,), (1343732646,), (1343732691,), (1343732695,), (1343732733,), (1343732737,), (1343732740,), (1343732743,), (1343732744,), (1343732746,), (1343732780,), (1343732785,), (1343732790,), (1343732795,), (1343732798,), (1343732834,), (1343732840,), (1343732845,), (1343732848,), (1343732914,), (1343732917,), (1343732920,), (1343732923,), (1343732926,), (1343732928,), (1343732942,), (1343732946,), (1343732951,), (1343732958,), (1343732966,), (1343732989,), (1343732981,), (1343732986,), (1343732988,), (1343733028,), (1343733031,), (1343733034,), (1343733037,), (1343733040,), (1343733081,), (1343733087,), (1343733091,), (1343733093,), (1343733095,), (1343733099,), (1343733131,), (1343733137,), (1343733142,), (1343733187,), (1343733193,), (1343733198,), (1343733201,), (1343733204,), (1343733207,), (1343733245,), (1343733249,), (1343733253,), (1343733255,), (1343733256,), (1343733260,), (1343733305,), (1343733310,), (1343733314,), (1343733317,), (1343733362,), (1343733365,), (1343733371,), (1343733375,), (1343733378,), (1343733381,), (1343733423,), (1343733428,), (1343733433,), (1343733437,), (1343733439,), (1343733485,), (1343733490,), (1343733495,), (1343733539,), (1343733544,), (1343733550,), (1343733556,), (1343733586,), (1343733591,), (1343733598,), (1343733603,), (1343733606,), (1343733636,), (1343733641,), (1343733648,), (1343733653,), (1343733657,), (1343733688,), (1343733698,), (1343733703,), (1343733706,), (1343733709,), (1343733740,), (1343733746,), (1343733752,), (1343733758,), (1343733762,), (1343733813,), (1343733794,), (1343733799,), (1343733805,), (1343733809,), (1343733846,), (1343733850,), (1343733856,), (1343733861,), (1343733863,), (1343733867,), (1343733896,), (1343733901,), (1343733907,), (1343733914,), (1343733949,), (1343733956,), (1343733962,), (1343733967,), (1343733969,), (1343734014,), (1343734020,), (1343734024,), (1343734029,), (1343734031,), (1343734032,), (1343734066,), (1343734072,), (1343734078,), (1343734113,), (1343734134,), (1343734137,), (1343734139,), (1343734172,), (1343734178,), (1343734184,), (1343734188,), (1343734191,), (1343734194,), (1343734230,), (1343734234,), (1343734238,), (1343734242,), (1343734243,), (1343734296,), (1343734302,), (1343734306,), (1343734309,), (1343734313,), (1343734350,), (1343734355,), (1343734359,), (1343734363,), (1343734364,), (1343734366,), (1343734404,), (1343734409,), (1343734415,), (1343734420,), (1343734422,), (1343734456,), (1343734462,), (1343734470,), (1343734508,), (1343734514,), (1343734521,), (1343734525,), (1343734566,), (1343734570,), (1343734577,), (1343734583,), (1343734585,), (1343734587,), (1343734642,), (1343734616,), (1343734632,), (1343734637,), (1343734639,), (1343734671,), (1343734675,), (1343734681,), (1343734688,), (1343734721,), (1343734726,), (1343734731,), (1343734738,), (1343734740,), (1343734772,), (1343734778,), (1343734783,), (1343734789,), (1343734791,), (1343734827,), (1343734833,), (1343734839,), (1343734845,), (1343734876,), (1343734881,), (1343734889,), (1343734894,), (1343734929,), (1343734936,), (1343734942,), (1343734946,), (1343734950,), (1343734987,), (1343734992,), (1343734998,), (1343735000,), (1343735032,), (1343735040,), (1343735081,), (1343735099,), (1343735104,), (1343735105,), (1343735108,), (1343735148,), (1343735154,), (1343735160,), (1343735163,), (1343735195,), (1343735201,), (1343735206,), (1343735212,), (1343735215,), (1343735217,), (1343735248,), (1343735254,), (1343735260,), (1343735305,), (1343735312,), (1343735318,), (1343735323,), (1343735325,), (1343735329,), (1343735363,), (1343735369,), (1343735374,), (1343735428,), (1343735416,), (1343735422,), (1343735477,), (1343735483,), (1343735488,), (1343735493,), (1343735532,), (1343735538,), (1343735546,), (1343735549,), (1343735578,), (1343735596,), (1343735601,), (1343735604,), (1343735608,), (1343735613,), (1343735651,), (1343735658,), (1343735663,), (1343735705,), (1343735709,), (1343735715,), (1343735720,), (1343735721,), (1343735722,), (1343735761,), (1343735767,), (1343735772,), (1343735777,), (1343735779,), (1343735817,), (1343735825,), (1343735829,), (1343735832,), (1343735869,), (1343735873,), (1343735878,), (1343735880,), (1343735883,), (1343735884,), (1343735932,), (1343735935,), (1343735940,), (1343735980,), (1343735984,), (1343735989,), (1343736033,), (1343736037,), (1343736041,), (1343736044,), (1343736045,), (1343736048,), (1343736085,), (1343736088,), (1343736092,), (1343736096,), (1343736097,), (1343736100,), (1343736171,), (1343736173,), (1343736178,), (1343736183,), (1343736188,), (1343736203,), (1343736205,), (1343736249,), (1343736242,), (1343736246,), (1343736293,), (1343736296,), (1343736298,), (1343736300,), (1343736301,), (1343736339,), (1343736342,), (1343736344,), (1343736346,), (1343736347,), (1343736384,), (1343736387,), (1343736391,), (1343736430,), (1343736433,), (1343736437,), (1343736440,), (1343736443,), (1343736477,), (1343736481,), (1343736484,), (1343736489,), (1343736528,), (1343736535,), (1343736539,), (1343736576,), (1343736581,), (1343736584,), (1343736587,), (1343736592,), (1343736626,), (1343736630,), (1343736633,), (1343736635,), (1343736718,), (1343736722,), (1343736766,), (1343736772,), (1343736776,), (1343736778,), (1343736780,), (1343736785,), (1343736815,), (1343736819,), (1343736857,), (1343736859,), (1343736864,), (1343736870,), (1343736876,), (1343736917,), (1343736920,), (1343736925,), (1343736928,), (1343736980,), (1343736956,), (1343736966,), (1343736971,), (1343736975,), (1343737010,), (1343737015,), (1343737049,), (1343737055,), (1343737090,), (1343737096,), (1343737103,), (1343737108,), (1343737117,), (1343737124,), (1343737143,), (1343737150,), (1343737153,), (1343737161,), (1343737165,), (1343737172,), (1343737205,), (1343737211,), (1343737214,), (1343737218,), (1343737226,), (1343737258,), (1343737264,), (1343737267,), (1343737270,), (1343737273,), (1343737276,), (1343737314,), (1343737319,), (1343737325,), (1343737366,), (1343737370,), (1343737376,), (1343737413,), (1343737419,), (1343737427,), (1343737429,), (1343737465,), (1343737470,), (1343737475,), (1343737478,), (1343737479,), (1343737511,), (1343737515,), (1343737521,), (1343737550,), (1343737556,), (1343737602,), (1343737607,), (1343737613,), (1343737616,), (1343737621,), (1343737644,), (1343737648,), (1343737655,), (1343737660,), (1343737667,), (1343737718,), (1343737697,), (1343737703,), (1343737707,), (1343737713,), (1343737746,), (1343737748,), (1343737751,), (1343737755,), (1343737794,), (1343737797,), (1343737800,), (1343737803,), (1343738101,), (1343738106,), (1343738140,), (1343738146,), (1343738152,), (1343738156,), (1343738187,), (1343738193,), (1343738200,), (1343738233,), (1343738239,), (1343738244,), (1343738249,), (1343738278,), (1343738285,), (1343738291,), (1343738328,), (1343738334,), (1343738339,), (1343738346,), (1343738389,), (1343738369,), (1343738375,), (1343738380,), (1343738387,), (1343738417,), (1343738424,), (1343738431,), (1343738464,), (1343738470,), (1343738476,), (1343738483,), (1343738508,), (1343738513,), (1343738519,), (1343738553,), (1343738560,), (1343738567,), (1343738610,), (1343738616,), (1343738621,), (1343738625,), (1343738656,), (1343738663,), (1343738669,), (1343738674,), (1343738678,), (1343738706,), (1343738714,), (1343738720,), (1343738727,), (1343738729,), (1343738760,), (1343738767,), (1343738774,), (1343738780,), (1343738812,), (1343738818,), (1343738822,), (1343738827,), (1343738861,), (1343738865,), (1343738874,), (1343738876,), (1343738879,), (1343738883,), (1343738916,), (1343738919,), (1343738922,), (1343738961,), (1343738963,), (1343738966,), (1343739036,), (1343739038,), (1343739041,), (1343739044,), (1343739048,), (1343739102,), (1343739093,), (1343739098,), (1343739132,), (1343739137,), (1343739141,), (1343739144,), (1343739178,), (1343739223,), (1343739318,), (1343739416,), (1343739421,), (1343739504,), (1343739512,), (1343739517,), (1343739523,), (1343739525,), (1343739554,), (1343739559,), (1343739563,), (1343739567,), (1343739569,), (1343739601,), (1343739607,), (1343739612,), (1343739653,), (1343739658,), (1343739666,), (1343739707,), (1343739712,), (1343739718,), (1343739721,), (1343739726,), (1343739728,), (1343739762,), (1343739769,), (1343739775,), (1343739779,), (1343739780,), (1343739831,), (1343739812,), (1343739818,), (1343739823,), (1343739829,), (1343739869,), (1343739874,), (1343739879,), (1343739883,), (1343739884,), (1343739920,), (1343739924,), (1343739928,), (1343739932,), (1343739966,), (1343739971,), (1343739976,), (1343740010,), (1343740015,), (1343740022,), (1343740023,), (1343740056,), (1343740062,), (1343740066,), (1343740072,), (1343740097,), (1343740103,), (1343740108,), (1343740113,), (1343740115,), (1343740141,), (1343740147,), (1343740153,), (1343740159,), (1343740189,), (1343740196,), (1343740201,), (1343740206,), (1343740209,), (1343740242,), (1343740248,), (1343740254,), (1343740259,), (1343740260,), (1343740261,), (1343740291,), (1343740341,), (1343740349,), (1343740355,), (1343740393,), (1343740399,), (1343740405,), (1343740410,), (1343740411,), (1343740412,), (1343740444,), (1343740451,), (1343740456,), (1343740462,), (1343740466,), (1343740468,), (1343740496,), (1343740521,), (1343740525,), (1343740528,), (1343740530,), (1343740534,), (1343740576,), (1343740563,), (1343740570,), (1343740616,), (1343740623,), (1343740629,), (1343740632,), (1343740634,), (1343740663,), (1343740670,), (1343740676,), (1343740679,), (1343740680,), (1343740681,), (1343740710,), (1343740714,), (1343740718,), (1343740761,), (1343740765,), (1343740770,), (1343740774,), (1343740776,), (1343740777,), (1343740811,), (1343740817,), (1343740821,), (1343740822,), (1343740823,), (1343740826,), (1343740860,), (1343740867,), (1343740872,), (1343740877,), (1343740913,), (1343740921,), (1343740927,), (1343740933,), (1343740935,), (1343740961,), (1343740982,), (1343740986,), (1343740988,), (1343740991,), (1343740995,), (1343741025,), (1343741032,), (1343741036,), (1343741042,), (1343741048,), (1343741079,), (1343742161,), (1343742602,), (1343742643,), (1343742683,), (1343742686,), (1343742722,), (1343742766,), (1343742770,), (1343742882,), (1343742914,), (1343742917,), (1343743032,), (1343743039,), (1343743280,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13032025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21388973]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] map_info['map_portfolio_photo'] : {21388973: [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844]} final : True mtd_id 4302 list_pids : [1343868316, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844] Looping around the photos to save general results len do output : 1 /21388973Didn'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, '2667749') ('4302', '21388973', '1343868316', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749') ('4302', None, None, None, None, None, None, None, '2667749') ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '21388973', 'None', None, None, None, None, '2667749'), ('4302', '21388973', '1343868316', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867865', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867823', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867765', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867157', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343867086', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866976', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866926', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866841', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866284', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866189', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866132', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343866062', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865995', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865640', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865612', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343865562', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343864893', None, None, None, None, None, '2667749'), ('4302', '21388973', '1343864844', None, None, None, None, None, '2667749')] time used for this insertion : 0.0532231330871582 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.62199330329895 time spend to save output : 0.05350995063781738 total time spend for step 5 : 3.6755032539367676 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 (2667749) 2.38user 2.03system 0:22.77elapsed 19%CPU (0avgtext+0avgdata 159844maxresident)k 544inputs+19152outputs (2major+77566minor)pagefaults 0swaps