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 : 2818034 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 (2650662) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2650662) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144771 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2650662'] with mtr_portfolio_ids : ['21144771'] and first list_photo_ids : [] new path : /proc/2818034/ Name: python3 Umask: 0002 State: R (running) Tgid: 2818034 Ngid: 0 Pid: 2818034 PPid: 2818033 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2818034 NSpid: 2818034 NSpgid: 2817236 NSsid: 2817236 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97712 kB VmRSS: 97712 kB RssAnon: 59756 kB RssFile: 37956 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 568 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 50 nonvoluntary_ctxt_switches: 137 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2818034', 'Ngid': '0', 'Pid': '2818034', 'PPid': '2818033', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2818034', 'NSpid': '2818034', 'NSpgid': '2817236', 'NSsid': '2817236', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97712 kB', 'VmRSS': '97712 kB', 'RssAnon': '59756 kB', 'RssFile': '37956 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '568 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '50', 'nonvoluntary_ctxt_switches': '137'} ('datou_batch_current', '2818034', '1106844', '0', '1106844', '865592', '97712', b'', 'marlene', '2650662') 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 (21144771) 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 (2650662 ) ) 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 (21144771) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1341478408, 'portfolio_id': 21144771}, {'photo_id': 1341478319, 'portfolio_id': 21144771}, {'photo_id': 1341478305, 'portfolio_id': 21144771}, {'photo_id': 1341478269, 'portfolio_id': 21144771}, {'photo_id': 1341478244, 'portfolio_id': 21144771}, {'photo_id': 1341478077, 'portfolio_id': 21144771}, {'photo_id': 1341478046, 'portfolio_id': 21144771}, {'photo_id': 1341478010, 'portfolio_id': 21144771}, {'photo_id': 1341477992, 'portfolio_id': 21144771}, {'photo_id': 1341477819, 'portfolio_id': 21144771}, {'photo_id': 1341477814, 'portfolio_id': 21144771}, {'photo_id': 1341477809, 'portfolio_id': 21144771}, {'photo_id': 1341477790, 'portfolio_id': 21144771}, {'photo_id': 1341477785, 'portfolio_id': 21144771}, {'photo_id': 1341477686, 'portfolio_id': 21144771}, {'photo_id': 1341477682, 'portfolio_id': 21144771}, {'photo_id': 1341477675, 'portfolio_id': 21144771}, {'photo_id': 1341477666, 'portfolio_id': 21144771}, {'photo_id': 1341477657, 'portfolio_id': 21144771}, {'photo_id': 1341477630, 'portfolio_id': 21144771}, {'photo_id': 1341477575, 'portfolio_id': 21144771}] map_portfolio_id_photo_id: {21144771: [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575]} ##### 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.600600004196167 #### 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 Sat Mar 8 05:35:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21144771) 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 : 21144771 get user id for portfolio 21144771 get sub ptf for main ptf 21144771, type 3726 and hashtags ['flou', 'papier', 'autre_refus', 'cartonnette', 'plastique', 'environnement', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'Carton_gris', 'mal_croppe', 'metal'] 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`=21144771 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','autre_refus','cartonnette','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','metal')) 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`=21144771 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','autre_refus','cartonnette','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21144771, 'sub_port_id': 21144778, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743961, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21144771, 'sub_port_id': 21144779, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743962, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'metal': {'main_port_id': 21144771, 'sub_port_id': 21144781, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743963, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'cartonnette': {'main_port_id': 21144771, 'sub_port_id': 21144782, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743964, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'autre_refus': {'main_port_id': 21144771, 'sub_port_id': 21144783, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743965, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'mal_croppe': {'main_port_id': 21144771, 'sub_port_id': 21144784, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743966, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'flou': {'main_port_id': 21144771, 'sub_port_id': 21144785, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743967, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'plastique': {'main_port_id': 21144771, 'sub_port_id': 21144786, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743968, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'papier': {'main_port_id': 21144771, 'sub_port_id': 21144787, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743969, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'environnement': {'main_port_id': 21144771, 'sub_port_id': 21144788, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743970, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'Carton_gris': {'main_port_id': 21144771, 'sub_port_id': 21144789, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743971, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}, 'kraft': {'main_port_id': 21144771, 'sub_port_id': 21144791, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743972, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21144778 , 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=21144771 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 (21144778) result : ((1341478919,), (1341479079,), (1341479080,), (1341479360,), (1341491882,), (1341491883,), (1341491885,), (1341491886,), (1341491887,), (1341491888,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144779 , 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=21144771 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 (21144779) result : ((1341479066,), (1341479067,), (1341479070,), (1341479071,), (1341491862,), (1341491863,), (1341491864,), (1341491865,), (1341491866,), (1341491867,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144781 , 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=21144771 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 (21144781) result : ((1341491892,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144782 , 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=21144771 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 (21144782) result : ((1341479076,), (1341479337,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144783 , 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=21144771 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 (21144783) result : ((1341478109,), (1341478902,), (1341478904,), (1341478906,), (1341479072,), (1341479073,), (1341479074,), (1341479075,), (1341479270,), (1341479273,), (1341479275,), (1341479278,), (1341491870,), (1341491871,), (1341491872,), (1341491873,), (1341491874,), (1341491875,), (1341491876,), (1341491877,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144784 , 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=21144771 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 (21144784) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144785 , 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=21144771 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 (21144785) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144786 , 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=21144771 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 (21144786) result : ((1341478920,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144787 , 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=21144771 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 (21144787) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144788 , 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=21144771 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 (21144788) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144789 , 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=21144771 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 (21144789) result : ((1341478117,), (1341478917,), (1341479332,), (1341479333,), (1341479335,), (1341491880,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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 21144791 , 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=21144771 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 (21144791) result : ((1341478922,), (1341491891,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21144771) result : ((1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,)) 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`=21144771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','autre_refus','cartonnette','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','metal')) 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`=21144771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','papier','autre_refus','cartonnette','plastique','environnement','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21144771, 'sub_port_id': 21144795, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743976, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21144771, 'sub_port_id': 21144796, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743977, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'metal': {'main_port_id': 21144771, 'sub_port_id': 21144797, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743978, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'cartonnette': {'main_port_id': 21144771, 'sub_port_id': 21144798, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743979, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'autre_refus': {'main_port_id': 21144771, 'sub_port_id': 21144799, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743980, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'mal_croppe': {'main_port_id': 21144771, 'sub_port_id': 21144800, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743981, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'flou': {'main_port_id': 21144771, 'sub_port_id': 21144801, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743982, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'plastique': {'main_port_id': 21144771, 'sub_port_id': 21144802, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743983, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'papier': {'main_port_id': 21144771, 'sub_port_id': 21144803, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743984, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'environnement': {'main_port_id': 21144771, 'sub_port_id': 21144804, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743985, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'Carton_gris': {'main_port_id': 21144771, 'sub_port_id': 21144805, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743986, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}, 'kraft': {'main_port_id': 21144771, 'sub_port_id': 21144806, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13743987, 'last_updated_at': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 7, 15, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 7, 15, 30, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144778 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144800,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144801,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144803,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144787 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144804,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144788 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144805,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21144806,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21144791 lien utilise dans velours : https://www.fotonower.com/velours/21144795,21144796,21144797,21144798,21144799,21144800,21144801,21144802,21144803,21144804,21144805,21144806?tags=Carton_brun,Teint_Dans_La_Masse,metal,cartonnette,autre_refus,mal_croppe,flou,plastique,papier,environnement,Carton_gris,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21144771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] map_info['map_portfolio_photo'] : {21144771: [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575]} final : False mtd_id 4302 list_pids : [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] Looping around the photos to save general results len do output : 1 /21144771. 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, '2650662') ('4302', '21144771', '1341478408', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21144771', "{'Carton_brun': 21144778, 'Teint_Dans_La_Masse': 21144779, 'metal': 21144781, 'cartonnette': 21144782, 'autre_refus': 21144783, 'mal_croppe': 21144784, 'flou': 21144785, 'plastique': 21144786, 'papier': 21144787, 'environnement': 21144788, 'Carton_gris': 21144789, 'kraft': 21144791}", None, None, None, None, '2650662'), ('4302', '21144771', '1341478408', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662')] time used for this insertion : 0.017212867736816406 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7283763885498047 time spend to save output : 0.017594099044799805 total time spend for step 1 : 2.7459704875946045 step2:final Sat Mar 8 05:35:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21144771) 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 21144771 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1341477575,1341477686,1341477682,1341477675,1341477666,1341477657,1341477630,1341477819,1341477814,1341477809,1341477790,1341477785,1341478077,1341478046,1341478010,1341477992,1341478319,1341478305,1341478269,1341478244,1341478408); 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([21144771]) Inside saveOutput : final : False verbose : True original output for save of step final : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} new output for save of step final : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] map_info['map_portfolio_photo'] : {21144771: [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575]} final : False mtd_id 4302 list_pids : [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] Looping around the photos to save general results len do output : 21 /1341478408.Didn't retrieve data . /1341478319.Didn't retrieve data . /1341478305.Didn't retrieve data . /1341478269.Didn't retrieve data . /1341478244.Didn't retrieve data . /1341478077.Didn't retrieve data . /1341478046.Didn't retrieve data . /1341478010.Didn't retrieve data . /1341477992.Didn't retrieve data . /1341477819.Didn't retrieve data . /1341477814.Didn't retrieve data . /1341477809.Didn't retrieve data . /1341477790.Didn't retrieve data . /1341477785.Didn't retrieve data . /1341477686.Didn't retrieve data . /1341477682.Didn't retrieve data . /1341477675.Didn't retrieve data . /1341477666.Didn't retrieve data . /1341477657.Didn't retrieve data . /1341477630.Didn't retrieve data . /1341477575.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, '2650662') ('4302', '21144771', '1341478408', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21144771', '1341478408', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478319', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478305', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478269', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478244', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478077', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478046', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341478010', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477992', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477819', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477814', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477809', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477790', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477785', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477686', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477682', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477675', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477666', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477657', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477630', '0.07009501029195404', None, None, None, None, '2650662'), ('4302', '21144771', '1341477575', '0.07009501029195404', None, None, None, None, '2650662')] time used for this insertion : 0.15677285194396973 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06439638137817383 time spend to save output : 0.15784239768981934 total time spend for step 2 : 0.22223877906799316 step3:velours_tree Sat Mar 8 05:35:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21144771: [{'Carton_brun': 21144778, 'Teint_Dans_La_Masse': 21144779, 'metal': 21144781, 'cartonnette': 21144782, 'autre_refus': 21144783, 'mal_croppe': 21144784, 'flou': 21144785, 'plastique': 21144786, 'papier': 21144787, 'environnement': 21144788, 'Carton_gris': 21144789, 'kraft': 21144791}]} input_args_next_step : {21144771: ()} output_args : {21144771: [{'Carton_brun': 21144778, 'Teint_Dans_La_Masse': 21144779, 'metal': 21144781, 'cartonnette': 21144782, 'autre_refus': 21144783, 'mal_croppe': 21144784, 'flou': 21144785, 'plastique': 21144786, 'papier': 21144787, 'environnement': 21144788, 'Carton_gris': 21144789, 'kraft': 21144791}]} args : 21144771 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_brun': 21144778, 'Teint_Dans_La_Masse': 21144779, 'metal': 21144781, 'cartonnette': 21144782, 'autre_refus': 21144783, 'mal_croppe': 21144784, 'flou': 21144785, 'plastique': 21144786, 'papier': 21144787, 'environnement': 21144788, 'Carton_gris': 21144789, 'kraft': 21144791},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21144771) 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([21144771]) 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.34448742866516113 time spend to save output : 5.841255187988281e-05 total time spend for step 3 : 0.344545841217041 step4:send_mail_cod Sat Mar 8 05:35:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} input_args_next_step : {1341478408: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478408 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478319 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478305 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478269 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478244 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478077 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478046 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341478010 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477992 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477819 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477814 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477809 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477790 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477785 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477686 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477682 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477675 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477666 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477657 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477630 depend.output_id : 0 input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ()} output_args : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',)} args : 1341477575 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 : {21144771: [{'Carton_brun': 21144778, 'Teint_Dans_La_Masse': 21144779, 'metal': 21144781, 'cartonnette': 21144782, 'autre_refus': 21144783, 'mal_croppe': 21144784, 'flou': 21144785, 'plastique': 21144786, 'papier': 21144787, 'environnement': 21144788, 'Carton_gris': 21144789, 'kraft': 21144791}]} input_args_next_step : {1341478408: ('0.07009501029195404',), 1341478319: ('0.07009501029195404',), 1341478305: ('0.07009501029195404',), 1341478269: ('0.07009501029195404',), 1341478244: ('0.07009501029195404',), 1341478077: ('0.07009501029195404',), 1341478046: ('0.07009501029195404',), 1341478010: ('0.07009501029195404',), 1341477992: ('0.07009501029195404',), 1341477819: ('0.07009501029195404',), 1341477814: ('0.07009501029195404',), 1341477809: ('0.07009501029195404',), 1341477790: ('0.07009501029195404',), 1341477785: ('0.07009501029195404',), 1341477686: ('0.07009501029195404',), 1341477682: ('0.07009501029195404',), 1341477675: ('0.07009501029195404',), 1341477666: ('0.07009501029195404',), 1341477657: ('0.07009501029195404',), 1341477630: ('0.07009501029195404',), 1341477575: ('0.07009501029195404',), 21144771: ()} output_args : {21144771: [{'Carton_brun': 21144778, 'Teint_Dans_La_Masse': 21144779, 'metal': 21144781, 'cartonnette': 21144782, 'autre_refus': 21144783, 'mal_croppe': 21144784, 'flou': 21144785, 'plastique': 21144786, 'papier': 21144787, 'environnement': 21144788, 'Carton_gris': 21144789, 'kraft': 21144791}]} args : 21144771 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :22, first value : ('0.07009501029195404',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21144771) 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 (1341478408,1341478319,1341478305,1341478269,1341478244,1341478077,1341478046,1341478010,1341477992,1341477819,1341477814,1341477809,1341477790,1341477785,1341477686,1341477682,1341477675,1341477666,1341477657,1341477630,1341477575) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1341477575 begin to download photo : 1341477682 begin to download photo : 1341477814 begin to download photo : 1341478077 begin to download photo : 1341478408 download finish for photo 1341477682 begin to download photo : 1341477686 download finish for photo 1341477575 begin to download photo : 1341477630 download finish for photo 1341478408 download finish for photo 1341478077 begin to download photo : 1341478244 download finish for photo 1341477814 begin to download photo : 1341477819 download finish for photo 1341477686 begin to download photo : 1341477785 download finish for photo 1341477630 begin to download photo : 1341477657 download finish for photo 1341478244 begin to download photo : 1341478269 download finish for photo 1341477819 begin to download photo : 1341477992 download finish for photo 1341478269 begin to download photo : 1341478305 download finish for photo 1341477657 begin to download photo : 1341477666 download finish for photo 1341477785 begin to download photo : 1341477790 download finish for photo 1341478305 begin to download photo : 1341478319 download finish for photo 1341477992 begin to download photo : 1341478010 download finish for photo 1341477666 begin to download photo : 1341477675 download finish for photo 1341477790 begin to download photo : 1341477809 download finish for photo 1341478319 download finish for photo 1341478010 begin to download photo : 1341478046 download finish for photo 1341477675 download finish for photo 1341477809 download finish for photo 1341478046 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P21144771_08-03-2025_05_35_31.pdf 21144781 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=21144781 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341491892: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392711_0.png'} change filename to text .imagette211447811741408531/ imagette211447811741408531/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392711_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/9c160e7d388c0e25ae55a3d80f30074d_26307029.png imagette211447811741408531 21144782 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=21144782 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341479076: '1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404320_0.png', 1341479337: '1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407153_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e46ddb8723a8290ccb8e9542ddfaaa7f_13899540.png change filename to text .imagette211447821741408531/ imagette211447821741408531/1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404320_0.png.png imagette211447821741408531/1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407153_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e050eb4fd9cdf02d98355eb45c9f88d7_13802207.png imagette211447821741408531 21144783 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=21144783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341479275: '1741358152_75587_1341478269_3482e6199bb66e920aeb74fb94c6a5dd_rle_crop_3697407172_0.png', 1341491877: '1741360853_178326_1341477630_e383d40f56cf1ec99ef241cf02ef8d13_rle_crop_3697392742_0.png', 1341491876: '1741360853_178326_1341477657_e1352252798c78a9786641d2a4db707c_rle_crop_3697392733_0.png', 1341491875: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392718_0.png', 1341491874: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392715_0.png', 1341491873: '1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392702_0.png', 1341491872: '1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392683_0.png', 1341491871: '1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392676_0.png', 1341491870: '1741360853_178326_1341477819_05d358a601f8ca8a0fefe3ec7438a542_rle_crop_3697479978_0.png', 1341479278: '1741358152_75587_1341478244_9e3b471b462f03792a4db045d9faf579_rle_crop_3697407185_0.png', 1341478109: '1741357765_406352_1341477686_ca749e0b2d5b806ff7d6eb7d613b2c8d_rle_crop_3697392445_0.png', 1341479273: '1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407161_0.png', 1341479270: '1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407157_0.png', 1341479075: '1741358127_410259_1341477785_68b882ee3d34634bdc695c0dbd6cffa9_rle_crop_3697404342_0.png', 1341479074: '1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404330_0.png', 1341479073: '1741358127_410259_1341477809_ae33244ccf9288acadf634be67a11e2c_rle_crop_3697404305_0.png', 1341479072: '1741358127_410259_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a_rle_crop_3697404047_0.png', 1341478906: '1741358005_408292_1341477992_41be54609796a810424c07cd3b809ffc_rle_crop_3697394604_0.png', 1341478904: '1741358005_408292_1341478010_b3ebe99da8d6d77007ec2bb9904c5080_rle_crop_3697394483_0.png', 1341478902: '1741358005_408292_1341478046_6cb36b549c3a2ff4ec855331d337ed0b_rle_crop_3697394441_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/bcb51334263515b55d99e57fd26560ee_46940659.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ce6f1db0ff945bd8d96ab342f760eea8_42252471.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/d6c853d7afe8e0ebe828e9dfa53faaa6_86898426.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a469e33c77124198c1fb2ccb23dcf8c0_59557601.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/466cadbf6757dc829a74c2c82c347529_82199851.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c0c0a8ac09d6d10763a3b02957b53d40_12328668.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/3f584fc39bba121d1337b3e79e701a2a_86678135.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/76d031e50c3ae3675e79770f82a1fc6f_72650493.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c6f4d1b2c980973537a1f1cd33255e78_1764181.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/d2914df30958d2fc349a954e8bc95d2a_81280998.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/128c6ac01968c6fd6d5c5620775e60cc_40981480.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/db2930426dcf287bfb882a5e92e00848_2232456.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/7be123cd56940288d90cbfb29aab2a75_90617465.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/443ce2cafbac81cb77d890e8d6840957_23455170.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ef79cd082ce823ccb4bd86ed60da36d1_63686728.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e433a255d8c01233622180f488f3a17f_63971182.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/99d8eb18f04f8ccf2a43314a1e899c78_65299092.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e2979f645ba1425395f055ead5b2ad62_39785908.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/14f8b3b51b3eb5b08fc6a9e0b439d985_16237693.png change filename to text .imagette211447831741408531/ imagette211447831741408531/1741358005_408292_1341478046_6cb36b549c3a2ff4ec855331d337ed0b_rle_crop_3697394441_0.png.png imagette211447831741408531/1741360853_178326_1341477630_e383d40f56cf1ec99ef241cf02ef8d13_rle_crop_3697392742_0.png.png imagette211447831741408531/1741358127_410259_1341477785_68b882ee3d34634bdc695c0dbd6cffa9_rle_crop_3697404342_0.png.png imagette211447831741408531/1741358152_75587_1341478244_9e3b471b462f03792a4db045d9faf579_rle_crop_3697407185_0.png.png imagette211447831741408531/1741358127_410259_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a_rle_crop_3697404047_0.png.png imagette211447831741408531/1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407157_0.png.png imagette211447831741408531/1741358005_408292_1341477992_41be54609796a810424c07cd3b809ffc_rle_crop_3697394604_0.png.png imagette211447831741408531/1741358005_408292_1341478010_b3ebe99da8d6d77007ec2bb9904c5080_rle_crop_3697394483_0.png.png imagette211447831741408531/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392718_0.png.png imagette211447831741408531/1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392702_0.png.png imagette211447831741408531/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392715_0.png.png imagette211447831741408531/1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392683_0.png.png imagette211447831741408531/1741358152_75587_1341478269_3482e6199bb66e920aeb74fb94c6a5dd_rle_crop_3697407172_0.png.png imagette211447831741408531/1741360853_178326_1341477657_e1352252798c78a9786641d2a4db707c_rle_crop_3697392733_0.png.png imagette211447831741408531/1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392676_0.png.png imagette211447831741408531/1741360853_178326_1341477819_05d358a601f8ca8a0fefe3ec7438a542_rle_crop_3697479978_0.png.png imagette211447831741408531/1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407161_0.png.png imagette211447831741408531/1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404330_0.png.png imagette211447831741408531/1741358127_410259_1341477809_ae33244ccf9288acadf634be67a11e2c_rle_crop_3697404305_0.png.png imagette211447831741408531/1741357765_406352_1341477686_ca749e0b2d5b806ff7d6eb7d613b2c8d_rle_crop_3697392445_0.png.png imagette211447841741408539/ imagette211447851741408539/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/52a5485698386a6dd4a939faa68e2b8e_39344765.png imagette211447831741408531 21144784 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=21144784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211447841741408539 21144785 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=21144785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette211447851741408539 21144786 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=21144786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341478920: '1741358005_408292_1341477992_41be54609796a810424c07cd3b809ffc_rle_crop_3697394605_0.png'} change filename to text .imagette211447861741408539/ imagette211447861741408539/1741358005_408292_1341477992_41be54609796a810424c07cd3b809ffc_rle_crop_3697394605_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/6b947fe9ebdadf6d5fec587916cadff0_89715366.png imagette211447861741408539 21144791 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=21144791 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341478922: '1741358005_408292_1341477992_41be54609796a810424c07cd3b809ffc_rle_crop_3697394603_0.png', 1341491891: '1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392700_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f6e96fc4e4127cc11e1c49b041bc8c62_65559853.png change filename to text .imagette211447911741408539/ imagette211447911741408539/1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392700_0.png.png imagette211447911741408539/1741358005_408292_1341477992_41be54609796a810424c07cd3b809ffc_rle_crop_3697394603_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/183585306a2dfc82d0a1b9687b7997a7_68612852.png imagette211447911741408539 21144778 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=21144778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341478919: '1741358005_408292_1341478010_b3ebe99da8d6d77007ec2bb9904c5080_rle_crop_3697394480_0.png', 1341479079: '1741358127_410259_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a_rle_crop_3697404046_0.png', 1341479080: '1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404322_0.png', 1341479360: '1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407156_0.png', 1341491882: '1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392678_0.png', 1341491883: '1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392703_0.png', 1341491885: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392719_0.png', 1341491886: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392717_0.png', 1341491887: '1741360853_178326_1341477657_e1352252798c78a9786641d2a4db707c_rle_crop_3697392734_0.png', 1341491888: '1741360853_178326_1341477630_e383d40f56cf1ec99ef241cf02ef8d13_rle_crop_3697392740_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/aba508374dbcb997328de89a70b142e7_71509760.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/64458d97d81aaf419ed947efdba06920_75679871.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/95689566919b880696fd38d04607bb7b_98938922.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/f6d8ac76f958d9a95c8400d34cfb0780_20881358.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e95357728de176dcbf4abe3a9b125dee_21426847.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/614b514fd34b56be84467c9992d25ae2_583093.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/5f89a65393bae59de285741631001089_92227618.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/2e09c28e7facd5b8f41e1dcee6779775_68467583.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ef99dc2d704632c4950a4f99e273be89_3260987.png change filename to text .imagette211447781741408539/ imagette211447781741408539/1741358127_410259_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a_rle_crop_3697404046_0.png.png imagette211447781741408539/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392717_0.png.png imagette211447781741408539/1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404322_0.png.png imagette211447781741408539/1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407156_0.png.png imagette211447781741408539/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392719_0.png.png imagette211447781741408539/1741360853_178326_1341477630_e383d40f56cf1ec99ef241cf02ef8d13_rle_crop_3697392740_0.png.png imagette211447781741408539/1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392703_0.png.png imagette211447781741408539/1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392678_0.png.png imagette211447781741408539/1741360853_178326_1341477657_e1352252798c78a9786641d2a4db707c_rle_crop_3697392734_0.png.png imagette211447781741408539/1741358005_408292_1341478010_b3ebe99da8d6d77007ec2bb9904c5080_rle_crop_3697394480_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/5917473d58f8b07a5c0bf6736ed16b6e_72218709.png imagette211447781741408539 21144779 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=21144779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341479066: '1741358127_410259_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a_rle_crop_3697404048_0.png', 1341479067: '1741358127_410259_1341477809_ae33244ccf9288acadf634be67a11e2c_rle_crop_3697404308_0.png', 1341479070: '1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404328_0.png', 1341479071: '1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404325_0.png', 1341491862: '1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392685_0.png', 1341491863: '1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392687_0.png', 1341491864: '1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392706_0.png', 1341491865: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392720_0.png', 1341491866: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392722_0.png', 1341491867: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e4013a2f31a62acd8fa5257f62af4997_62105169.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/afe34db070bd7cc079365877dcf75c88_25943643.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/47e8b3ceaa0a1e6b35ab0dffc8bfa8f7_17630746.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/d033bb8c785d97bb1ac5dd2c8fe7ec4a_6676380.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/019608ba2a690620a3e2751762c66036_65956170.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/acda336ce1f8753fdb52747f2a1f9302_42908249.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/e0b2cd1c9417221e889f6f84d3f2b703_72262829.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/34f4673987cd872d076dec313578dde0_42440938.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/63012b0e50ef062b3be49ccb2adac4aa_92789453.png change filename to text .imagette211447791741408540/ imagette211447791741408540/1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404325_0.png.png imagette211447791741408540/1741360853_178326_1341477675_75246871a748b4c97af89f6af734fed2_rle_crop_3697392706_0.png.png imagette211447791741408540/1741358127_410259_1341477809_ae33244ccf9288acadf634be67a11e2c_rle_crop_3697404308_0.png.png imagette211447791741408540/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392722_0.png.png imagette211447791741408540/1741358127_410259_1341477790_6c88331c3c310e7365c54af369a02d21_rle_crop_3697404328_0.png.png imagette211447791741408540/1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392685_0.png.png imagette211447791741408540/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392720_0.png.png imagette211447791741408540/1741358127_410259_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a_rle_crop_3697404048_0.png.png imagette211447791741408540/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392724_0.png.png imagette211447791741408540/1741360853_178326_1341477682_817a1a0a8884d507ec9f26969408a5ff_rle_crop_3697392687_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/bd73e680e0d17c6cfc74ea071dde454b_18569535.png imagette211447791741408540 21144789 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=21144789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1341478117: '1741357765_406352_1341477686_ca749e0b2d5b806ff7d6eb7d613b2c8d_rle_crop_3697392444_0.png', 1341478917: '1741358005_408292_1341478319_4cb2a619c90a1f7ce053259170155876_rle_crop_3697394592_0.png', 1341479332: '1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407158_0.png', 1341479333: '1741358152_75587_1341478269_3482e6199bb66e920aeb74fb94c6a5dd_rle_crop_3697407174_0.png', 1341479335: '1741358152_75587_1341478244_9e3b471b462f03792a4db045d9faf579_rle_crop_3697407182_0.png', 1341491880: '1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392712_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/924c890bea6e67beed1ea9eec51dc579_29709533.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/c7d6e28586f7f9e48c6604fc98452eba_43964269.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/7030fea803bedcbcfd4545f2b5b7fb88_61573972.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/48d36720d125db57125d5d5f4a508e96_12549561.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/3a46a44bb59617f01325bf5fc0f395cb_51704536.png change filename to text .imagette211447891741408541/ imagette211447891741408541/1741358152_75587_1341478269_3482e6199bb66e920aeb74fb94c6a5dd_rle_crop_3697407174_0.png.png imagette211447891741408541/1741358005_408292_1341478319_4cb2a619c90a1f7ce053259170155876_rle_crop_3697394592_0.png.png imagette211447891741408541/1741358152_75587_1341478244_9e3b471b462f03792a4db045d9faf579_rle_crop_3697407182_0.png.png imagette211447891741408541/1741360853_178326_1341477666_8d54217337efa8b7817a03b6b70bff85_rle_crop_3697392712_0.png.png imagette211447891741408541/1741358152_75587_1341478408_31bd855252929351a9de6be829bbb025_rle_crop_3697407158_0.png.png imagette211447891741408541/1741357765_406352_1341477686_ca749e0b2d5b806ff7d6eb7d613b2c8d_rle_crop_3697392444_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/a61825af7c35073002b61ebfc965fcf9_73321561.png imagette211447891741408541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21144771 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21144795,21144796,21144797,21144798,21144799,21144800,21144801,21144802,21144803,21144804,21144805,21144806?tags=Carton_brun,Teint_Dans_La_Masse,metal,cartonnette,autre_refus,mal_croppe,flou,plastique,papier,environnement,Carton_gris,kraft your option no_mail is active, we will not send the real mail to your client args[1341478408] : ('0.07009501029195404',) no score found for photo 1341478408 We are sending mail with results at report@fotonower.com args[1341478319] : ('0.07009501029195404',) no score found for photo 1341478319 We are sending mail with results at report@fotonower.com args[1341478305] : ('0.07009501029195404',) no score found for photo 1341478305 We are sending mail with results at report@fotonower.com args[1341478269] : ('0.07009501029195404',) no score found for photo 1341478269 We are sending mail with results at report@fotonower.com args[1341478244] : ('0.07009501029195404',) no score found for photo 1341478244 We are sending mail with results at report@fotonower.com args[1341478077] : ('0.07009501029195404',) no score found for photo 1341478077 We are sending mail with results at report@fotonower.com args[1341478046] : ('0.07009501029195404',) no score found for photo 1341478046 We are sending mail with results at report@fotonower.com args[1341478010] : ('0.07009501029195404',) no score found for photo 1341478010 We are sending mail with results at report@fotonower.com args[1341477992] : ('0.07009501029195404',) no score found for photo 1341477992 We are sending mail with results at report@fotonower.com args[1341477819] : ('0.07009501029195404',) no score found for photo 1341477819 We are sending mail with results at report@fotonower.com args[1341477814] : ('0.07009501029195404',) no score found for photo 1341477814 We are sending mail with results at report@fotonower.com args[1341477809] : ('0.07009501029195404',) no score found for photo 1341477809 We are sending mail with results at report@fotonower.com args[1341477790] : ('0.07009501029195404',) no score found for photo 1341477790 We are sending mail with results at report@fotonower.com args[1341477785] : ('0.07009501029195404',) no score found for photo 1341477785 We are sending mail with results at report@fotonower.com args[1341477686] : ('0.07009501029195404',) no score found for photo 1341477686 We are sending mail with results at report@fotonower.com args[1341477682] : ('0.07009501029195404',) no score found for photo 1341477682 We are sending mail with results at report@fotonower.com args[1341477675] : ('0.07009501029195404',) no score found for photo 1341477675 We are sending mail with results at report@fotonower.com args[1341477666] : ('0.07009501029195404',) no score found for photo 1341477666 We are sending mail with results at report@fotonower.com args[1341477657] : ('0.07009501029195404',) no score found for photo 1341477657 We are sending mail with results at report@fotonower.com args[1341477630] : ('0.07009501029195404',) no score found for photo 1341477630 We are sending mail with results at report@fotonower.com args[1341477575] : ('0.07009501029195404',) no score found for photo 1341477575 We are sending mail with results at report@fotonower.com refus_total : 0.07009501029195404 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=21144771 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_P21144771_08-03-2025_05_35_31.pdf results_Auto_P21144771_08-03-2025_05_35_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21144771_08-03-2025_05_35_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21144771','results_Auto_P21144771_08-03-2025_05_35_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21144771_08-03-2025_05_35_31.pdf','pdf','','0.32','0.07009501029195404') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21144771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] map_info['map_portfolio_photo'] : {21144771: [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575]} final : False mtd_id 4302 list_pids : [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] 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, '2650662') ('4302', '21144771', '1341478408', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21144771', '1341478408', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662')] time used for this insertion : 0.18810176849365234 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.586822986602783 time spend to save output : 0.18843913078308105 total time spend for step 4 : 13.775262117385864 step5:split_time_score Sat Mar 8 05:35:44 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21144771'] 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 : [('21144771',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21144771) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1341478408: {'path': 'temp/1741408530_2818034_1341478408_31bd855252929351a9de6be829bbb025.jpg', 'extension': 'jpg'}, 1341478077: {'path': 'temp/1741408530_2818034_1341478077_2b325e0fb55e5fc8be4a19f93ae2073a.jpg', 'extension': 'jpg'}, 1341478244: {'path': 'temp/1741408530_2818034_1341478244_9e3b471b462f03792a4db045d9faf579.jpg', 'extension': 'jpg'}, 1341478269: {'path': 'temp/1741408530_2818034_1341478269_3482e6199bb66e920aeb74fb94c6a5dd.jpg', 'extension': 'jpg'}, 1341478305: {'path': 'temp/1741408530_2818034_1341478305_43c37955ecff48bfae8ef4486ab505cb.jpg', 'extension': 'jpg'}, 1341478319: {'path': 'temp/1741408530_2818034_1341478319_4cb2a619c90a1f7ce053259170155876.jpg', 'extension': 'jpg'}, 1341477575: {'path': 'temp/1741408530_2818034_1341477575_ec0dbc5d8639dff0cef054237da14999.jpg', 'extension': 'jpg'}, 1341477630: {'path': 'temp/1741408530_2818034_1341477630_e383d40f56cf1ec99ef241cf02ef8d13.jpg', 'extension': 'jpg'}, 1341477657: {'path': 'temp/1741408530_2818034_1341477657_e1352252798c78a9786641d2a4db707c.jpg', 'extension': 'jpg'}, 1341477666: {'path': 'temp/1741408530_2818034_1341477666_8d54217337efa8b7817a03b6b70bff85.jpg', 'extension': 'jpg'}, 1341477675: {'path': 'temp/1741408530_2818034_1341477675_75246871a748b4c97af89f6af734fed2.jpg', 'extension': 'jpg'}, 1341477682: {'path': 'temp/1741408530_2818034_1341477682_817a1a0a8884d507ec9f26969408a5ff.jpg', 'extension': 'jpg'}, 1341477686: {'path': 'temp/1741408530_2818034_1341477686_ca749e0b2d5b806ff7d6eb7d613b2c8d.jpg', 'extension': 'jpg'}, 1341477785: {'path': 'temp/1741408530_2818034_1341477785_68b882ee3d34634bdc695c0dbd6cffa9.jpg', 'extension': 'jpg'}, 1341477790: {'path': 'temp/1741408530_2818034_1341477790_6c88331c3c310e7365c54af369a02d21.jpg', 'extension': 'jpg'}, 1341477809: {'path': 'temp/1741408530_2818034_1341477809_ae33244ccf9288acadf634be67a11e2c.jpg', 'extension': 'jpg'}, 1341477814: {'path': 'temp/1741408530_2818034_1341477814_904aedd41d9c78ed136186bd67221eb4.jpg', 'extension': 'jpg'}, 1341477819: {'path': 'temp/1741408530_2818034_1341477819_05d358a601f8ca8a0fefe3ec7438a542.jpg', 'extension': 'jpg'}, 1341477992: {'path': 'temp/1741408530_2818034_1341477992_41be54609796a810424c07cd3b809ffc.jpg', 'extension': 'jpg'}, 1341478010: {'path': 'temp/1741408530_2818034_1341478010_b3ebe99da8d6d77007ec2bb9904c5080.jpg', 'extension': 'jpg'}, 1341478046: {'path': 'temp/1741408530_2818034_1341478046_6cb36b549c3a2ff4ec855331d337ed0b.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 = 21144771; (('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 = 21144771 group by h (('15', 21),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21144771 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 (21144771) 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 (21144771) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07032025 21144771 Nombre de photos uploadées : 21 / 23040 (0%) 07032025 21144771 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 07032025 21144771 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1341477575, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ec0dbc5d8639dff0cef054237da14999.jpg', 'username': None, 'uploaded_at': 1741357589, 'text': 'image_07032025_15_25_44_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341477686, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/ca749e0b2d5b806ff7d6eb7d613b2c8d.jpg', 'username': None, 'uploaded_at': 1741357649, 'text': 'image_07032025_15_25_55_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341477682, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/817a1a0a8884d507ec9f26969408a5ff.jpg', 'username': None, 'uploaded_at': 1741357649, 'text': 'image_07032025_15_26_05_010161m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1341477675, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/7/75246871a748b4c97af89f6af734fed2.jpg', 'username': None, 'uploaded_at': 1741357649, 'text': 'image_07032025_15_26_15_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009317398071289062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21144771, '2025-03-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1646019,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02597212791442871 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= 1646019 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21141939, 'dashboard_result_id': 9300969, '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_P21141939_08-03-2025_05_34_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21141943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21141944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21141945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21141946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21141947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21141948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21141949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21141950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21141951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21141952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21141953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21141954, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21142559, 'dashboard_result_id': 9300972, '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_P21142559_08-03-2025_05_34_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21142561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21142562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21142563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21142564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21142565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21142566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21142567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21142568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21142569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21142570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21142571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21142572, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21142854, 'dashboard_result_id': 9300973, '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_P21142854_08-03-2025_05_35_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21142884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21142885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21142886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21142887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21142888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21142889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21142890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21142891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21142892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21142893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21142894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21142895, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21143692, 'dashboard_result_id': 9300975, '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_P21143692_07-03-2025_15_29_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21143722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21143723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21143724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21143725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21143726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21143727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21143728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21143729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21143730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21143731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21143732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21143733, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21144771, 'dashboard_result_id': 9300979, '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_P21144771_07-03-2025_15_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21144778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21144779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21144781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21144782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21144783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21144784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21144785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21144786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21144787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21144788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21144789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21144791, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21145002, 'dashboard_result_id': 9300980, '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_P21145002_07-03-2025_15_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21145009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145019, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21145713, 'dashboard_result_id': 9300985, '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_P21145713_07-03-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21145717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145728, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21146412, 'dashboard_result_id': 9300986, '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_P21146412_07-03-2025_16_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21146453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21146454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21146455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21146456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21146457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21146458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21146459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21146460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21146461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21146462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21146463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21146464, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21147216, 'dashboard_result_id': 9300992, '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_P21147216_07-03-2025_16_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147275, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21147941, 'dashboard_result_id': 9300993, '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_P21147941_07-03-2025_16_49_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147959, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21148788, 'dashboard_result_id': 9301000, '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_P21148788_07-03-2025_17_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21148865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21148866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21148867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21148868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21148869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21148870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21148871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21148872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21148873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21148874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21148875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21148876, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21149544, 'dashboard_result_id': 9301008, '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_P21149544_08-03-2025_00_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21149551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21149552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21149553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21149554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21149555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21149556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21149557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21149558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21149559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21149560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21149561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21149562, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21151495, 'dashboard_result_id': 9301009, '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_P21151495_07-03-2025_18_19_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21151515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21151516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21151517, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21151518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21151519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21151520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21151521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21151522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21151523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21151524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21151525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21151526, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21151992, 'dashboard_result_id': 9301010, '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_P21151992_07-03-2025_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21152112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21152113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21152114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21152115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21152116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21152117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21152118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21152119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21152120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21152121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21152122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21152123, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21152721, 'dashboard_result_id': 9301011, '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_P21152721_07-03-2025_18_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21152724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21152725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21152726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21152727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21152728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21152729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21152730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21152731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21152732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21152733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21152734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21152735, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21153197, 'dashboard_result_id': 9301012, '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_P21153197_07-03-2025_19_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21153286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21153287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21153288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21153289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21153290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21153291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21153292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21153293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21153294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21153295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21153296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21153297, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21154237, 'dashboard_result_id': 9301013, '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_P21154237_07-03-2025_19_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154263, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21154561, 'dashboard_result_id': 9301014, '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_P21154561_07-03-2025_19_32_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154614, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21155517, 'dashboard_result_id': 9301016, '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_P21155517_07-03-2025_19_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21155598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21155599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21155600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21155601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21155602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21155603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21155610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21155617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21155618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21155619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21155620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21155621, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21156349, 'dashboard_result_id': 9301029, '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_P21156349_07-03-2025_20_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21156356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21156357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21156358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21156359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21156360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21156361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21156362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21156363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21156364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21156365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21156366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21156367, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21157151, 'dashboard_result_id': 9301034, '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_P21157151_07-03-2025_20_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21157170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21157171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21157172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21157173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21157174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21157175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21157176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21157177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21157178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21157180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21157181, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21157182, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21157894, 'dashboard_result_id': 9301045, '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_P21157894_07-03-2025_20_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21157971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21157972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21157973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21157974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21157975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21157976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21157977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21157978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21157979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21157980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21157981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21157982, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21158651, 'dashboard_result_id': 9301053, '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_P21158651_07-03-2025_21_06_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21158655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21158656, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21158657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21158658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21158659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21158660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21158661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21158662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21158663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21158664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21158665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21158666, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21161368, 'dashboard_result_id': 9301054, '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_P21161368_07-03-2025_22_18_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21161369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21161370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21161371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21161372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21161373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21161374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21161375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21161376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21161377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21161378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21161379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21161380, 'pht': 3726}}"}, {'dashboat_entry_day': 1646019, 'dashboard_run_id': 1657667, 'mtr_portfolio_id': 21162835, 'dashboard_result_id': 9301055, '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_P21162835_07-03-2025_23_23_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21162836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21162837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21162838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21162839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21162840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21162841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21162842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21162843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21162844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21162845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21162846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21162847, '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 = 21141939 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': 2650658, 'mtr_portfolio_id': 21141939, 'created_at': datetime.datetime(2025, 3, 8, 5, 34, 35), 'result': '0.07870003320438534', 'result_long': None, 'result_double': None}] Qualite : 0.07870003320438534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21141939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21141939_08-03-2025_05_34_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21141939 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_P21141939_08-03-2025_05_34_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21141943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21141944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21141945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21141946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21141947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21141948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21141949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21141950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21141951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21141952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21141953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21141954, 'pht': 3726}}" where mtr_portfolio_id = 21141939 and dashboard_run_id = 1657667 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`=21141939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300969, 0.07870003320438534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21141939_08-03-2025_05_34_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21141943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21141944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21141945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21141946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21141947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21141948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21141949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21141950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21141951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21141952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21141953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21141954, '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 = 21142559 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': 2650659, 'mtr_portfolio_id': 21142559, 'created_at': datetime.datetime(2025, 3, 8, 5, 34, 34), 'result': '0.07543010607445384', 'result_long': None, 'result_double': None}] Qualite : 0.07543010607445384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21142559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21142559_08-03-2025_05_34_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21142559 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_P21142559_08-03-2025_05_34_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21142561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21142562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21142563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21142564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21142565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21142566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21142567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21142568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21142569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21142570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21142571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21142572, 'pht': 3726}}" where mtr_portfolio_id = 21142559 and dashboard_run_id = 1657667 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`=21142559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300972, 0.07543010607445384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21142559_08-03-2025_05_34_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21142561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21142562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21142563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21142564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21142565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21142566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21142567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21142568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21142569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21142570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21142571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21142572, '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 = 21142854 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': 2650660, 'mtr_portfolio_id': 21142854, 'created_at': datetime.datetime(2025, 3, 8, 5, 35, 2), 'result': '0.08701394601528803', 'result_long': None, 'result_double': None}] Qualite : 0.08701394601528803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21142854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21142854_08-03-2025_05_35_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21142854 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_P21142854_08-03-2025_05_35_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21142884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21142885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21142886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21142887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21142888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21142889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21142890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21142891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21142892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21142893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21142894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21142895, 'pht': 3726}}" where mtr_portfolio_id = 21142854 and dashboard_run_id = 1657667 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`=21142854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300973, 0.08701394601528803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21142854_08-03-2025_05_35_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21142884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21142885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21142886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21142887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21142888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21142889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21142890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21142891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21142892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21142893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21142894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21142895, '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 = 21143692 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': 2650661, 'mtr_portfolio_id': 21143692, 'created_at': datetime.datetime(2025, 3, 8, 5, 35, 31), 'result': '0.06661774167315829', 'result_long': None, 'result_double': None}] Qualite : 0.06661774167315829 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21143692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21143692_07-03-2025_15_29_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21143692 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_P21143692_07-03-2025_15_29_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21143722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21143723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21143724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21143725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21143726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21143727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21143728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21143729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21143730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21143731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21143732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21143733, 'pht': 3726}}" where mtr_portfolio_id = 21143692 and dashboard_run_id = 1657667 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`=21143692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300975, 0.06661774167315829, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21143692_07-03-2025_15_29_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21143722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21143723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21143724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21143725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21143726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21143727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21143728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21143729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21143730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21143731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21143732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21143733, '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 = 21144771 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': 2650662, 'mtr_portfolio_id': 21144771, 'created_at': datetime.datetime(2025, 3, 8, 5, 35, 30), 'result': '0.07009501029195404', 'result_long': None, 'result_double': None}] Qualite : 0.07009501029195404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21144771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21144771_08-03-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21144771 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_P21144771_08-03-2025_05_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21144778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21144779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21144781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21144782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21144783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21144784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21144785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21144786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21144787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21144788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21144789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21144791, 'pht': 3726}}" where mtr_portfolio_id = 21144771 and dashboard_run_id = 1657667 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`=21144771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300979, 0.07009501029195404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21144771_08-03-2025_05_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21144778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21144779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21144781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21144782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21144783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21144784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21144785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21144786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21144787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21144788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21144789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21144791, '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 = 21145002 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': 2648664, 'mtr_portfolio_id': 21145002, 'created_at': datetime.datetime(2025, 3, 7, 15, 49, 31), 'result': '0.08685883693385299', 'result_long': None, 'result_double': None}] Qualite : 0.08685883693385299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21145002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21145002_07-03-2025_15_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21145002 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_P21145002_07-03-2025_15_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21145009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145019, 'pht': 3726}}" where mtr_portfolio_id = 21145002 and dashboard_run_id = 1657667 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`=21145002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300980, 0.08685883693385299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21145002_07-03-2025_15_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21145009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145019, '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 = 21145713 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': 2648700, 'mtr_portfolio_id': 21145713, 'created_at': datetime.datetime(2025, 3, 7, 16, 2, 58), 'result': '0.0809560594286227', 'result_long': None, 'result_double': None}] Qualite : 0.0809560594286227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21145713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21145713_07-03-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21145713 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_P21145713_07-03-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21145717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145728, 'pht': 3726}}" where mtr_portfolio_id = 21145713 and dashboard_run_id = 1657667 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`=21145713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300985, 0.0809560594286227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21145713_07-03-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21145717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21145718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21145719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21145720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21145721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21145722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21145723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21145724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21145725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21145726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21145727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21145728, '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 = 21146412 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': 2648759, 'mtr_portfolio_id': 21146412, 'created_at': datetime.datetime(2025, 3, 7, 16, 19, 29), 'result': '0.08191782066017682', 'result_long': None, 'result_double': None}] Qualite : 0.08191782066017682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21146412 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21146412_07-03-2025_16_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21146412 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_P21146412_07-03-2025_16_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21146453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21146454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21146455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21146456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21146457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21146458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21146459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21146460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21146461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21146462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21146463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21146464, 'pht': 3726}}" where mtr_portfolio_id = 21146412 and dashboard_run_id = 1657667 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`=21146412 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300986, 0.08191782066017682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21146412_07-03-2025_16_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21146453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21146454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21146455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21146456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21146457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21146458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21146459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21146460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21146461, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21146462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21146463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21146464, '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 = 21147216 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': 2648800, 'mtr_portfolio_id': 21147216, 'created_at': datetime.datetime(2025, 3, 7, 16, 32, 29), 'result': '0.0860101387582772', 'result_long': None, 'result_double': None}] Qualite : 0.0860101387582772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21147216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147216_07-03-2025_16_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21147216 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_P21147216_07-03-2025_16_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147275, 'pht': 3726}}" where mtr_portfolio_id = 21147216 and dashboard_run_id = 1657667 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`=21147216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300992, 0.0860101387582772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147216_07-03-2025_16_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147275, '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 = 21147941 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': 2648862, 'mtr_portfolio_id': 21147941, 'created_at': datetime.datetime(2025, 3, 7, 16, 49, 32), 'result': '0.07321781653145713', 'result_long': None, 'result_double': None}] Qualite : 0.07321781653145713 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21147941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147941_07-03-2025_16_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21147941 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_P21147941_07-03-2025_16_49_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147959, 'pht': 3726}}" where mtr_portfolio_id = 21147941 and dashboard_run_id = 1657667 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`=21147941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9300993, 0.07321781653145713, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21147941_07-03-2025_16_49_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21147948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21147949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21147950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21147951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21147952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21147953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21147954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21147955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21147956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21147957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21147958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21147959, '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 = 21148788 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': 2648928, 'mtr_portfolio_id': 21148788, 'created_at': datetime.datetime(2025, 3, 7, 17, 2, 59), 'result': '0.07075129525570827', 'result_long': None, 'result_double': None}] Qualite : 0.07075129525570827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21148788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21148788_07-03-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21148788 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_P21148788_07-03-2025_17_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21148865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21148866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21148867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21148868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21148869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21148870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21148871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21148872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21148873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21148874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21148875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21148876, 'pht': 3726}}" where mtr_portfolio_id = 21148788 and dashboard_run_id = 1657667 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`=21148788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301000, 0.07075129525570827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21148788_07-03-2025_17_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21148865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21148866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21148867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21148868, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21148869, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21148870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21148871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21148872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21148873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21148874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21148875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21148876, '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 = 21149544 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': 2648995, 'mtr_portfolio_id': 21149544, 'created_at': datetime.datetime(2025, 3, 8, 0, 1), 'result': '0.08235009487926828', 'result_long': None, 'result_double': None}] Qualite : 0.08235009487926828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21149544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21149544_08-03-2025_00_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21149544 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_P21149544_08-03-2025_00_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21149551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21149552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21149553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21149554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21149555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21149556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21149557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21149558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21149559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21149560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21149561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21149562, 'pht': 3726}}" where mtr_portfolio_id = 21149544 and dashboard_run_id = 1657667 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`=21149544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301008, 0.08235009487926828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21149544_08-03-2025_00_01_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21149551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21149552, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21149553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21149554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21149555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21149556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21149557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21149558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21149559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21149560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21149561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21149562, '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 = 21151495 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': 2649131, 'mtr_portfolio_id': 21151495, 'created_at': datetime.datetime(2025, 3, 7, 18, 19, 3), 'result': '0.08307480466141715', 'result_long': None, 'result_double': None}] Qualite : 0.08307480466141715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21151495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21151495_07-03-2025_18_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21151495 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_P21151495_07-03-2025_18_19_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21151515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21151516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21151517, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21151518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21151519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21151520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21151521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21151522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21151523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21151524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21151525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21151526, 'pht': 3726}}" where mtr_portfolio_id = 21151495 and dashboard_run_id = 1657667 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`=21151495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301009, 0.08307480466141715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21151495_07-03-2025_18_19_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21151515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21151516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21151517, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21151518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21151519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21151520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21151521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21151522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21151523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21151524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21151525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21151526, '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 = 21151992 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': 2649157, 'mtr_portfolio_id': 21151992, 'created_at': datetime.datetime(2025, 3, 7, 18, 32, 59), 'result': '0.09355806381318016', 'result_long': None, 'result_double': None}] Qualite : 0.09355806381318016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21151992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21151992_07-03-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21151992 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_P21151992_07-03-2025_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21152112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21152113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21152114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21152115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21152116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21152117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21152118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21152119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21152120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21152121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21152122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21152123, 'pht': 3726}}" where mtr_portfolio_id = 21151992 and dashboard_run_id = 1657667 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`=21151992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301010, 0.09355806381318016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21151992_07-03-2025_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21152112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21152113, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21152114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21152115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21152116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21152117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21152118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21152119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21152120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21152121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21152122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21152123, '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 = 21152721 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': 2649214, 'mtr_portfolio_id': 21152721, 'created_at': datetime.datetime(2025, 3, 7, 18, 48, 58), 'result': '0.0657251007077923', 'result_long': None, 'result_double': None}] Qualite : 0.0657251007077923 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21152721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21152721_07-03-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21152721 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_P21152721_07-03-2025_18_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21152724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21152725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21152726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21152727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21152728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21152729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21152730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21152731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21152732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21152733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21152734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21152735, 'pht': 3726}}" where mtr_portfolio_id = 21152721 and dashboard_run_id = 1657667 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`=21152721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301011, 0.0657251007077923, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21152721_07-03-2025_18_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21152724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21152725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21152726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21152727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21152728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21152729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21152730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21152731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21152732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21152733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21152734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21152735, '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 = 21153197 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': 2649247, 'mtr_portfolio_id': 21153197, 'created_at': datetime.datetime(2025, 3, 7, 19, 3), 'result': '0.07172449108913054', 'result_long': None, 'result_double': None}] Qualite : 0.07172449108913054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21153197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21153197_07-03-2025_19_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21153197 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_P21153197_07-03-2025_19_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21153286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21153287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21153288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21153289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21153290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21153291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21153292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21153293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21153294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21153295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21153296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21153297, 'pht': 3726}}" where mtr_portfolio_id = 21153197 and dashboard_run_id = 1657667 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`=21153197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301012, 0.07172449108913054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21153197_07-03-2025_19_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21153286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21153287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21153288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21153289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21153290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21153291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21153292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21153293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21153294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21153295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21153296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21153297, '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 = 21154237 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': 2649320, 'mtr_portfolio_id': 21154237, 'created_at': datetime.datetime(2025, 3, 7, 19, 19, 2), 'result': '0.0696540480901093', 'result_long': None, 'result_double': None}] Qualite : 0.0696540480901093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21154237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21154237_07-03-2025_19_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21154237 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_P21154237_07-03-2025_19_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154263, 'pht': 3726}}" where mtr_portfolio_id = 21154237 and dashboard_run_id = 1657667 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`=21154237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301013, 0.0696540480901093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21154237_07-03-2025_19_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154263, '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 = 21154561 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': 2649345, 'mtr_portfolio_id': 21154561, 'created_at': datetime.datetime(2025, 3, 7, 19, 32, 30), 'result': '0.08132263102757366', 'result_long': None, 'result_double': None}] Qualite : 0.08132263102757366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21154561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21154561_07-03-2025_19_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21154561 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_P21154561_07-03-2025_19_32_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154614, 'pht': 3726}}" where mtr_portfolio_id = 21154561 and dashboard_run_id = 1657667 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`=21154561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301014, 0.08132263102757366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21154561_07-03-2025_19_32_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21154603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21154604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21154605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21154606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21154607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21154608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21154609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21154610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21154611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21154612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21154613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21154614, '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 = 21155517 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': 2649406, 'mtr_portfolio_id': 21155517, 'created_at': datetime.datetime(2025, 3, 7, 19, 49, 29), 'result': '0.07323929395910887', 'result_long': None, 'result_double': None}] Qualite : 0.07323929395910887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21155517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21155517_07-03-2025_19_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21155517 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_P21155517_07-03-2025_19_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21155598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21155599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21155600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21155601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21155602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21155603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21155610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21155617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21155618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21155619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21155620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21155621, 'pht': 3726}}" where mtr_portfolio_id = 21155517 and dashboard_run_id = 1657667 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`=21155517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301016, 0.07323929395910887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21155517_07-03-2025_19_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21155598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21155599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21155600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21155601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21155602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21155603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21155610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21155617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21155618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21155619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21155620, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21155621, '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 = 21156349 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': 2649458, 'mtr_portfolio_id': 21156349, 'created_at': datetime.datetime(2025, 3, 7, 20, 3, 1), 'result': '0.09096101893386029', 'result_long': None, 'result_double': None}] Qualite : 0.09096101893386029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21156349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21156349_07-03-2025_20_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21156349 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_P21156349_07-03-2025_20_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21156356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21156357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21156358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21156359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21156360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21156361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21156362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21156363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21156364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21156365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21156366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21156367, 'pht': 3726}}" where mtr_portfolio_id = 21156349 and dashboard_run_id = 1657667 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`=21156349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301029, 0.09096101893386029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21156349_07-03-2025_20_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21156356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21156357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21156358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21156359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21156360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21156361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21156362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21156363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21156364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21156365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21156366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21156367, '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 = 21157151 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': 2649563, 'mtr_portfolio_id': 21157151, 'created_at': datetime.datetime(2025, 3, 7, 20, 19, 1), 'result': '0.08980429761086484', 'result_long': None, 'result_double': None}] Qualite : 0.08980429761086484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21157151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21157151_07-03-2025_20_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21157151 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_P21157151_07-03-2025_20_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21157170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21157171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21157172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21157173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21157174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21157175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21157176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21157177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21157178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21157180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21157181, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21157182, 'pht': 3726}}" where mtr_portfolio_id = 21157151 and dashboard_run_id = 1657667 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`=21157151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301034, 0.08980429761086484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21157151_07-03-2025_20_19_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21157170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21157171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21157172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21157173, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21157174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21157175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21157176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21157177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21157178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21157180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21157181, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21157182, '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 = 21157894 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': 2649656, 'mtr_portfolio_id': 21157894, 'created_at': datetime.datetime(2025, 3, 7, 20, 32, 59), 'result': '0.07878850832562863', 'result_long': None, 'result_double': None}] Qualite : 0.07878850832562863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21157894 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21157894_07-03-2025_20_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21157894 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_P21157894_07-03-2025_20_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21157971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21157972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21157973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21157974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21157975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21157976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21157977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21157978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21157979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21157980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21157981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21157982, 'pht': 3726}}" where mtr_portfolio_id = 21157894 and dashboard_run_id = 1657667 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`=21157894 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301045, 0.07878850832562863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21157894_07-03-2025_20_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21157971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21157972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21157973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21157974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21157975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21157976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21157977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21157978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21157979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21157980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21157981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21157982, '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 = 21158651 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': 2649705, 'mtr_portfolio_id': 21158651, 'created_at': datetime.datetime(2025, 3, 7, 21, 6, 33), 'result': '0.0720638651662164', 'result_long': None, 'result_double': None}] Qualite : 0.0720638651662164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21158651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21158651_07-03-2025_21_06_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21158651 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_P21158651_07-03-2025_21_06_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21158655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21158656, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21158657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21158658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21158659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21158660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21158661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21158662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21158663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21158664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21158665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21158666, 'pht': 3726}}" where mtr_portfolio_id = 21158651 and dashboard_run_id = 1657667 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`=21158651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301053, 0.0720638651662164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21158651_07-03-2025_21_06_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21158655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21158656, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21158657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21158658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21158659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21158660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21158661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21158662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21158663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21158664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21158665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21158666, '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 = 21161368 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': 2649971, 'mtr_portfolio_id': 21161368, 'created_at': datetime.datetime(2025, 3, 7, 22, 18, 29), 'result': '0.10296896057499323', 'result_long': None, 'result_double': None}] Qualite : 0.10296896057499323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21161368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21161368_07-03-2025_22_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21161368 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_P21161368_07-03-2025_22_18_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21161369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21161370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21161371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21161372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21161373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21161374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21161375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21161376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21161377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21161378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21161379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21161380, 'pht': 3726}}" where mtr_portfolio_id = 21161368 and dashboard_run_id = 1657667 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`=21161368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301054, 0.10296896057499323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21161368_07-03-2025_22_18_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21161369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21161370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21161371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21161372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21161373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21161374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21161375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21161376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21161377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21161378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21161379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21161380, '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 = 21162835 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': 2650095, 'mtr_portfolio_id': 21162835, 'created_at': datetime.datetime(2025, 3, 7, 23, 23, 1), 'result': '0.05838286475170577', 'result_long': None, 'result_double': None}] Qualite : 0.05838286475170577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21162835 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21162835_07-03-2025_23_23_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21162835 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_P21162835_07-03-2025_23_23_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21162836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21162837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21162838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21162839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21162840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21162841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21162842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21162843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21162844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21162845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21162846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21162847, 'pht': 3726}}" where mtr_portfolio_id = 21162835 and dashboard_run_id = 1657667 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`=21162835 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9301055, 0.05838286475170577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21162835_07-03-2025_23_23_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21162836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21162837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21162838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21162839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21162840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21162841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21162842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21162843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21162844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21162845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21162846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21162847, '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 (21141939,21142559,21142854,21143692,21144771,21145002,21145713,21146412,21147216,21147941,21148788,21149544,21151495,21151992,21152721,21153197,21154237,21154561,21155517,21156349,21157151,21157894,21158651,21161368,21162835) result : ((1341466906,), (1341466911,), (1341466973,), (1341466994,), (1341467006,), (1341467178,), (1341467187,), (1341467212,), (1341467221,), (1341467246,), (1341467320,), (1341467336,), (1341467343,), (1341467349,), (1341467449,), (1341467488,), (1341467569,), (1341467585,), (1341467769,), (1341467775,), (1341467786,), (1341467794,), (1341467823,), (1341467831,), (1341467883,), (1341467890,), (1341467897,), (1341467904,), (1341467911,), (1341467918,), (1341467958,), (1341467970,), (1341467977,), (1341468032,), (1341468045,), (1341468052,), (1341468064,), (1341468075,), (1341468082,), (1341468126,), (1341468134,), (1341468140,), (1341468143,), (1341468147,), (1341468151,), (1341468180,), (1341468189,), (1341468193,), (1341468260,), (1341468279,), (1341468296,), (1341468308,), (1341468356,), (1341468433,), (1341468440,), (1341468445,), (1341468448,), (1341468450,), (1341468454,), (1341468509,), (1341468515,), (1341468519,), (1341468521,), (1341468526,), (1341468619,), (1341468605,), (1341468612,), (1341468614,), (1341468616,), (1341468651,), (1341468657,), (1341468663,), (1341468668,), (1341468724,), (1341468740,), (1341468741,), (1341468744,), (1341468748,), (1341468752,), (1341468807,), (1341468812,), (1341468819,), (1341468833,), (1341468876,), (1341468880,), (1341468894,), (1341468917,), (1341468925,), (1341468931,), (1341468950,), (1341468957,), (1341469045,), (1341469363,), (1341469537,), (1341469540,), (1341469552,), (1341469559,), (1341469564,), (1341469612,), (1341469716,), (1341469721,), (1341469732,), (1341469832,), (1341469839,), (1341469843,), (1341469845,), (1341469848,), (1341469851,), (1341469888,), (1341469894,), (1341469900,), (1341469905,), (1341470146,), (1341470189,), (1341470195,), (1341470202,), (1341470209,), (1341470264,), (1341470269,), (1341470272,), (1341470277,), (1341470283,), (1341470307,), (1341470399,), (1341470405,), (1341470409,), (1341470413,), (1341470471,), (1341470476,), (1341470490,), (1341470494,), (1341470499,), (1341470587,), (1341470592,), (1341470597,), (1341470600,), (1341470603,), (1341470644,), (1341470658,), (1341470663,), (1341470667,), (1341470746,), (1341470725,), (1341470732,), (1341470740,), (1341470815,), (1341470844,), (1341470851,), (1341470855,), (1341470863,), (1341470929,), (1341470940,), (1341470952,), (1341470961,), (1341470965,), (1341470991,), (1341470997,), (1341471003,), (1341471007,), (1341471075,), (1341471081,), (1341471087,), (1341471090,), (1341471174,), (1341471200,), (1341471205,), (1341471238,), (1341471245,), (1341471258,), (1341471282,), (1341471319,), (1341471332,), (1341471343,), (1341471349,), (1341471353,), (1341471402,), (1341471409,), (1341471416,), (1341471478,), (1341471499,), (1341471507,), (1341471512,), (1341471520,), (1341471590,), (1341471602,), (1341471610,), (1341471625,), (1341471629,), (1341471633,), (1341471664,), (1341471688,), (1341471719,), (1341471730,), (1341471748,), (1341471792,), (1341471801,), (1341471806,), (1341471810,), (1341471820,), (1341472255,), (1341472261,), (1341472266,), (1341472273,), (1341472296,), (1341472471,), (1341472414,), (1341472448,), (1341472452,), (1341472466,), (1341472604,), (1341472611,), (1341472632,), (1341472640,), (1341472645,), (1341472649,), (1341472669,), (1341472682,), (1341472688,), (1341472694,), (1341472706,), (1341472707,), (1341472740,), (1341472788,), (1341472793,), (1341472846,), (1341472882,), (1341472887,), (1341472892,), (1341472913,), (1341472921,), (1341472997,), (1341473003,), (1341473009,), (1341473020,), (1341473051,), (1341473165,), (1341473171,), (1341473308,), (1341473615,), (1341477582,), (1341477575,), (1341477630,), (1341477657,), (1341477666,), (1341477675,), (1341477682,), (1341477686,), (1341477785,), (1341477790,), (1341477809,), (1341477814,), (1341477819,), (1341477992,), (1341478010,), (1341478046,), (1341478077,), (1341478244,), (1341478269,), (1341478305,), (1341478319,), (1341478408,), (1341478404,), (1341478590,), (1341478842,), (1341478853,), (1341478860,), (1341478864,), (1341478875,), (1341478982,), (1341478987,), (1341478994,), (1341478999,), (1341479005,), (1341479040,), (1341479048,), (1341479103,), (1341479108,), (1341479113,), (1341479338,), (1341479386,), (1341479595,), (1341479602,), (1341479608,), (1341479617,), (1341479636,), (1341479798,), (1341479829,), (1341479834,), (1341479892,), (1341480001,), (1341480019,), (1341480028,), (1341480065,), (1341480076,), (1341480087,), (1341480146,), (1341480159,), (1341480168,), (1341480185,), (1341480190,), (1341480233,), (1341480240,), (1341480328,), (1341480385,), (1341480392,), (1341480400,), (1341480407,), (1341480414,), (1341480535,), (1341481576,), (1341481599,), (1341481612,), (1341481617,), (1341481625,), (1341481722,), (1341481753,), (1341481787,), (1341481819,), (1341482214,), (1341481882,), (1341481923,), (1341482044,), (1341482188,), (1341482197,), (1341482491,), (1341482499,), (1341482504,), (1341482769,), (1341482785,), (1341482799,), (1341482816,), (1341482827,), (1341483334,), (1341483338,), (1341483346,), (1341483351,), (1341483356,), (1341483388,), (1341483505,), (1341483529,), (1341483542,), (1341483563,), (1341483569,), (1341483575,), (1341483583,), (1341483590,), (1341483663,), (1341483670,), (1341483678,), (1341483684,), (1341483710,), (1341483714,), (1341483719,), (1341483726,), (1341483734,), (1341483771,), (1341483774,), (1341483780,), (1341483784,), (1341483788,), (1341483816,), (1341483820,), (1341483827,), (1341483833,), (1341483914,), (1341483921,), (1341483925,), (1341483985,), (1341483990,), (1341484004,), (1341484117,), (1341484149,), (1341484189,), (1341484195,), (1341484203,), (1341484206,), (1341484211,), (1341484216,), (1341484329,), (1341484334,), (1341484338,), (1341484343,), (1341484345,), (1341484349,), (1341484354,), (1341484357,), (1341484361,), (1341484397,), (1341484386,), (1341484391,), (1341484394,), (1341485051,), (1341485108,), (1341486187,), (1341486264,), (1341486369,), (1341486449,), (1341486557,), (1341487160,), (1341487181,), (1341487186,), (1341487190,), (1341487366,), (1341487505,), (1341487549,), (1341487600,), (1341487637,), (1341487671,), (1341488012,), (1341488683,), (1341488726,), (1341489158,), (1341489174,), (1341489197,), (1341489211,), (1341489500,), (1341489551,), (1341489860,), (1341489867,), (1341489874,), (1341489879,), (1341489933,), (1341489946,), (1341489952,), (1341489956,), (1341490026,), (1341490055,), (1341490082,), (1341490374,), (1341490400,), (1341490423,), (1341490432,), (1341490438,), (1341490676,), (1341490704,), (1341490736,), (1341490785,), (1341490821,), (1341490824,), (1341490933,), (1341490952,), (1341491037,), (1341491247,), (1341491208,), (1341491212,), (1341491221,), (1341491324,), (1341491341,), (1341491348,), (1341491355,), (1341491399,), (1341491530,), (1341491535,), (1341491551,), (1341491557,), (1341491567,), (1341491571,), (1341491614,), (1341491625,), (1341491638,), (1341491745,), (1341491753,), (1341491759,), (1341491764,), (1341491769,), (1341491789,), (1341491795,), (1341491799,), (1341491805,), (1341491811,), (1341491826,), (1341491878,), (1341491895,), (1341491929,), (1341491951,), (1341492004,), (1341492010,), (1341492016,), (1341492114,), (1341492118,), (1341492123,), (1341492129,), (1341492162,), (1341492413,), (1341492430,), (1341492437,), (1341493910,), (1341493638,), (1341493801,), (1341494719,), (1341494807,), (1341494821,), (1341494875,), (1341494901,), (1341494915,), (1341494987,), (1341495033,), (1341495043,), (1341495047,), (1341495132,), (1341495137,), (1341495221,), (1341495236,), (1341495251,), (1341495269,), (1341495281,), (1341495497,), (1341495511,), (1341495520,), (1341495525,), (1341495529,), (1341495548,), (1341495654,), (1341495661,), (1341495668,), (1341495809,), (1341495814,), (1341495819,), (1341495822,), (1341495844,), (1341495850,), (1341495855,), (1341495862,), (1341495874,), (1341495930,), (1341495939,), (1341495945,), (1341495953,), (1341495967,), (1341495992,), (1341495994,), (1341496001,), (1341496006,), (1341496011,), (1341496017,), (1341496101,), (1341496110,), (1341496115,), (1341496144,), (1341496158,), (1341496172,), (1341496177,), (1341496181,), (1341496326,), (1341496342,), (1341496351,), (1341496359,), (1341496520,), (1341496527,), (1341496532,), (1341496538,), (1341496772,), (1341496620,), (1341496693,), (1341496708,), (1341496733,), (1341496737,), (1341496824,), (1341496828,), (1341496832,), (1341496836,), (1341497225,), (1341497246,), (1341497269,), (1341497279,), (1341497308,), (1341497313,), (1341497317,), (1341497319,), (1341497325,), (1341497329,), (1341497408,), (1341497413,), (1341497483,), (1341497557,), (1341497687,), (1341497713,), (1341497869,), (1341497927,), (1341498232,), (1341498256,), (1341498262,), (1341498271,), (1341498275,), (1341498388,), (1341498394,), (1341498400,), (1341498405,), (1341498409,), (1341498414,), (1341498443,), (1341498447,), (1341498454,), (1341498510,), (1341498517,), (1341498525,), (1341498531,), (1341498574,), (1341498578,), (1341498583,), (1341498589,), (1341498596,), (1341498601,), (1341498633,), (1341498639,), (1341498646,), (1341499029,), (1341499035,), (1341499042,), (1341499048,), (1341499118,), (1341499142,), (1341499299,), (1341499305,), (1341499311,), (1341499314,), (1341499320,), (1341499322,), (1341499392,), (1341499877,), (1341499670,), (1341499726,), (1341499787,), (1341499829,), (1341500275,), (1341500317,), (1341500390,), (1341500442,), (1341500491,), (1341500521,), (1341501425,), (1341501560,), (1341501650,), (1341501701,), (1341505509,), (1341515463,), (1341518451,), (1341518510,), (1341518559,), (1341518586,), (1341518779,), (1341518787,), (1341518790,), (1341519026,), (1341519059,), (1341519074,), (1341519496,), (1341519506,), (1341519514,), (1341519762,), (1341519769,), (1341519772,), (1341519777,), (1341520027,), (1341520068,), (1341520279,), (1341520284,), (1341520288,), (1341520291,), (1341520411,), (1341520415,), (1341520426,), (1341520443,), (1341520457,), (1341520515,), (1341520531,), (1341520535,), (1341520592,), (1341520682,), (1341520692,), (1341520696,), (1341520702,), (1341520734,), (1341520868,), (1341520918,), (1341520931,), (1341520935,), (1341521062,), (1341521071,), (1341521076,), (1341521079,), (1341521209,), (1341521215,), (1341521220,), (1341521223,), (1341521227,), (1341521260,), (1341521267,), (1341522298,), (1341522215,), (1341522277,), (1341522282,), (1341522287,), (1341522293,), (1341522490,), (1341522529,), (1341522597,), (1341522601,), (1341522607,), (1341522836,), (1341522850,), (1341522858,), (1341522875,), (1341523067,), (1341523073,), (1341523078,), (1341523084,), (1341523154,), (1341523592,), (1341523598,), (1341523605,), (1341523640,), (1341523652,), (1341523746,), (1341523753,), (1341523759,), (1341523767,), (1341524016,), (1341524021,), (1341524027,), (1341524032,), (1341524037,), (1341524055,), (1341524062,), (1341524066,), (1341524073,), (1341524089,), (1341524180,), (1341524976,), (1341525066,), (1341525373,), (1341525381,), (1341525385,), (1341525391,), (1341525396,), (1341525643,), (1341525672,), (1341525677,), (1341526161,), (1341526273,), (1341526301,), (1341526354,), (1341526439,), (1341526444,), (1341526483,), (1341526488,), (1341526492,), (1341526503,), (1341526508,), (1341526518,), (1341526575,), (1341526586,), (1341526595,), (1341526601,), (1341526605,), (1341526611,), (1341526713,), (1341526654,), (1341526669,), (1341526674,), (1341527078,), (1341527098,), (1341527288,), (1341527293,), (1341527340,), (1341527349,), (1341527355,), (1341527359,), (1341527468,), (1341527473,), (1341527479,), (1341527483,), (1341527486,), (1341527489,), (1341527514,), (1341527517,), (1341527645,), (1341527754,), (1341527759,), (1341527765,), (1341527775,), (1341527815,), (1341527821,), (1341527825,), (1341527829,), (1341527846,), (1341527862,), (1341527914,), (1341528051,), (1341528083,), (1341528098,), (1341528190,), (1341528193,), (1341528212,), (1341528222,), (1341528230,), (1341528447,), (1341528452,), (1341528455,), (1341528459,), (1341528463,), (1341528552,), (1341528593,), (1341528610,), (1341528635,), (1341528662,), (1341528772,), (1341528778,), (1341528781,), (1341528784,), (1341528851,), (1341528857,), (1341528863,), (1341528866,), (1341528872,), (1341528879,), (1341528984,), (1341528924,), (1341528942,), (1341528961,), (1341528964,), (1341529399,), (1341529485,), (1341529495,), (1341529520,), (1341529962,), (1341529983,), (1341530011,), (1341530057,), (1341530089,), (1341530417,), (1341530426,), (1341530432,), (1341530438,), (1341530530,), (1341530615,), (1341530753,), (1341530760,), (1341530768,), (1341530775,), (1341530802,), (1341530809,), (1341530816,), (1341530821,), (1341530827,), (1341530832,), (1341531040,), (1341531046,), (1341531053,), (1341531070,), (1341531077,), (1341531097,), (1341531103,), (1341531111,), (1341531243,), (1341531249,), (1341531254,), (1341531258,), (1341531263,), (1341531268,), (1341531283,), (1341531289,), (1341531295,), (1341531299,), (1341531305,), (1341531310,), (1341531796,), (1341531832,), (1341531880,), (1341532095,), (1341532104,), (1341532111,), (1341532116,), (1341532120,), (1341532269,), (1341532273,), (1341532278,), (1341532283,), (1341532288,), (1341532292,), (1341532491,), (1341532520,), (1341532534,), (1341532556,), (1341533062,), (1341536040,), (1341536046,), (1341536055,), (1341536059,), (1341536229,), (1341536263,), (1341536268,), (1341536271,), (1341536328,), (1341536334,), (1341536356,), (1341536362,), (1341536367,), (1341536371,), (1341536380,), (1341536452,), (1341536458,), (1341536466,), (1341536472,), (1341536509,), (1341536512,), (1341536517,), (1341536520,), (1341536523,), (1341536529,), (1341536589,), (1341536593,), (1341536596,), (1341536599,), (1341536669,), (1341536684,), (1341536720,), (1341536723,), (1341536764,), (1341536779,), (1341536875,), (1341536882,), (1341536891,), (1341536896,), (1341536899,), (1341536919,), (1341536925,), (1341536930,), (1341536935,), (1341536940,), (1341536944,), (1341537122,), (1341536965,), (1341536977,), (1341537073,), (1341537806,), (1341537877,), (1341537889,), (1341537894,), (1341537901,), (1341537906,), (1341538218,), (1341538300,), (1341538346,), (1341538350,), (1341538367,), (1341538369,), (1341538459,), (1341538469,), (1341538475,), (1341538480,), (1341538485,), (1341538570,), (1341538658,), (1341538827,), (1341538868,), (1341538928,), (1341539238,), (1341539242,), (1341539247,), (1341539259,), (1341539266,), (1341539277,), (1341539633,), (1341539689,), (1341539701,), (1341539705,), (1341539711,), (1341539999,), (1341540028,), (1341540071,), (1341540097,), (1341540101,), (1341540104,), (1341540297,), (1341540305,), (1341540308,), (1341540333,), (1341540431,), (1341540447,), (1341540460,), (1341540465,), (1341540468,), (1341540510,), (1341540522,), (1341540526,), (1341540529,), (1341540530,), (1341540560,), (1341540564,), (1341540631,), (1341540980,), (1341540986,), (1341541025,), (1341541164,), (1341541198,), (1341541204,), (1341541208,), (1341541288,), (1341541295,), (1341541300,), (1341541542,), (1341541458,), (1341541461,), (1341541500,), (1341541506,), (1341541528,), (1341541656,), (1341541669,), (1341541674,), (1341541710,), (1341541720,), (1341541774,), (1341541779,), (1341541790,), (1341541801,), (1341541813,), (1341541818,), (1341541894,), (1341541900,), (1341541909,), (1341541958,), (1341541992,), (1341542033,), (1341542038,), (1341542041,), (1341542049,), (1341542055,), (1341542111,), (1341542119,), (1341542125,), (1341542135,), (1341542346,), (1341542425,), (1341542497,), (1341542500,), (1341542503,), (1341542515,), (1341542582,), (1341542587,), (1341542595,), (1341542597,), (1341542695,), (1341542700,), (1341542706,), (1341542713,), (1341542718,), (1341542722,), (1341542765,), (1341542780,), (1341542786,), (1341542820,), (1341542828,), (1341542916,), (1341542922,), (1341542928,), (1341542991,), (1341543028,), (1341543108,), (1341543120,), (1341543126,), (1341543132,), (1341543136,), (1341543158,), (1341543161,), (1341543166,), (1341543170,), (1341543221,), (1341543224,), (1341543233,), (1341543236,), (1341543240,), (1341543244,), (1341543298,), (1341543304,), (1341543309,), (1341543314,), (1341543320,), (1341543323,), (1341543445,), (1341543410,), (1341543441,), (1341543547,), (1341543556,), (1341543567,), (1341543573,), (1341543581,), (1341543585,), (1341543647,), (1341543741,), (1341543818,), (1341543855,), (1341543859,), (1341544016,), (1341544021,), (1341544104,), (1341544109,), (1341544112,), (1341544149,), (1341544161,), (1341544169,), (1341544173,), (1341544177,), (1341544211,), (1341544218,), (1341544224,), (1341544230,), (1341544243,), (1341544253,), (1341544350,), (1341544422,), (1341544604,), (1341544688,), (1341544695,), (1341544698,), (1341544702,), (1341544726,), (1341544733,), (1341544742,), (1341544746,), (1341544749,), (1341544768,), (1341544776,), (1341544777,), (1341544844,), (1341544864,), (1341544914,), (1341544963,), (1341544999,), (1341545063,), (1341545070,), (1341545081,), (1341545096,), (1341545207,), (1341545282,), (1341545287,), (1341545297,), (1341545301,), (1341545440,), (1341545443,), (1341545445,), (1341545448,), (1341545528,), (1341545609,), (1341545614,), (1341545617,), (1341545621,), (1341545685,), (1341545647,), (1341545653,), (1341545658,), (1341545663,), (1341545678,), (1341545759,), (1341545779,), (1341545794,), (1341545800,), (1341545845,), (1341545857,), (1341545863,), (1341545923,), (1341545929,), (1341545934,), (1341545938,), (1341545942,), (1341545963,), (1341545968,), (1341545972,), (1341545976,), (1341546064,), (1341546073,), (1341546091,), (1341546095,), (1341546099,), (1341546176,), (1341546181,), (1341546188,), (1341546190,), (1341546203,), (1341547254,), (1341547256,), (1341547259,), (1341547272,), (1341547275,), (1341547543,), (1341547550,), (1341547796,), (1341547849,), (1341547856,), (1341547860,), (1341547884,), (1341547888,), (1341547892,), (1341547899,), (1341547939,), (1341548030,), (1341548049,), (1341548061,), (1341548065,), (1341548069,), (1341548077,), (1341548122,), (1341548126,), (1341548130,), (1341548133,), (1341548137,), (1341548219,), (1341548230,), (1341548338,), (1341548325,), (1341548329,), (1341548333,), (1341548363,), (1341548367,), (1341548371,), (1341548375,), (1341548696,), (1341548702,), (1341548709,), (1341548742,), (1341548746,), (1341548752,), (1341548756,), (1341548758,), (1341549097,), (1341549136,), (1341549155,), (1341549162,), (1341549239,), (1341549258,), (1341549265,), (1341549279,), (1341549299,), (1341549386,), (1341549773,), (1341549801,), (1341549870,), (1341549939,), (1341550001,), (1341550381,), (1341550423,), (1341550820,), (1341550832,), (1341550835,), (1341550841,), (1341551105,), (1341551318,), (1341551375,), (1341551443,), (1341551463,), (1341551871,), (1341552043,), (1341552050,), (1341552056,), (1341552059,), (1341552063,), (1341552285,), (1341552243,), (1341553249,), (1341553320,), (1341553377,), (1341553417,), (1341553505,), (1341554169,), (1341554207,), (1341554210,), (1341554212,), (1341554216,), (1341554223,), (1341554376,), (1341554380,), (1341554388,), (1341554392,), (1341554611,), (1341554649,), (1341554679,), (1341554708,), (1341555013,), (1341555039,), (1341555065,), (1341555119,), (1341555144,), (1341555428,), (1341555447,), (1341555485,), (1341555513,), (1341555703,), (1341555709,), (1341555718,), (1341555723,), (1341555739,), (1341556037,), (1341556055,), (1341556074,), (1341556099,), (1341556103,), (1341556352,), (1341556356,), (1341556360,), (1341556367,), (1341556373,), (1341556455,), (1341556506,), (1341563421,), (1341580739,), (1341580840,), (1341581617,), (1341582726,), (1341582733,), (1341582953,), (1341583452,), (1341583528,), (1341583535,), (1341583727,), (1341583735,), (1341583745,), (1341584189,), (1341602243,), (1341602313,), (1341602467,), (1341603390,), (1341604319,), (1341605258,), (1341605263,), (1341606368,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07032025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21144771]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] map_info['map_portfolio_photo'] : {21144771: [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575]} final : True mtd_id 4302 list_pids : [1341478408, 1341478319, 1341478305, 1341478269, 1341478244, 1341478077, 1341478046, 1341478010, 1341477992, 1341477819, 1341477814, 1341477809, 1341477790, 1341477785, 1341477686, 1341477682, 1341477675, 1341477666, 1341477657, 1341477630, 1341477575] Looping around the photos to save general results len do output : 1 /21144771Didn'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, '2650662') ('4302', '21144771', '1341478408', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662') ('4302', None, None, None, None, None, None, None, '2650662') ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21144771', 'None', None, None, None, None, '2650662'), ('4302', '21144771', '1341478408', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478319', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478305', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478269', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478244', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478077', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478046', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341478010', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477992', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477819', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477814', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477809', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477790', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477785', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477686', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477682', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477675', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477666', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477657', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477630', None, None, None, None, None, '2650662'), ('4302', '21144771', '1341477575', None, None, None, None, None, '2650662')] time used for this insertion : 0.019912004470825195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.51993989944458 time spend to save output : 0.020177125930786133 total time spend for step 5 : 1.5401170253753662 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 (2650662) 2.63user 2.02system 0:21.07elapsed 22%CPU (0avgtext+0avgdata 160768maxresident)k 1344inputs+19168outputs (32major+79032minor)pagefaults 0swaps