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 : 2385852 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 (2595268) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2595268) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610400 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2595268'] with mtr_portfolio_ids : ['20610400'] and first list_photo_ids : [] new path : /proc/2385852/ Name: python3 Umask: 0002 State: R (running) Tgid: 2385852 Ngid: 0 Pid: 2385852 PPid: 2385851 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2385852 NSpid: 2385852 NSpgid: 2384629 NSsid: 2384629 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100640 kB VmRSS: 100640 kB RssAnon: 59744 kB RssFile: 40896 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 134 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2385852', 'Ngid': '0', 'Pid': '2385852', 'PPid': '2385851', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2385852', 'NSpid': '2385852', 'NSpgid': '2384629', 'NSsid': '2384629', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100640 kB', 'VmRSS': '100640 kB', 'RssAnon': '59744 kB', 'RssFile': '40896 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '134'} ('datou_batch_current', '2385852', '1106840', '0', '1106840', '865592', '100640', b'', 'marlene', '2595268') 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 (20610400) 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 (2595268 ) ) 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 (20610400) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338174524, 'portfolio_id': 20610400}, {'photo_id': 1338174418, 'portfolio_id': 20610400}, {'photo_id': 1338174416, 'portfolio_id': 20610400}, {'photo_id': 1338174412, 'portfolio_id': 20610400}, {'photo_id': 1338174183, 'portfolio_id': 20610400}, {'photo_id': 1338174181, 'portfolio_id': 20610400}, {'photo_id': 1338174178, 'portfolio_id': 20610400}, {'photo_id': 1338174176, 'portfolio_id': 20610400}, {'photo_id': 1338174146, 'portfolio_id': 20610400}, {'photo_id': 1338174144, 'portfolio_id': 20610400}, {'photo_id': 1338174142, 'portfolio_id': 20610400}, {'photo_id': 1338174141, 'portfolio_id': 20610400}, {'photo_id': 1338174114, 'portfolio_id': 20610400}, {'photo_id': 1338174111, 'portfolio_id': 20610400}, {'photo_id': 1338174108, 'portfolio_id': 20610400}, {'photo_id': 1338174106, 'portfolio_id': 20610400}, {'photo_id': 1338174105, 'portfolio_id': 20610400}, {'photo_id': 1338174077, 'portfolio_id': 20610400}, {'photo_id': 1338174076, 'portfolio_id': 20610400}, {'photo_id': 1338173907, 'portfolio_id': 20610400}] map_portfolio_id_photo_id: {20610400: [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907]} ##### 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.0523529052734375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 18 05:54:26 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 (20610400) 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 : 20610400 get user id for portfolio 20610400 get sub ptf for main ptf 20610400, type 3726 and hashtags ['autre_refus', 'Carton_brun', 'papier', 'mal_croppe', 'metal', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'kraft', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610400 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','papier','mal_croppe','metal','environnement','plastique','Teint_Dans_La_Masse','Carton_gris','flou','kraft','cartonnette')) 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`=20610400 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','papier','mal_croppe','metal','environnement','plastique','Teint_Dans_La_Masse','Carton_gris','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20610400, 'sub_port_id': 20610402, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267126, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20610400, 'sub_port_id': 20610403, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267127, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'mal_croppe': {'main_port_id': 20610400, 'sub_port_id': 20610404, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267128, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'plastique': {'main_port_id': 20610400, 'sub_port_id': 20610405, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267129, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'Carton_gris': {'main_port_id': 20610400, 'sub_port_id': 20610406, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267130, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'papier': {'main_port_id': 20610400, 'sub_port_id': 20610407, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267131, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'autre_refus': {'main_port_id': 20610400, 'sub_port_id': 20610408, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267132, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'Carton_brun': {'main_port_id': 20610400, 'sub_port_id': 20610409, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267133, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'metal': {'main_port_id': 20610400, 'sub_port_id': 20610410, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267134, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'flou': {'main_port_id': 20610400, 'sub_port_id': 20610411, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267135, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'cartonnette': {'main_port_id': 20610400, 'sub_port_id': 20610412, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267136, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}, 'environnement': {'main_port_id': 20610400, 'sub_port_id': 20610413, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267137, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20610402 , 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=20610400 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 (20610402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610403 , 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=20610400 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 (20610403) result : ((1338174177,), (1338174483,), (1338174484,), (1338174485,), (1338174702,), (1338174703,), (1338174704,), (1338179757,), (1338179758,), (1338179759,), (1338179760,), (1338179761,), (1338182093,), (1338182094,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610404 , 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=20610400 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 (20610404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610405 , 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=20610400 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 (20610405) result : ((1338179793,), (1338179794,), (1338182106,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610406 , 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=20610400 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 (20610406) result : ((1338174489,), (1338179770,), (1338179771,), (1338179772,), (1338179773,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610407 , 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=20610400 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 (20610407) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610408 , 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=20610400 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 (20610408) result : ((1338174180,), (1338174486,), (1338179768,), (1338179769,), (1338182103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610409 , 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=20610400 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 (20610409) result : ((1338174491,), (1338174492,), (1338174708,), (1338179790,), (1338179791,), (1338179792,), (1338182104,), (1338182105,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610410 , 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=20610400 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 (20610410) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610411 , 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=20610400 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 (20610411) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610412 , 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=20610400 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 (20610412) result : ((1338174490,), (1338174705,), (1338179783,), (1338179784,), (1338179785,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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 20610413 , 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=20610400 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 (20610413) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20610400) result : ((1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,)) 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`=20610400 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','papier','mal_croppe','metal','environnement','plastique','Teint_Dans_La_Masse','Carton_gris','flou','kraft','cartonnette')) 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`=20610400 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','papier','mal_croppe','metal','environnement','plastique','Teint_Dans_La_Masse','Carton_gris','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20610400, 'sub_port_id': 20610414, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267138, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20610400, 'sub_port_id': 20610415, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267139, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'mal_croppe': {'main_port_id': 20610400, 'sub_port_id': 20610416, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267140, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'plastique': {'main_port_id': 20610400, 'sub_port_id': 20610417, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267141, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'Carton_gris': {'main_port_id': 20610400, 'sub_port_id': 20610418, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267142, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'papier': {'main_port_id': 20610400, 'sub_port_id': 20610419, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267143, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'autre_refus': {'main_port_id': 20610400, 'sub_port_id': 20610420, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267144, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'Carton_brun': {'main_port_id': 20610400, 'sub_port_id': 20610421, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267145, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'metal': {'main_port_id': 20610400, 'sub_port_id': 20610422, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267146, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'flou': {'main_port_id': 20610400, 'sub_port_id': 20610423, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267147, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'cartonnette': {'main_port_id': 20610400, 'sub_port_id': 20610424, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267148, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}, 'environnement': {'main_port_id': 20610400, 'sub_port_id': 20610425, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13267149, 'last_updated_at': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 17, 15, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 17, 15, 44, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20610425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20610413 lien utilise dans velours : https://www.fotonower.com/velours/20610414,20610415,20610416,20610417,20610418,20610419,20610420,20610421,20610422,20610423,20610424,20610425?tags=kraft,Teint_Dans_La_Masse,mal_croppe,plastique,Carton_gris,papier,autre_refus,Carton_brun,metal,flou,cartonnette,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20610400]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] map_info['map_portfolio_photo'] : {20610400: [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907]} final : False mtd_id 4302 list_pids : [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] Looping around the photos to save general results len do output : 1 /20610400. 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, '2595268') ('4302', '20610400', '1338174524', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268') 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', None, '20610400', "{'kraft': 20610402, 'Teint_Dans_La_Masse': 20610403, 'mal_croppe': 20610404, 'plastique': 20610405, 'Carton_gris': 20610406, 'papier': 20610407, 'autre_refus': 20610408, 'Carton_brun': 20610409, 'metal': 20610410, 'flou': 20610411, 'cartonnette': 20610412, 'environnement': 20610413}", None, None, None, None, '2595268'), ('4302', '20610400', '1338174524', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268')] time used for this insertion : 0.03682875633239746 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5898756980895996 time spend to save output : 0.03719472885131836 total time spend for step 1 : 2.627070426940918 step2:final Tue Feb 18 05:54:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20610400) 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 20610400 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338173907,1338174077,1338174076,1338174114,1338174111,1338174108,1338174106,1338174105,1338174146,1338174144,1338174142,1338174141,1338174183,1338174181,1338174178,1338174176,1338174418,1338174416,1338174412,1338174524); 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([20610400]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} new output for save of step final : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] map_info['map_portfolio_photo'] : {20610400: [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907]} final : False mtd_id 4302 list_pids : [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] Looping around the photos to save general results len do output : 20 /1338174524.Didn't retrieve data . /1338174418.Didn't retrieve data . /1338174416.Didn't retrieve data . /1338174412.Didn't retrieve data . /1338174183.Didn't retrieve data . /1338174181.Didn't retrieve data . /1338174178.Didn't retrieve data . /1338174176.Didn't retrieve data . /1338174146.Didn't retrieve data . /1338174144.Didn't retrieve data . /1338174142.Didn't retrieve data . /1338174141.Didn't retrieve data . /1338174114.Didn't retrieve data . /1338174111.Didn't retrieve data . /1338174108.Didn't retrieve data . /1338174106.Didn't retrieve data . /1338174105.Didn't retrieve data . /1338174077.Didn't retrieve data . /1338174076.Didn't retrieve data . /1338173907.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, '2595268') ('4302', '20610400', '1338174524', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '20610400', '1338174524', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174418', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174416', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174412', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174183', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174181', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174178', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174176', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174146', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174144', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174142', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174141', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174114', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174111', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174108', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174106', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174105', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174077', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338174076', '0.05213343120425452', None, None, None, None, '2595268'), ('4302', '20610400', '1338173907', '0.05213343120425452', None, None, None, None, '2595268')] time used for this insertion : 0.02085590362548828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0657503604888916 time spend to save output : 0.02188730239868164 total time spend for step 2 : 0.08763766288757324 step3:velours_tree Tue Feb 18 05:54:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20610400: [{'kraft': 20610402, 'Teint_Dans_La_Masse': 20610403, 'mal_croppe': 20610404, 'plastique': 20610405, 'Carton_gris': 20610406, 'papier': 20610407, 'autre_refus': 20610408, 'Carton_brun': 20610409, 'metal': 20610410, 'flou': 20610411, 'cartonnette': 20610412, 'environnement': 20610413}]} input_args_next_step : {20610400: ()} output_args : {20610400: [{'kraft': 20610402, 'Teint_Dans_La_Masse': 20610403, 'mal_croppe': 20610404, 'plastique': 20610405, 'Carton_gris': 20610406, 'papier': 20610407, 'autre_refus': 20610408, 'Carton_brun': 20610409, 'metal': 20610410, 'flou': 20610411, 'cartonnette': 20610412, 'environnement': 20610413}]} args : 20610400 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 : ({'kraft': 20610402, 'Teint_Dans_La_Masse': 20610403, 'mal_croppe': 20610404, 'plastique': 20610405, 'Carton_gris': 20610406, 'papier': 20610407, 'autre_refus': 20610408, 'Carton_brun': 20610409, 'metal': 20610410, 'flou': 20610411, 'cartonnette': 20610412, 'environnement': 20610413},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20610400) 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([20610400]) 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.321272611618042 time spend to save output : 4.00543212890625e-05 total time spend for step 3 : 0.32131266593933105 step4:send_mail_cod Tue Feb 18 05:54:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} input_args_next_step : {1338174524: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174524 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174418 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174416 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174412 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174183 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174181 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174178 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174176 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174146 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174144 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174142 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174141 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174114 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174111 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174108 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174106 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174105 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174077 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338174076 depend.output_id : 0 input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ()} output_args : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',)} args : 1338173907 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 : {20610400: [{'kraft': 20610402, 'Teint_Dans_La_Masse': 20610403, 'mal_croppe': 20610404, 'plastique': 20610405, 'Carton_gris': 20610406, 'papier': 20610407, 'autre_refus': 20610408, 'Carton_brun': 20610409, 'metal': 20610410, 'flou': 20610411, 'cartonnette': 20610412, 'environnement': 20610413}]} input_args_next_step : {1338174524: ('0.05213343120425452',), 1338174418: ('0.05213343120425452',), 1338174416: ('0.05213343120425452',), 1338174412: ('0.05213343120425452',), 1338174183: ('0.05213343120425452',), 1338174181: ('0.05213343120425452',), 1338174178: ('0.05213343120425452',), 1338174176: ('0.05213343120425452',), 1338174146: ('0.05213343120425452',), 1338174144: ('0.05213343120425452',), 1338174142: ('0.05213343120425452',), 1338174141: ('0.05213343120425452',), 1338174114: ('0.05213343120425452',), 1338174111: ('0.05213343120425452',), 1338174108: ('0.05213343120425452',), 1338174106: ('0.05213343120425452',), 1338174105: ('0.05213343120425452',), 1338174077: ('0.05213343120425452',), 1338174076: ('0.05213343120425452',), 1338173907: ('0.05213343120425452',), 20610400: ()} output_args : {20610400: [{'kraft': 20610402, 'Teint_Dans_La_Masse': 20610403, 'mal_croppe': 20610404, 'plastique': 20610405, 'Carton_gris': 20610406, 'papier': 20610407, 'autre_refus': 20610408, 'Carton_brun': 20610409, 'metal': 20610410, 'flou': 20610411, 'cartonnette': 20610412, 'environnement': 20610413}]} args : 20610400 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 :21, first value : ('0.05213343120425452',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20610400) 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 (1338174524,1338174418,1338174416,1338174412,1338174183,1338174181,1338174178,1338174176,1338174146,1338174144,1338174142,1338174141,1338174114,1338174111,1338174108,1338174106,1338174105,1338174077,1338174076,1338173907) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338173907 begin to download photo : 1338174108 begin to download photo : 1338174144 begin to download photo : 1338174183 download finish for photo 1338174108 begin to download photo : 1338174111 download finish for photo 1338173907 begin to download photo : 1338174076 download finish for photo 1338174144 begin to download photo : 1338174146 download finish for photo 1338174183 begin to download photo : 1338174412 download finish for photo 1338174111 begin to download photo : 1338174114 download finish for photo 1338174146 begin to download photo : 1338174176 download finish for photo 1338174412 begin to download photo : 1338174416 download finish for photo 1338174076 begin to download photo : 1338174077 download finish for photo 1338174114 begin to download photo : 1338174141 download finish for photo 1338174416 begin to download photo : 1338174418 download finish for photo 1338174176 begin to download photo : 1338174178 download finish for photo 1338174077 begin to download photo : 1338174105 download finish for photo 1338174418 begin to download photo : 1338174524 download finish for photo 1338174141 begin to download photo : 1338174142 download finish for photo 1338174178 begin to download photo : 1338174181 download finish for photo 1338174105 begin to download photo : 1338174106 download finish for photo 1338174524 download finish for photo 1338174142 download finish for photo 1338174181 download finish for photo 1338174106 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206104021739854470/ imagette206104041739854470/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P20610400_18-02-2025_05_54_30.pdf 20610402 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=20610402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206104021739854470 20610404 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=20610404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206104041739854470 20610405 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=20610405 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338179793: '1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091355_0.png', 1338179794: '1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091405_0.png', 1338182106: '1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092486_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/309c1366be7e142cea8139e10febd369_90837159.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/867bb26ddb28c0d37fb047cd533a56aa_46215057.png change filename to text .imagette206104051739854470/ imagette206104051739854470/1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092486_0.png.png imagette206104051739854470/1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091355_0.png.png imagette206104051739854470/1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091405_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a1f7c03a14ba49cfee636c1de7ccf6e4_85495879.png imagette206104051739854470 20610408 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=20610408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338174180: '1739803374_2760750_1338174077_00aafa9d9d0e593fd110cbe107280be6_rle_crop_3678091060_0.png', 1338174486: '1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092420_0.png', 1338179768: '1739805415_2843108_1338174146_f1829a8f03f83dcaf46c3a538d81417b_rle_crop_3678118510_0.png', 1338179769: '1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091393_0.png', 1338182103: '1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092478_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1163b31c18783cee726c6db14b62b083_66045319.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/61999513f22cb0680a9c7c4c015b468e_22175536.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e957a95f380bd0fd724ee20fca7a6d12_65936222.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/360335f5fc6ecb995976dfd5a6d12d1a_825750.png change filename to text .imagette206104081739854470/ imagette206104081739854470/1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092420_0.png.png imagette206104081739854470/1739803374_2760750_1338174077_00aafa9d9d0e593fd110cbe107280be6_rle_crop_3678091060_0.png.png imagette206104081739854470/1739805415_2843108_1338174146_f1829a8f03f83dcaf46c3a538d81417b_rle_crop_3678118510_0.png.png imagette206104081739854470/1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092478_0.png.png imagette206104081739854470/1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091393_0.png.png imagette206104101739854471/ imagette206104111739854471/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/21b035626c4f73166c4b74dcfe5ddfd5_94873334.png imagette206104081739854470 20610410 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=20610410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206104101739854471 20610411 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=20610411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206104111739854471 20610412 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=20610412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338174490: '1739803491_2761772_1338174142_b1babb222d8953c13e4506c3ad1b62bd_rle_crop_3678092390_0.png', 1338174705: '1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093541_0.png', 1338179783: '1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091361_0.png', 1338179784: '1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091395_0.png', 1338179785: '1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/dc6542c2179bb8f12d4ee2a55344c310_39673209.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/69645a138b15dfe2a8b77f18d6c86b03_41512350.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/cc5cfca9e112d0fcd0d9dfe9690abd57_89573843.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e7e70f12ee30fdfe82e5abd8bfeac7c6_22331873.png change filename to text .imagette206104121739854471/ imagette206104121739854471/1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091407_0.png.png imagette206104121739854471/1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091361_0.png.png imagette206104121739854471/1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093541_0.png.png imagette206104121739854471/1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091395_0.png.png imagette206104121739854471/1739803491_2761772_1338174142_b1babb222d8953c13e4506c3ad1b62bd_rle_crop_3678092390_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/60e2f0052ca7140b5b1e6afabf9602ac_78786988.png imagette206104121739854471 20610403 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=20610403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338174177: '1739803374_2760750_1338174076_9ce1d98d43467744b460ef962846a846_rle_crop_3678091076_0.png', 1338174483: '1739803491_2761772_1338174183_d15610d42a935020d27fde1b76f26c4b_rle_crop_3678092291_0.png', 1338174484: '1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092424_0.png', 1338174485: '1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092423_0.png', 1338174702: '1739803634_2763075_1338174524_c4ea5d2d48d38b2ff9e625c3dd41c00d_rle_crop_3678093480_0.png', 1338174703: '1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093543_0.png', 1338174704: '1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093545_0.png', 1338179757: '1739805415_2843108_1338174111_fc77199b35fe706bac2ea3e741a7b137_rle_crop_3678091340_0.png', 1338179758: '1739805415_2843108_1338174111_fc77199b35fe706bac2ea3e741a7b137_rle_crop_3678091338_0.png', 1338179759: '1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091364_0.png', 1338179760: '1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091400_0.png', 1338179761: '1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091409_0.png', 1338182093: '1739806354_2868155_1338174178_a249c3e92d460eb81ba5afdb1fe86ef6_rle_crop_3678092463_0.png', 1338182094: '1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092483_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/24bebffab3dbdf82345c80a8bf6a088d_46328003.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9ee08563812f071593755f29cdf0a182_12930092.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/c82c6f6b3ac6fb8bb9282119046ddb10_83124219.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/20651a2ca5cac620b925861aa1392087_39065163.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/71d5cd0057d6206c0cea294cb57c8319_79509340.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/bd8e476c234964e1ee04a7e3d8717fe3_24127367.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2bda6ed8d121718bba6de7db619dee5a_53094716.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/47c6287673a36fe9d9806f256eb0f6d8_61555444.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/85e6ddf8fc12fb3cfa77ae54c99989bb_71460213.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6dd93b305469a7d6721fd25e4c014dc5_33389855.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/8fad11a76fb1f27c78a96e27756cca64_2517271.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/0092b14bc8f98ba6ff38498a02c091f5_50717934.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/63ea2a15f5e027ddc12b64fcd19002af_72983666.png change filename to text .imagette206104031739854472/ imagette206104031739854472/1739803491_2761772_1338174183_d15610d42a935020d27fde1b76f26c4b_rle_crop_3678092291_0.png.png imagette206104031739854472/1739803634_2763075_1338174524_c4ea5d2d48d38b2ff9e625c3dd41c00d_rle_crop_3678093480_0.png.png imagette206104031739854472/1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092424_0.png.png imagette206104031739854472/1739805415_2843108_1338174111_fc77199b35fe706bac2ea3e741a7b137_rle_crop_3678091338_0.png.png imagette206104031739854472/1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093545_0.png.png imagette206104031739854472/1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092423_0.png.png imagette206104031739854472/1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091400_0.png.png imagette206104031739854472/1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091364_0.png.png imagette206104031739854472/1739805415_2843108_1338174111_fc77199b35fe706bac2ea3e741a7b137_rle_crop_3678091340_0.png.png imagette206104031739854472/1739806354_2868155_1338174178_a249c3e92d460eb81ba5afdb1fe86ef6_rle_crop_3678092463_0.png.png imagette206104031739854472/1739803374_2760750_1338174076_9ce1d98d43467744b460ef962846a846_rle_crop_3678091076_0.png.png imagette206104031739854472/1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091409_0.png.png imagette206104031739854472/1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092483_0.png.png imagette206104031739854472/1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093543_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/b5841e8b68c544ee823c36aea2875d65_86845942.png imagette206104031739854472 20610406 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=20610406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338174489: '1739803491_2761772_1338174144_74483cb9104d507b31d68ed047e1e670_rle_crop_3678092385_0.png', 1338179770: '1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091357_0.png', 1338179771: '1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091397_0.png', 1338179772: '1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091392_0.png', 1338179773: '1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091411_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fa0f7e24acdd077535295f8d51f11526_88457326.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9abdaf40a0fe0d416b874e052d2e0f7c_68291401.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e6a0eeefca1cc26ca0b0dddce02379ad_50542155.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9166baa9e20c43d5cac3c1075a616262_43955471.png change filename to text .imagette206104061739854473/ imagette206104061739854473/1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091397_0.png.png imagette206104061739854473/1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091392_0.png.png imagette206104061739854473/1739805415_2843108_1338174105_c8db457bd3dcf4b3d83a8458018135b1_rle_crop_3678091411_0.png.png imagette206104061739854473/1739803491_2761772_1338174144_74483cb9104d507b31d68ed047e1e670_rle_crop_3678092385_0.png.png imagette206104061739854473/1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091357_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/287a9e76639ebaccf8f3208925ac2f56_91691197.png imagette206104061739854473 20610409 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=20610409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338174491: '1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092422_0.png', 1338174492: '1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092426_0.png', 1338174708: '1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093544_0.png', 1338179790: '1739805415_2843108_1338174111_fc77199b35fe706bac2ea3e741a7b137_rle_crop_3678091339_0.png', 1338179791: '1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091359_0.png', 1338179792: '1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091396_0.png', 1338182104: '1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092489_0.png', 1338182105: '1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092487_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/6297acd5127c81fe7f6d7856260fcd59_17553919.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/2cc6b8aa02b2f5f8f51ce060e61d6a6a_48771678.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/fdd4532bfaee58f296af556d4815671a_75725319.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/1a1d559e516f7f62537019a2588d8cab_25128550.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/70a147b007691ab392e9be6031328f85_56958991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/e7b6456d9ca3e457cc23b8a9971449c4_25032706.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/a3947cb40f61444c0b97d8156a2b08cf_68434642.png change filename to text .imagette206104091739854474/ imagette206104091739854474/1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092489_0.png.png imagette206104091739854474/1739806354_2868155_1338174176_e8397146648d732b9f9d71b0cfa9b60c_rle_crop_3678092487_0.png.png imagette206104091739854474/1739803634_2763075_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0_rle_crop_3678093544_0.png.png imagette206104091739854474/1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092422_0.png.png imagette206104091739854474/1739805415_2843108_1338174108_f1053dd27e680eb70fffa757c8fdcdd2_rle_crop_3678091359_0.png.png imagette206104091739854474/1739803491_2761772_1338174141_c69962b06bf29dccec2e050ea71b75d7_rle_crop_3678092426_0.png.png imagette206104091739854474/1739805415_2843108_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f_rle_crop_3678091396_0.png.png imagette206104091739854474/1739805415_2843108_1338174111_fc77199b35fe706bac2ea3e741a7b137_rle_crop_3678091339_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/76aebdb161b02dd635318388aa6574fc_12395548.png imagette206104091739854474 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20610400 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20610414,20610415,20610416,20610417,20610418,20610419,20610420,20610421,20610422,20610423,20610424,20610425?tags=kraft,Teint_Dans_La_Masse,mal_croppe,plastique,Carton_gris,papier,autre_refus,Carton_brun,metal,flou,cartonnette,environnement your option no_mail is active, we will not send the real mail to your client args[1338174524] : ('0.05213343120425452',) no score found for photo 1338174524 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174418] : ('0.05213343120425452',) no score found for photo 1338174418 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174416] : ('0.05213343120425452',) no score found for photo 1338174416 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174412] : ('0.05213343120425452',) no score found for photo 1338174412 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174183] : ('0.05213343120425452',) no score found for photo 1338174183 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174181] : ('0.05213343120425452',) no score found for photo 1338174181 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174178] : ('0.05213343120425452',) no score found for photo 1338174178 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174176] : ('0.05213343120425452',) no score found for photo 1338174176 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174146] : ('0.05213343120425452',) no score found for photo 1338174146 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174144] : ('0.05213343120425452',) no score found for photo 1338174144 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174142] : ('0.05213343120425452',) no score found for photo 1338174142 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174141] : ('0.05213343120425452',) no score found for photo 1338174141 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174114] : ('0.05213343120425452',) no score found for photo 1338174114 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174111] : ('0.05213343120425452',) no score found for photo 1338174111 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174108] : ('0.05213343120425452',) no score found for photo 1338174108 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174106] : ('0.05213343120425452',) no score found for photo 1338174106 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174105] : ('0.05213343120425452',) no score found for photo 1338174105 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174077] : ('0.05213343120425452',) no score found for photo 1338174077 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338174076] : ('0.05213343120425452',) no score found for photo 1338174076 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com args[1338173907] : ('0.05213343120425452',) no score found for photo 1338173907 apple ('0.05213343120425452',) We are sending mail with results at report@fotonower.com refus_total : 0.05213343120425452 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=20610400 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_P20610400_18-02-2025_05_54_30.pdf results_Auto_P20610400_18-02-2025_05_54_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_18-02-2025_05_54_30.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','20610400','results_Auto_P20610400_18-02-2025_05_54_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_18-02-2025_05_54_30.pdf','pdf','','0.27','0.05213343120425452') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20610400]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] map_info['map_portfolio_photo'] : {20610400: [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907]} final : False mtd_id 4302 list_pids : [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] 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, '2595268') ('4302', '20610400', '1338174524', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20610400', '1338174524', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268')] time used for this insertion : 0.029690265655517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.566291093826294 time spend to save output : 0.029987096786499023 total time spend for step 4 : 6.596278190612793 step5:split_time_score Tue Feb 18 05:54:36 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 : ['20610400'] 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 : [('20610400',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20610400) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338174183: {'path': 'temp/1739854469_2385852_1338174183_d15610d42a935020d27fde1b76f26c4b.jpg', 'extension': 'jpg'}, 1338174412: {'path': 'temp/1739854469_2385852_1338174412_7ff0c2cc5ed5d469a353022fb0820bf0.jpg', 'extension': 'jpg'}, 1338174416: {'path': 'temp/1739854469_2385852_1338174416_201e6fdac2ca43f72ac41479d1e9169c.jpg', 'extension': 'jpg'}, 1338174418: {'path': 'temp/1739854469_2385852_1338174418_f01b586469e3096196c72f466b4f9db2.jpg', 'extension': 'jpg'}, 1338174524: {'path': 'temp/1739854469_2385852_1338174524_c4ea5d2d48d38b2ff9e625c3dd41c00d.jpg', 'extension': 'jpg'}, 1338174108: {'path': 'temp/1739854469_2385852_1338174108_f1053dd27e680eb70fffa757c8fdcdd2.jpg', 'extension': 'jpg'}, 1338174111: {'path': 'temp/1739854469_2385852_1338174111_fc77199b35fe706bac2ea3e741a7b137.jpg', 'extension': 'jpg'}, 1338174114: {'path': 'temp/1739854469_2385852_1338174114_ab3814a9ae8527de9cfe4943946b7f6d.jpg', 'extension': 'jpg'}, 1338174141: {'path': 'temp/1739854469_2385852_1338174141_c69962b06bf29dccec2e050ea71b75d7.jpg', 'extension': 'jpg'}, 1338174142: {'path': 'temp/1739854469_2385852_1338174142_b1babb222d8953c13e4506c3ad1b62bd.jpg', 'extension': 'jpg'}, 1338174144: {'path': 'temp/1739854469_2385852_1338174144_74483cb9104d507b31d68ed047e1e670.jpg', 'extension': 'jpg'}, 1338174146: {'path': 'temp/1739854469_2385852_1338174146_f1829a8f03f83dcaf46c3a538d81417b.jpg', 'extension': 'jpg'}, 1338174176: {'path': 'temp/1739854469_2385852_1338174176_e8397146648d732b9f9d71b0cfa9b60c.jpg', 'extension': 'jpg'}, 1338174178: {'path': 'temp/1739854469_2385852_1338174178_a249c3e92d460eb81ba5afdb1fe86ef6.jpg', 'extension': 'jpg'}, 1338174181: {'path': 'temp/1739854469_2385852_1338174181_77271a3ce0f5060d9f6bf64eafe7f02f.jpg', 'extension': 'jpg'}, 1338173907: {'path': 'temp/1739854469_2385852_1338173907_7e958a2770398e65d14fdbb0989d5604.jpg', 'extension': 'jpg'}, 1338174076: {'path': 'temp/1739854469_2385852_1338174076_9ce1d98d43467744b460ef962846a846.jpg', 'extension': 'jpg'}, 1338174077: {'path': 'temp/1739854469_2385852_1338174077_00aafa9d9d0e593fd110cbe107280be6.jpg', 'extension': 'jpg'}, 1338174105: {'path': 'temp/1739854469_2385852_1338174105_c8db457bd3dcf4b3d83a8458018135b1.jpg', 'extension': 'jpg'}, 1338174106: {'path': 'temp/1739854469_2385852_1338174106_f481f460e3ae5e6aee71e1b7dd1d6a0f.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 = 20610400; (('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 = 20610400 group by h (('15', 20),) 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=20610400 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 (20610400) 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 (20610400) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17022025 20610400 Nombre de photos uploadées : 20 / 23040 (0%) 17022025 20610400 Nombre de photos taguées (types de déchets): 0 / 20 (0%) 17022025 20610400 Nombre de photos taguées (volume) : 0 / 20 (0%) [{'photo_id': 1338173907, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/7e958a2770398e65d14fdbb0989d5604.jpg', 'username': None, 'uploaded_at': 1739803082, 'text': 'image_17022025_15_37_34_10139.jpg'}, {'photo_id': 1338174077, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/00aafa9d9d0e593fd110cbe107280be6.jpg', 'username': None, 'uploaded_at': 1739803267, 'text': 'image_17022025_15_40_34_009132m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338174076, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/9ce1d98d43467744b460ef962846a846.jpg', 'username': None, 'uploaded_at': 1739803267, 'text': 'image_17022025_15_40_44_010137m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1338174114, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/17/ab3814a9ae8527de9cfe4943946b7f6d.jpg', 'username': None, 'uploaded_at': 1739803327, 'text': 'image_17022025_15_40_54_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010347366333007812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20610400, '2025-02-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1607134,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02899456024169922 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1607134 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594280, 'dashboard_result_id': 8943577, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594332, 'dashboard_result_id': 8943578, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594486, 'dashboard_result_id': 8943579, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20594872, 'dashboard_result_id': 8943580, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595236, 'dashboard_result_id': 8943581, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595343, 'dashboard_result_id': 8943582, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595598, 'dashboard_result_id': 8943583, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20595820, 'dashboard_result_id': 8943584, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20596067, 'dashboard_result_id': 8943585, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20596959, 'dashboard_result_id': 8943586, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20597365, 'dashboard_result_id': 8943587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20597866, 'dashboard_result_id': 8943588, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20598303, 'dashboard_result_id': 8943589, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20598844, 'dashboard_result_id': 8943590, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20599330, 'dashboard_result_id': 8943591, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20600382, 'dashboard_result_id': 8943592, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20600895, 'dashboard_result_id': 8943593, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20601335, 'dashboard_result_id': 8943594, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20601878, 'dashboard_result_id': 8943595, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20602408, 'dashboard_result_id': 8943596, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20602902, 'dashboard_result_id': 8943597, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20603399, 'dashboard_result_id': 8943598, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20604235, 'dashboard_result_id': 8943599, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20605068, 'dashboard_result_id': 8943600, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20605919, 'dashboard_result_id': 8943601, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20606546, 'dashboard_result_id': 8943602, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608349, 'dashboard_result_id': 8943603, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608630, 'dashboard_result_id': 8943604, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_18-02-2025_05_53_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20608978, 'dashboard_result_id': 8943605, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_05_54_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610400, 'dashboard_result_id': 8943606, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_17-02-2025_15_47_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610537, 'dashboard_result_id': 8943607, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20610930, 'dashboard_result_id': 8943608, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20611466, 'dashboard_result_id': 8943609, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20612080, 'dashboard_result_id': 8943610, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20612767, 'dashboard_result_id': 8943611, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20613570, 'dashboard_result_id': 8943612, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20614317, 'dashboard_result_id': 8943613, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20615941, 'dashboard_result_id': 8943614, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20616392, 'dashboard_result_id': 8943615, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20616912, 'dashboard_result_id': 8943616, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20617382, 'dashboard_result_id': 8943617, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20617949, 'dashboard_result_id': 8943618, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20618403, 'dashboard_result_id': 8943619, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20619056, 'dashboard_result_id': 8943620, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20619597, 'dashboard_result_id': 8943621, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20620365, 'dashboard_result_id': 8943622, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20620922, 'dashboard_result_id': 8943623, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20621658, 'dashboard_result_id': 8943624, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}"}, {'dashboat_entry_day': 1607134, 'dashboard_run_id': 1617283, 'mtr_portfolio_id': 20623013, 'dashboard_result_id': 8943625, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594280 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595239, 'mtr_portfolio_id': 20594280, 'created_at': datetime.datetime(2025, 2, 18, 5, 34, 28), 'result': '0.031063193329435315', 'result_long': None, 'result_double': None}] Qualite : 0.031063193329435315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594280 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}" where mtr_portfolio_id = 20594280 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943577, 0.031063193329435315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594280_18-02-2025_05_34_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594293, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594332 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595240, 'mtr_portfolio_id': 20594332, 'created_at': datetime.datetime(2025, 2, 18, 5, 35, 33), 'result': '0.017859220760834744', 'result_long': None, 'result_double': None}] Qualite : 0.017859220760834744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}" where mtr_portfolio_id = 20594332 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943578, 0.017859220760834744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594332_18-02-2025_05_35_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594486 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595241, 'mtr_portfolio_id': 20594486, 'created_at': datetime.datetime(2025, 2, 18, 5, 35, 57), 'result': '0.043166612285531536', 'result_long': None, 'result_double': None}] Qualite : 0.043166612285531536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594486 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}" where mtr_portfolio_id = 20594486 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943579, 0.043166612285531536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594486_18-02-2025_05_35_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594499, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20594872 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595242, 'mtr_portfolio_id': 20594872, 'created_at': datetime.datetime(2025, 2, 18, 5, 36, 33), 'result': '0.041389908026938274', 'result_long': None, 'result_double': None}] Qualite : 0.041389908026938274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20594872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20594872 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}" where mtr_portfolio_id = 20594872 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20594872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943580, 0.041389908026938274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20594872_18-02-2025_05_36_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20594922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20594923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20594924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20594925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20594926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20594927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20594928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20594929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20594930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20594931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20594932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20594933, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595236 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595243, 'mtr_portfolio_id': 20595236, 'created_at': datetime.datetime(2025, 2, 18, 5, 37, 31), 'result': '0.03426884123908907', 'result_long': None, 'result_double': None}] Qualite : 0.03426884123908907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595236 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}" where mtr_portfolio_id = 20595236 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943581, 0.03426884123908907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595236_18-02-2025_05_37_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595250, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595343 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595244, 'mtr_portfolio_id': 20595343, 'created_at': datetime.datetime(2025, 2, 18, 5, 38, 1), 'result': '0.05130504646756856', 'result_long': None, 'result_double': None}] Qualite : 0.05130504646756856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595343 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}" where mtr_portfolio_id = 20595343 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943582, 0.05130504646756856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595343_18-02-2025_05_38_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20595344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595355, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595598 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595245, 'mtr_portfolio_id': 20595598, 'created_at': datetime.datetime(2025, 2, 18, 5, 38, 32), 'result': '0.045798816004807036', 'result_long': None, 'result_double': None}] Qualite : 0.045798816004807036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595598 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}" where mtr_portfolio_id = 20595598 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943583, 0.045798816004807036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595598_18-02-2025_05_38_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595611, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20595820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595246, 'mtr_portfolio_id': 20595820, 'created_at': datetime.datetime(2025, 2, 18, 5, 39, 29), 'result': '0.05063497672589863', 'result_long': None, 'result_double': None}] Qualite : 0.05063497672589863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20595820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20595820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}" where mtr_portfolio_id = 20595820 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20595820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943584, 0.05063497672589863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20595820_18-02-2025_05_39_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20595849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20595850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20595851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20595852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20595853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20595854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20595855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20595856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20595857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20595858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20595859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20595860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20596067 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595247, 'mtr_portfolio_id': 20596067, 'created_at': datetime.datetime(2025, 2, 18, 5, 39, 59), 'result': '0.04278884657464817', 'result_long': None, 'result_double': None}] Qualite : 0.04278884657464817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20596067 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20596067 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}" where mtr_portfolio_id = 20596067 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20596067 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943585, 0.04278884657464817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596067_18-02-2025_05_40_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596137, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596139, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20596146, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20596959 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595248, 'mtr_portfolio_id': 20596959, 'created_at': datetime.datetime(2025, 2, 18, 5, 40, 27), 'result': '0.06365823375523438', 'result_long': None, 'result_double': None}] Qualite : 0.06365823375523438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20596959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20596959 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}" where mtr_portfolio_id = 20596959 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20596959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943586, 0.06365823375523438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20596959_18-02-2025_05_40_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20596961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20596962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20596963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20596964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20596965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20596966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20596967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20596968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20596969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20596970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20596971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20596972, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20597365 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595249, 'mtr_portfolio_id': 20597365, 'created_at': datetime.datetime(2025, 2, 18, 5, 41, 33), 'result': '0.04739588051523087', 'result_long': None, 'result_double': None}] Qualite : 0.04739588051523087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20597365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20597365 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}" where mtr_portfolio_id = 20597365 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20597365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943587, 0.04739588051523087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597365_18-02-2025_05_41_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20597372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597379, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597381, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20597866 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595250, 'mtr_portfolio_id': 20597866, 'created_at': datetime.datetime(2025, 2, 18, 5, 41, 59), 'result': '0.0507863640909435', 'result_long': None, 'result_double': None}] Qualite : 0.0507863640909435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20597866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20597866 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}" where mtr_portfolio_id = 20597866 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20597866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943588, 0.0507863640909435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20597866_18-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20597871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20597872, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20597873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20597874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20597875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20597876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20597877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20597878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20597879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20597880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20597881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20597882, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20598303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595251, 'mtr_portfolio_id': 20598303, 'created_at': datetime.datetime(2025, 2, 18, 5, 43, 1), 'result': '0.04057803057992565', 'result_long': None, 'result_double': None}] Qualite : 0.04057803057992565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}" where mtr_portfolio_id = 20598303 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20598303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943589, 0.04057803057992565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598303_18-02-2025_05_43_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598317, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20598844 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595252, 'mtr_portfolio_id': 20598844, 'created_at': datetime.datetime(2025, 2, 18, 5, 43, 29), 'result': '0.03931859027618542', 'result_long': None, 'result_double': None}] Qualite : 0.03931859027618542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20598844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20598844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}" where mtr_portfolio_id = 20598844 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20598844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943590, 0.03931859027618542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20598844_18-02-2025_05_43_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20598883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20598884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20598885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20598886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20598887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20598888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20598889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20598890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20598891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20598892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20598893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20598894, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20599330 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595253, 'mtr_portfolio_id': 20599330, 'created_at': datetime.datetime(2025, 2, 18, 5, 43, 59), 'result': '0.04143800630951649', 'result_long': None, 'result_double': None}] Qualite : 0.04143800630951649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20599330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20599330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}" where mtr_portfolio_id = 20599330 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20599330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943591, 0.04143800630951649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20599330_18-02-2025_05_44_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20599334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20599335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20599336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20599337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20599338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20599339, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20599340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20599341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20599342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20599343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20599344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20599345, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20600382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595254, 'mtr_portfolio_id': 20600382, 'created_at': datetime.datetime(2025, 2, 18, 5, 44, 29), 'result': '0.046303092472893076', 'result_long': None, 'result_double': None}] Qualite : 0.046303092472893076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}" where mtr_portfolio_id = 20600382 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20600382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943592, 0.046303092472893076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600382_18-02-2025_05_44_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600395, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20600895 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595255, 'mtr_portfolio_id': 20600895, 'created_at': datetime.datetime(2025, 2, 18, 5, 45, 31), 'result': '0.042865652131649', 'result_long': None, 'result_double': None}] Qualite : 0.042865652131649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20600895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20600895 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}" where mtr_portfolio_id = 20600895 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20600895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943593, 0.042865652131649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20600895_18-02-2025_05_45_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20600898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20600899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20600900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20600901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20600902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20600903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20600904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20600905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20600906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20600907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20600908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20600909, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20601335 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595256, 'mtr_portfolio_id': 20601335, 'created_at': datetime.datetime(2025, 2, 18, 5, 45, 58), 'result': '0.04169821282805755', 'result_long': None, 'result_double': None}] Qualite : 0.04169821282805755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601335 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}" where mtr_portfolio_id = 20601335 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20601335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943594, 0.04169821282805755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601335_18-02-2025_05_46_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601374, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20601878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595257, 'mtr_portfolio_id': 20601878, 'created_at': datetime.datetime(2025, 2, 18, 5, 47, 2), 'result': '0.04268416275530352', 'result_long': None, 'result_double': None}] Qualite : 0.04268416275530352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20601878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20601878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}" where mtr_portfolio_id = 20601878 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20601878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943595, 0.04268416275530352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20601878_18-02-2025_05_47_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20601906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20601907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20601908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20601909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20601910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20601911, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20601912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20601913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20601914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20601915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20601916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20601917, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20602408 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595258, 'mtr_portfolio_id': 20602408, 'created_at': datetime.datetime(2025, 2, 18, 5, 47, 29), 'result': '0.040911869918705226', 'result_long': None, 'result_double': None}] Qualite : 0.040911869918705226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602408 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}" where mtr_portfolio_id = 20602408 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943596, 0.040911869918705226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602408_18-02-2025_05_47_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20602441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602448, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20602902 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595259, 'mtr_portfolio_id': 20602902, 'created_at': datetime.datetime(2025, 2, 18, 5, 47, 58), 'result': '0.040040156495877804', 'result_long': None, 'result_double': None}] Qualite : 0.040040156495877804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20602902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20602902 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}" where mtr_portfolio_id = 20602902 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20602902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943597, 0.040040156495877804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20602902_18-02-2025_05_48_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20602954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20602955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20602956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20602957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20602958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20602959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20602960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20602961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20602962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20602963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20602964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20602965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20603399 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595260, 'mtr_portfolio_id': 20603399, 'created_at': datetime.datetime(2025, 2, 18, 5, 48, 30), 'result': '0.04325324285966165', 'result_long': None, 'result_double': None}] Qualite : 0.04325324285966165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20603399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20603399 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}" where mtr_portfolio_id = 20603399 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20603399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943598, 0.04325324285966165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20603399_18-02-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20603419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20603420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20603421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20603422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20603424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20603425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20603426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20603427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20603428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20603429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20603430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20603431, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20604235 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595261, 'mtr_portfolio_id': 20604235, 'created_at': datetime.datetime(2025, 2, 18, 5, 49, 56), 'result': '0.04599580135235511', 'result_long': None, 'result_double': None}] Qualite : 0.04599580135235511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20604235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20604235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}" where mtr_portfolio_id = 20604235 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20604235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943599, 0.04599580135235511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20604235_18-02-2025_05_50_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20604266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20604267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20604268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20604269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20604270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20604271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20604272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20604273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20604274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20604275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20604276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20604277, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20605068 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595262, 'mtr_portfolio_id': 20605068, 'created_at': datetime.datetime(2025, 2, 18, 5, 50, 32), 'result': '0.03954835758593325', 'result_long': None, 'result_double': None}] Qualite : 0.03954835758593325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605068 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}" where mtr_portfolio_id = 20605068 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20605068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943600, 0.03954835758593325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605068_18-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605088, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20605919 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595263, 'mtr_portfolio_id': 20605919, 'created_at': datetime.datetime(2025, 2, 18, 5, 51, 30), 'result': '0.04702874559763831', 'result_long': None, 'result_double': None}] Qualite : 0.04702874559763831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20605919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20605919 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}" where mtr_portfolio_id = 20605919 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20605919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943601, 0.04702874559763831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20605919_18-02-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20605924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20605925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20605926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20605927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20605928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20605929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20605930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20605931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20605932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20605933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20605934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20605935, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20606546 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595264, 'mtr_portfolio_id': 20606546, 'created_at': datetime.datetime(2025, 2, 18, 5, 51, 57), 'result': '0.04338361734014823', 'result_long': None, 'result_double': None}] Qualite : 0.04338361734014823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20606546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20606546 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}" where mtr_portfolio_id = 20606546 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20606546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943602, 0.04338361734014823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20606546_18-02-2025_05_51_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20606575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20606576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20606577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20606578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20606579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20606580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20606581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20606582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20606583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20606584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20606585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20606586, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20608349 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595265, 'mtr_portfolio_id': 20608349, 'created_at': datetime.datetime(2025, 2, 18, 5, 52, 28), 'result': '0.038107950629785184', 'result_long': None, 'result_double': None}] Qualite : 0.038107950629785184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608349 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}" where mtr_portfolio_id = 20608349 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943603, 0.038107950629785184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608349_18-02-2025_05_52_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20608351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608362, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20608630 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595266, 'mtr_portfolio_id': 20608630, 'created_at': datetime.datetime(2025, 2, 18, 5, 53, 28), 'result': '0.05132864079102073', 'result_long': None, 'result_double': None}] Qualite : 0.05132864079102073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_18-02-2025_05_53_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608630 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_18-02-2025_05_53_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}" where mtr_portfolio_id = 20608630 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943604, 0.05132864079102073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608630_18-02-2025_05_53_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608640, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608645, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20608978 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595267, 'mtr_portfolio_id': 20608978, 'created_at': datetime.datetime(2025, 2, 18, 5, 53, 58), 'result': '0.03701796209053796', 'result_long': None, 'result_double': None}] Qualite : 0.03701796209053796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20608978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_05_54_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20608978 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_05_54_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}" where mtr_portfolio_id = 20608978 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20608978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943605, 0.03701796209053796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20608978_18-02-2025_05_54_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20608982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20608983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20608984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20608985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20608986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20608987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20608988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20608989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20608990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20608991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20608992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20608993, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20610400 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2595268, 'mtr_portfolio_id': 20610400, 'created_at': datetime.datetime(2025, 2, 18, 5, 54, 29), 'result': '0.05213343120425452', 'result_long': None, 'result_double': None}] Qualite : 0.05213343120425452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_18-02-2025_05_54_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610400 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_18-02-2025_05_54_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}" where mtr_portfolio_id = 20610400 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943606, 0.05213343120425452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610400_18-02-2025_05_54_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610413, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20610537 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593603, 'mtr_portfolio_id': 20610537, 'created_at': datetime.datetime(2025, 2, 17, 16, 2, 57), 'result': '0.03986921501239806', 'result_long': None, 'result_double': None}] Qualite : 0.03986921501239806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610537 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}" where mtr_portfolio_id = 20610537 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943607, 0.03986921501239806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610537_17-02-2025_16_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610551, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20610930 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593646, 'mtr_portfolio_id': 20610930, 'created_at': datetime.datetime(2025, 2, 17, 16, 17), 'result': '0.03280718177372909', 'result_long': None, 'result_double': None}] Qualite : 0.03280718177372909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20610930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20610930 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}" where mtr_portfolio_id = 20610930 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20610930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943608, 0.03280718177372909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20610930_17-02-2025_16_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20610958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20610959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20610960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20610961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20610962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20610963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20610964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20610965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20610966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20610967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20610968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20610969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20611466 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593686, 'mtr_portfolio_id': 20611466, 'created_at': datetime.datetime(2025, 2, 17, 16, 32, 59), 'result': '0.06433049405998875', 'result_long': None, 'result_double': None}] Qualite : 0.06433049405998875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20611466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20611466 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}" where mtr_portfolio_id = 20611466 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20611466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943609, 0.06433049405998875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20611466_17-02-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20611494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20611495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20611496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20611497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20611498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20611499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20611500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20611501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20611502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20611503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20611504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20611505, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20612080 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593721, 'mtr_portfolio_id': 20612080, 'created_at': datetime.datetime(2025, 2, 17, 16, 48, 58), 'result': '0.06081060962300819', 'result_long': None, 'result_double': None}] Qualite : 0.06081060962300819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20612080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20612080 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}" where mtr_portfolio_id = 20612080 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20612080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943610, 0.06081060962300819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612080_17-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20612148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612152, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20612767 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593817, 'mtr_portfolio_id': 20612767, 'created_at': datetime.datetime(2025, 2, 17, 17, 2, 58), 'result': '0.03981537673826631', 'result_long': None, 'result_double': None}] Qualite : 0.03981537673826631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20612767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20612767 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}" where mtr_portfolio_id = 20612767 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20612767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943611, 0.03981537673826631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20612767_17-02-2025_17_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20612821, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20612822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20612823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20612824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20612825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20612826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20612827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20612828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20612829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20612830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20612831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20612832, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20613570 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593877, 'mtr_portfolio_id': 20613570, 'created_at': datetime.datetime(2025, 2, 17, 17, 19), 'result': '0.037063087370716605', 'result_long': None, 'result_double': None}] Qualite : 0.037063087370716605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20613570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20613570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}" where mtr_portfolio_id = 20613570 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20613570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943612, 0.037063087370716605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20613570_17-02-2025_17_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20613598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20613599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20613600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20613601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20613602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20613603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20613604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20613605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20613606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20613607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20613608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20613609, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20614317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2593921, 'mtr_portfolio_id': 20614317, 'created_at': datetime.datetime(2025, 2, 17, 17, 32, 31), 'result': '0.05028977903634978', 'result_long': None, 'result_double': None}] Qualite : 0.05028977903634978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20614317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20614317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}" where mtr_portfolio_id = 20614317 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20614317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943613, 0.05028977903634978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20614317_17-02-2025_17_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20614324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20614325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20614326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20614327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20614328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20614329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20614330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20614331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20614332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20614333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20614334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20614335, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20615941 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594055, 'mtr_portfolio_id': 20615941, 'created_at': datetime.datetime(2025, 2, 17, 18, 19, 1), 'result': '0.04804183858376754', 'result_long': None, 'result_double': None}] Qualite : 0.04804183858376754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20615941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20615941 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}" where mtr_portfolio_id = 20615941 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20615941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943614, 0.04804183858376754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20615941_17-02-2025_18_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20615944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20615945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20615946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20615947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20615948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20615949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20615950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20615951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20615952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20615953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20615954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20615955, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20616392 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594082, 'mtr_portfolio_id': 20616392, 'created_at': datetime.datetime(2025, 2, 17, 18, 32, 57), 'result': '0.044569883535429025', 'result_long': None, 'result_double': None}] Qualite : 0.044569883535429025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20616392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20616392 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}" where mtr_portfolio_id = 20616392 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20616392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943615, 0.044569883535429025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616392_17-02-2025_18_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20616395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616406, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20616912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594114, 'mtr_portfolio_id': 20616912, 'created_at': datetime.datetime(2025, 2, 17, 18, 46, 30), 'result': '0.052944677734900324', 'result_long': None, 'result_double': None}] Qualite : 0.052944677734900324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20616912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20616912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}" where mtr_portfolio_id = 20616912 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20616912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943616, 0.052944677734900324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20616912_17-02-2025_18_46_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20616961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20616962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20616963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20616964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20616965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20616966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20616967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20616968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20616969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20616970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20616971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20616972, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20617382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594155, 'mtr_portfolio_id': 20617382, 'created_at': datetime.datetime(2025, 2, 17, 19, 3), 'result': '0.03944870531546893', 'result_long': None, 'result_double': None}] Qualite : 0.03944870531546893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20617382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20617382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}" where mtr_portfolio_id = 20617382 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20617382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943617, 0.03944870531546893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617382_17-02-2025_19_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617419, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20617949 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594202, 'mtr_portfolio_id': 20617949, 'created_at': datetime.datetime(2025, 2, 17, 19, 16, 30), 'result': '0.05647628484828016', 'result_long': None, 'result_double': None}] Qualite : 0.05647628484828016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20617949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20617949 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}" where mtr_portfolio_id = 20617949 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20617949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943618, 0.05647628484828016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20617949_17-02-2025_19_16_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20617953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20617954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20617955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20617956, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20617957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20617958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20617959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20617960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20617961, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20617962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20617963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20617964, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20618403 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594234, 'mtr_portfolio_id': 20618403, 'created_at': datetime.datetime(2025, 2, 17, 19, 32, 59), 'result': '0.024385629310053863', 'result_long': None, 'result_double': None}] Qualite : 0.024385629310053863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20618403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20618403 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}" where mtr_portfolio_id = 20618403 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20618403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943619, 0.024385629310053863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20618403_17-02-2025_19_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20618410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20618411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20618412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20618413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20618414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20618415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20618416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20618417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20618418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20618419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20618420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20618421, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20619056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594278, 'mtr_portfolio_id': 20619056, 'created_at': datetime.datetime(2025, 2, 17, 19, 46, 58), 'result': '0.03570127362771072', 'result_long': None, 'result_double': None}] Qualite : 0.03570127362771072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20619056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20619056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}" where mtr_portfolio_id = 20619056 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20619056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943620, 0.03570127362771072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619056_17-02-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619096, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20619597 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594321, 'mtr_portfolio_id': 20619597, 'created_at': datetime.datetime(2025, 2, 17, 20, 2, 59), 'result': '0.0387327150760845', 'result_long': None, 'result_double': None}] Qualite : 0.0387327150760845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20619597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20619597 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}" where mtr_portfolio_id = 20619597 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20619597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943621, 0.0387327150760845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20619597_17-02-2025_20_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20619629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20619630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20619631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20619632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20619633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20619634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20619635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20619636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20619637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20619638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20619639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20619640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20620365 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594380, 'mtr_portfolio_id': 20620365, 'created_at': datetime.datetime(2025, 2, 17, 20, 16, 57), 'result': '0.043460360425658574', 'result_long': None, 'result_double': None}] Qualite : 0.043460360425658574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20620365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20620365 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}" where mtr_portfolio_id = 20620365 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20620365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943622, 0.043460360425658574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620365_17-02-2025_20_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20620368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620372, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620379, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20620922 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594423, 'mtr_portfolio_id': 20620922, 'created_at': datetime.datetime(2025, 2, 17, 20, 32, 59), 'result': '0.04028064145147253', 'result_long': None, 'result_double': None}] Qualite : 0.04028064145147253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20620922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20620922 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}" where mtr_portfolio_id = 20620922 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20620922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943623, 0.04028064145147253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20620922_17-02-2025_20_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20620954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20620955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20620956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20620957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20620958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20620959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20620960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20620961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20620962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20620963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20620964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20620965, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20621658 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594481, 'mtr_portfolio_id': 20621658, 'created_at': datetime.datetime(2025, 2, 17, 21, 8, 31), 'result': '0.05838019219771053', 'result_long': None, 'result_double': None}] Qualite : 0.05838019219771053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20621658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20621658 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}" where mtr_portfolio_id = 20621658 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20621658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943624, 0.05838019219771053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20621658_17-02-2025_21_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20621731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20621737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20621738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20621739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20621740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20621741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20621742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20621743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20621744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20621745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20621746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20621747, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20623013 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2594617, 'mtr_portfolio_id': 20623013, 'created_at': datetime.datetime(2025, 2, 17, 21, 36, 58), 'result': '0.03573001730286341', 'result_long': None, 'result_double': None}] Qualite : 0.03573001730286341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20623013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20623013 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}" where mtr_portfolio_id = 20623013 and dashboard_run_id = 1617283 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20623013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8943625, 0.03573001730286341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20623013_17-02-2025_21_36_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20623015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20623016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20623017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20623018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20623019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20623020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20623021, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20623022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20623023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20623024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20623025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20623026, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20594280,20594332,20594486,20594872,20595236,20595343,20595598,20595820,20596067,20596959,20597365,20597866,20598303,20598844,20599330,20600382,20600895,20601335,20601878,20602408,20602902,20603399,20604235,20605068,20605919,20606546,20608349,20608630,20608978,20610400,20610537,20610930,20611466,20612080,20612767,20613570,20614317,20615941,20616392,20616912,20617382,20617949,20618403,20619056,20619597,20620365,20620922,20621658,20623013) result : ((1338111973,), (1338112020,), (1338112066,), (1338112067,), (1338112099,), (1338112100,), (1338112101,), (1338112118,), (1338112143,), (1338112156,), (1338112158,), (1338112160,), (1338112166,), (1338112175,), (1338112177,), (1338112179,), (1338112181,), (1338112183,), (1338112185,), (1338112193,), (1338112197,), (1338112208,), (1338112210,), (1338112213,), (1338112226,), (1338112228,), (1338112240,), (1338112262,), (1338112268,), (1338112273,), (1338112309,), (1338112311,), (1338112328,), (1338112395,), (1338112410,), (1338112412,), (1338112414,), (1338112431,), (1338112433,), (1338112435,), (1338112439,), (1338112441,), (1338112442,), (1338112455,), (1338112456,), (1338112457,), (1338112458,), (1338112459,), (1338112460,), (1338112473,), (1338112474,), (1338112475,), (1338112497,), (1338112498,), (1338112499,), (1338112500,), (1338112501,), (1338112502,), (1338112515,), (1338112516,), (1338112517,), (1338112518,), (1338112519,), (1338112547,), (1338112548,), (1338112561,), (1338112562,), (1338112597,), (1338112608,), (1338112612,), (1338112613,), (1338112614,), (1338112615,), (1338112628,), (1338112629,), (1338112630,), (1338112631,), (1338112632,), (1338112633,), (1338112654,), (1338112656,), (1338112658,), (1338112686,), (1338112697,), (1338112700,), (1338112706,), (1338112856,), (1338112999,), (1338113316,), (1338113319,), (1338113326,), (1338113331,), (1338113333,), (1338113493,), (1338113338,), (1338113480,), (1338113486,), (1338113709,), (1338113712,), (1338113715,), (1338113722,), (1338113729,), (1338113730,), (1338114367,), (1338114491,), (1338114493,), (1338114495,), (1338114510,), (1338114512,), (1338114514,), (1338114531,), (1338114533,), (1338114535,), (1338114538,), (1338114540,), (1338114543,), (1338114553,), (1338114555,), (1338114557,), (1338114559,), (1338114562,), (1338114575,), (1338114577,), (1338114579,), (1338114581,), (1338114595,), (1338114598,), (1338114601,), (1338114604,), (1338114607,), (1338114623,), (1338114625,), (1338114628,), (1338114629,), (1338114669,), (1338114672,), (1338114674,), (1338114720,), (1338114699,), (1338114702,), (1338114708,), (1338114734,), (1338114736,), (1338114738,), (1338114740,), (1338114742,), (1338114750,), (1338114772,), (1338114774,), (1338114776,), (1338114778,), (1338114780,), (1338114979,), (1338115064,), (1338115061,), (1338115062,), (1338115063,), (1338115081,), (1338115082,), (1338115083,), (1338115084,), (1338115086,), (1338115088,), (1338115105,), (1338115106,), (1338115121,), (1338115124,), (1338115125,), (1338115155,), (1338115163,), (1338115166,), (1338115182,), (1338115183,), (1338115184,), (1338115186,), (1338115189,), (1338115193,), (1338115220,), (1338115222,), (1338115503,), (1338115384,), (1338115502,), (1338115523,), (1338115525,), (1338115527,), (1338115529,), (1338115554,), (1338115556,), (1338115558,), (1338115559,), (1338115560,), (1338115586,), (1338115587,), (1338115607,), (1338115608,), (1338115609,), (1338115610,), (1338115643,), (1338115644,), (1338115645,), (1338115664,), (1338115665,), (1338115666,), (1338115667,), (1338115669,), (1338115699,), (1338115700,), (1338115701,), (1338115734,), (1338115738,), (1338115777,), (1338115768,), (1338115771,), (1338115773,), (1338115775,), (1338115793,), (1338115796,), (1338115799,), (1338115815,), (1338115818,), (1338115821,), (1338115824,), (1338115826,), (1338115839,), (1338115991,), (1338115994,), (1338115997,), (1338115999,), (1338116001,), (1338116021,), (1338116026,), (1338116029,), (1338116044,), (1338116047,), (1338116207,), (1338116284,), (1338116343,), (1338116351,), (1338116360,), (1338116364,), (1338116500,), (1338116503,), (1338116506,), (1338116540,), (1338116542,), (1338116545,), (1338116549,), (1338116553,), (1338116572,), (1338116574,), (1338116577,), (1338116607,), (1338116612,), (1338116616,), (1338116622,), (1338116628,), (1338116636,), (1338116646,), (1338116649,), (1338116651,), (1338116656,), (1338116661,), (1338116666,), (1338116698,), (1338116699,), (1338116719,), (1338116724,), (1338116726,), (1338116736,), (1338116739,), (1338116741,), (1338116743,), (1338116747,), (1338116750,), (1338116796,), (1338116799,), (1338116801,), (1338116804,), (1338116806,), (1338116812,), (1338116842,), (1338116871,), (1338116875,), (1338116904,), (1338116907,), (1338116909,), (1338116911,), (1338116915,), (1338116677,), (1338116678,), (1338116680,), (1338116682,), (1338116684,), (1338116685,), (1338116689,), (1338116690,), (1338116694,), (1338116695,), (1338116707,), (1338116711,), (1338116715,), (1338116760,), (1338116770,), (1338116774,), (1338116778,), (1338116782,), (1338116786,), (1338116826,), (1338116831,), (1338116835,), (1338116838,), (1338116840,), (1338116852,), (1338116858,), (1338116862,), (1338116867,), (1338116933,), (1338116943,), (1338116946,), (1338116949,), (1338116952,), (1338116956,), (1338116989,), (1338116992,), (1338117002,), (1338117006,), (1338117008,), (1338117015,), (1338117048,), (1338117055,), (1338117058,), (1338117061,), (1338117106,), (1338117118,), (1338117124,), (1338117132,), (1338117140,), (1338117148,), (1338117176,), (1338117180,), (1338117188,), (1338117217,), (1338117222,), (1338117231,), (1338117235,), (1338117241,), (1338117274,), (1338117283,), (1338117335,), (1338117346,), (1338117350,), (1338117354,), (1338117358,), (1338117378,), (1338117380,), (1338117384,), (1338117387,), (1338117418,), (1338117425,), (1338117430,), (1338117434,), (1338117480,), (1338117463,), (1338117467,), (1338117472,), (1338117476,), (1338117500,), (1338117513,), (1338117516,), (1338117520,), (1338117523,), (1338117529,), (1338117555,), (1338117558,), (1338117610,), (1338117614,), (1338117617,), (1338117619,), (1338117621,), (1338117625,), (1338117644,), (1338117647,), (1338117656,), (1338117666,), (1338117672,), (1338117699,), (1338117702,), (1338117704,), (1338117707,), (1338117743,), (1338117746,), (1338117750,), (1338117753,), (1338117759,), (1338117765,), (1338117811,), (1338117814,), (1338117818,), (1338117822,), (1338117881,), (1338117884,), (1338117887,), (1338117924,), (1338117968,), (1338118098,), (1338118100,), (1338118253,), (1338118242,), (1338118245,), (1338118248,), (1338118250,), (1338118283,), (1338118303,), (1338118318,), (1338118321,), (1338118328,), (1338118354,), (1338118398,), (1338118401,), (1338118431,), (1338118434,), (1338118437,), (1338118439,), (1338118473,), (1338118484,), (1338118495,), (1338118502,), (1338118512,), (1338118562,), (1338118564,), (1338118567,), (1338118641,), (1338118643,), (1338118646,), (1338118649,), (1338118651,), (1338118654,), (1338118687,), (1338118689,), (1338118692,), (1338118695,), (1338118698,), (1338118702,), (1338118726,), (1338118728,), (1338118731,), (1338118734,), (1338118737,), (1338118767,), (1338118778,), (1338118780,), (1338118820,), (1338118822,), (1338118825,), (1338118828,), (1338118831,), (1338118956,), (1338118959,), (1338118962,), (1338118965,), (1338118969,), (1338118972,), (1338119003,), (1338119006,), (1338119009,), (1338119011,), (1338119013,), (1338119088,), (1338119103,), (1338119115,), (1338119120,), (1338119127,), (1338119138,), (1338119149,), (1338119154,), (1338119180,), (1338119161,), (1338119166,), (1338119172,), (1338119177,), (1338119205,), (1338119206,), (1338119213,), (1338119268,), (1338119278,), (1338119284,), (1338119288,), (1338119294,), (1338119298,), (1338119398,), (1338119574,), (1338119792,), (1338119923,), (1338119926,), (1338120093,), (1338120179,), (1338120246,), (1338120248,), (1338120251,), (1338120254,), (1338120824,), (1338120826,), (1338120829,), (1338120833,), (1338120839,), (1338121337,), (1338121427,), (1338121435,), (1338121438,), (1338121441,), (1338121543,), (1338121545,), (1338121547,), (1338121549,), (1338121576,), (1338121577,), (1338121579,), (1338121621,), (1338121666,), (1338121670,), (1338121673,), (1338121719,), (1338121722,), (1338121724,), (1338121725,), (1338121726,), (1338121729,), (1338121752,), (1338121754,), (1338121791,), (1338121793,), (1338121796,), (1338121799,), (1338121823,), (1338121824,), (1338121828,), (1338121832,), (1338121836,), (1338121866,), (1338121868,), (1338121871,), (1338121911,), (1338121913,), (1338121943,), (1338121944,), (1338121970,), (1338121971,), (1338121972,), (1338122004,), (1338122006,), (1338122008,), (1338122010,), (1338122013,), (1338122016,), (1338122047,), (1338122041,), (1338122042,), (1338122103,), (1338122105,), (1338122107,), (1338122108,), (1338122109,), (1338122158,), (1338122162,), (1338122165,), (1338122168,), (1338122171,), (1338122176,), (1338122195,), (1338122196,), (1338122198,), (1338122247,), (1338122248,), (1338122250,), (1338122252,), (1338122255,), (1338122290,), (1338122299,), (1338122302,), (1338122305,), (1338122308,), (1338122311,), (1338122329,), (1338122331,), (1338122334,), (1338122366,), (1338122369,), (1338122373,), (1338122375,), (1338122377,), (1338122380,), (1338122405,), (1338122406,), (1338122409,), (1338122412,), (1338122415,), (1338122418,), (1338122444,), (1338122446,), (1338122447,), (1338122482,), (1338122487,), (1338122496,), (1338122499,), (1338122532,), (1338122533,), (1338122536,), (1338122539,), (1338122542,), (1338122551,), (1338122587,), (1338122595,), (1338122599,), (1338122636,), (1338122637,), (1338122640,), (1338122643,), (1338122646,), (1338122649,), (1338122669,), (1338122672,), (1338122674,), (1338122676,), (1338122744,), (1338122733,), (1338122736,), (1338122739,), (1338122742,), (1338122839,), (1338122842,), (1338122848,), (1338122853,), (1338122884,), (1338122888,), (1338122891,), (1338122894,), (1338122930,), (1338122935,), (1338122981,), (1338122983,), (1338122986,), (1338123048,), (1338123050,), (1338123052,), (1338123146,), (1338123148,), (1338123182,), (1338123183,), (1338123239,), (1338123240,), (1338123243,), (1338123265,), (1338123352,), (1338123358,), (1338123361,), (1338123414,), (1338123416,), (1338123419,), (1338123422,), (1338123423,), (1338123456,), (1338123459,), (1338123462,), (1338123464,), (1338123500,), (1338123505,), (1338123510,), (1338123517,), (1338123524,), (1338123530,), (1338123568,), (1338129881,), (1338129952,), (1338129956,), (1338130081,), (1338130085,), (1338130089,), (1338130108,), (1338130112,), (1338130168,), (1338130173,), (1338130177,), (1338130199,), (1338130201,), (1338130269,), (1338130280,), (1338130290,), (1338130477,), (1338130478,), (1338130481,), (1338130485,), (1338130488,), (1338130519,), (1338130521,), (1338130524,), (1338130526,), (1338130527,), (1338130530,), (1338130570,), (1338130572,), (1338130575,), (1338130578,), (1338130648,), (1338130659,), (1338130662,), (1338130664,), (1338130668,), (1338130674,), (1338130733,), (1338130736,), (1338130739,), (1338130743,), (1338130746,), (1338130752,), (1338130775,), (1338130782,), (1338130785,), (1338130790,), (1338130829,), (1338130830,), (1338130833,), (1338130835,), (1338130839,), (1338130843,), (1338130867,), (1338130871,), (1338130874,), (1338130876,), (1338130915,), (1338130925,), (1338130933,), (1338130938,), (1338131012,), (1338130997,), (1338130999,), (1338131004,), (1338131007,), (1338131009,), (1338131205,), (1338131206,), (1338131209,), (1338131211,), (1338131244,), (1338131246,), (1338131249,), (1338131254,), (1338131257,), (1338131278,), (1338131280,), (1338131283,), (1338131286,), (1338131309,), (1338131310,), (1338131432,), (1338131437,), (1338131504,), (1338131556,), (1338131559,), (1338131562,), (1338131608,), (1338131611,), (1338131655,), (1338131657,), (1338131659,), (1338131662,), (1338131683,), (1338131685,), (1338131688,), (1338131702,), (1338131706,), (1338131781,), (1338131783,), (1338131796,), (1338131798,), (1338131891,), (1338131893,), (1338131896,), (1338131899,), (1338131902,), (1338131941,), (1338131944,), (1338131948,), (1338131952,), (1338131992,), (1338132000,), (1338132013,), (1338132023,), (1338132027,), (1338132032,), (1338132095,), (1338132067,), (1338132070,), (1338132074,), (1338132092,), (1338132166,), (1338132169,), (1338132172,), (1338132175,), (1338132187,), (1338132190,), (1338132406,), (1338132568,), (1338132598,), (1338132601,), (1338132604,), (1338132608,), (1338132956,), (1338132958,), (1338132961,), (1338132999,), (1338133001,), (1338133004,), (1338133007,), (1338133009,), (1338133012,), (1338133040,), (1338133043,), (1338133046,), (1338133049,), (1338133052,), (1338133054,), (1338133092,), (1338133094,), (1338133097,), (1338133100,), (1338133330,), (1338133342,), (1338133347,), (1338133350,), (1338133352,), (1338133361,), (1338133386,), (1338133389,), (1338133392,), (1338133430,), (1338133432,), (1338133435,), (1338133438,), (1338133463,), (1338133465,), (1338133468,), (1338133470,), (1338133474,), (1338133479,), (1338133516,), (1338133518,), (1338133521,), (1338133541,), (1338133628,), (1338133630,), (1338133633,), (1338133636,), (1338134140,), (1338134142,), (1338134145,), (1338134148,), (1338134155,), (1338134251,), (1338134347,), (1338134349,), (1338134353,), (1338134356,), (1338134393,), (1338134386,), (1338134388,), (1338134390,), (1338134434,), (1338134446,), (1338134449,), (1338134452,), (1338134456,), (1338134463,), (1338134485,), (1338134490,), (1338134501,), (1338134505,), (1338134800,), (1338134878,), (1338134945,), (1338135153,), (1338135265,), (1338135406,), (1338135608,), (1338135610,), (1338135794,), (1338135836,), (1338135838,), (1338135850,), (1338135993,), (1338135996,), (1338135999,), (1338136002,), (1338136004,), (1338136029,), (1338136031,), (1338136034,), (1338136037,), (1338136041,), (1338136053,), (1338136076,), (1338136078,), (1338136082,), (1338136085,), (1338136087,), (1338136194,), (1338136197,), (1338136200,), (1338136203,), (1338136211,), (1338136218,), (1338136238,), (1338136261,), (1338136264,), (1338136267,), (1338136292,), (1338136294,), (1338136301,), (1338136310,), (1338136313,), (1338136318,), (1338136353,), (1338136356,), (1338136359,), (1338136442,), (1338136448,), (1338136451,), (1338136453,), (1338136456,), (1338136459,), (1338136493,), (1338136536,), (1338136625,), (1338136710,), (1338136817,), (1338136826,), (1338136830,), (1338136842,), (1338136851,), (1338136855,), (1338136897,), (1338136884,), (1338136886,), (1338136889,), (1338136892,), (1338136895,), (1338136932,), (1338136935,), (1338136938,), (1338136941,), (1338136976,), (1338136979,), (1338136982,), (1338136985,), (1338136987,), (1338136990,), (1338137028,), (1338137030,), (1338137042,), (1338137146,), (1338137148,), (1338137151,), (1338137181,), (1338137183,), (1338137186,), (1338137240,), (1338137242,), (1338137245,), (1338137248,), (1338137290,), (1338137293,), (1338137297,), (1338137301,), (1338137305,), (1338137311,), (1338137503,), (1338137505,), (1338137508,), (1338137511,), (1338137513,), (1338137550,), (1338137552,), (1338137555,), (1338137558,), (1338137594,), (1338137597,), (1338137610,), (1338137613,), (1338137615,), (1338137702,), (1338137745,), (1338137748,), (1338137751,), (1338137790,), (1338137794,), (1338137797,), (1338137800,), (1338137802,), (1338137804,), (1338137864,), (1338137866,), (1338137869,), (1338137872,), (1338137874,), (1338137914,), (1338137917,), (1338137924,), (1338137927,), (1338137930,), (1338137955,), (1338137960,), (1338137964,), (1338137969,), (1338137972,), (1338137978,), (1338138003,), (1338137996,), (1338137999,), (1338138214,), (1338138220,), (1338138225,), (1338138229,), (1338138233,), (1338138242,), (1338138290,), (1338138293,), (1338138297,), (1338138301,), (1338138336,), (1338138339,), (1338138354,), (1338138358,), (1338138362,), (1338138364,), (1338138387,), (1338138390,), (1338138400,), (1338138404,), (1338138406,), (1338138423,), (1338138456,), (1338138463,), (1338138468,), (1338138472,), (1338138682,), (1338138686,), (1338138691,), (1338138695,), (1338138697,), (1338138703,), (1338138766,), (1338138769,), (1338138772,), (1338138776,), (1338138779,), (1338138807,), (1338138810,), (1338138814,), (1338138818,), (1338138861,), (1338138893,), (1338138900,), (1338138904,), (1338138909,), (1338138914,), (1338138959,), (1338138962,), (1338138968,), (1338138973,), (1338138998,), (1338139048,), (1338139051,), (1338139057,), (1338139068,), (1338139124,), (1338139126,), (1338139147,), (1338139151,), (1338139154,), (1338139157,), (1338139161,), (1338139189,), (1338139195,), (1338139203,), (1338139210,), (1338139218,), (1338139267,), (1338139252,), (1338139255,), (1338139260,), (1338139264,), (1338139320,), (1338139345,), (1338139353,), (1338139356,), (1338139531,), (1338139537,), (1338139543,), (1338139555,), (1338139560,), (1338139611,), (1338139649,), (1338140528,), (1338140532,), (1338140535,), (1338140537,), (1338140598,), (1338140600,), (1338140602,), (1338140605,), (1338140608,), (1338140663,), (1338140664,), (1338140666,), (1338140670,), (1338140760,), (1338140761,), (1338140765,), (1338140772,), (1338140814,), (1338140817,), (1338140832,), (1338140931,), (1338140933,), (1338140936,), (1338140940,), (1338140949,), (1338140993,), (1338140998,), (1338141003,), (1338141006,), (1338141011,), (1338141083,), (1338141086,), (1338141093,), (1338141097,), (1338141434,), (1338141515,), (1338141612,), (1338141679,), (1338141681,), (1338141748,), (1338142010,), (1338142020,), (1338142026,), (1338142031,), (1338142035,), (1338142037,), (1338142143,), (1338142241,), (1338142135,), (1338142140,), (1338142159,), (1338142162,), (1338142164,), (1338142167,), (1338142169,), (1338142177,), (1338142219,), (1338142250,), (1338142254,), (1338142256,), (1338142308,), (1338142533,), (1338142878,), (1338142926,), (1338142977,), (1338143226,), (1338143228,), (1338143230,), (1338143232,), (1338143233,), (1338143235,), (1338143278,), (1338143279,), (1338143281,), (1338143283,), (1338143284,), (1338143355,), (1338143361,), (1338143374,), (1338143489,), (1338143495,), (1338143502,), (1338143508,), (1338143511,), (1338143517,), (1338143571,), (1338143573,), (1338143579,), (1338143596,), (1338143603,), (1338143636,), (1338143640,), (1338143651,), (1338143652,), (1338143655,), (1338143695,), (1338143696,), (1338143698,), (1338143700,), (1338143701,), (1338143754,), (1338143760,), (1338143764,), (1338143768,), (1338143862,), (1338143866,), (1338143870,), (1338143874,), (1338143878,), (1338143880,), (1338143899,), (1338143900,), (1338143901,), (1338143954,), (1338143978,), (1338143985,), (1338144003,), (1338144042,), (1338144044,), (1338144053,), (1338144068,), (1338144082,), (1338144091,), (1338144094,), (1338144096,), (1338144100,), (1338144131,), (1338144126,), (1338144127,), (1338144129,), (1338144157,), (1338144162,), (1338144166,), (1338144169,), (1338144172,), (1338144186,), (1338144262,), (1338144282,), (1338144301,), (1338144307,), (1338144317,), (1338144361,), (1338144366,), (1338144371,), (1338144373,), (1338144398,), (1338144400,), (1338144403,), (1338144406,), (1338144408,), (1338144415,), (1338144495,), (1338144498,), (1338144501,), (1338144510,), (1338144514,), (1338144708,), (1338144710,), (1338144713,), (1338144716,), (1338144726,), (1338144767,), (1338144769,), (1338144772,), (1338144775,), (1338144822,), (1338144828,), (1338144831,), (1338144834,), (1338144840,), (1338144868,), (1338144870,), (1338144873,), (1338144876,), (1338144878,), (1338144913,), (1338144915,), (1338144918,), (1338144921,), (1338145206,), (1338145209,), (1338145212,), (1338145217,), (1338145219,), (1338145223,), (1338145249,), (1338145253,), (1338145256,), (1338145267,), (1338145303,), (1338145306,), (1338145309,), (1338145313,), (1338145315,), (1338145318,), (1338145333,), (1338145340,), (1338145351,), (1338145359,), (1338145361,), (1338145381,), (1338145376,), (1338145378,), (1338145683,), (1338145687,), (1338145694,), (1338145696,), (1338145700,), (1338145735,), (1338145737,), (1338145740,), (1338145743,), (1338145745,), (1338145749,), (1338145769,), (1338145771,), (1338145774,), (1338145777,), (1338145822,), (1338145825,), (1338145828,), (1338145831,), (1338145833,), (1338145856,), (1338145858,), (1338145871,), (1338146154,), (1338146213,), (1338146216,), (1338146219,), (1338146277,), (1338146280,), (1338146330,), (1338146332,), (1338146335,), (1338146383,), (1338146386,), (1338146390,), (1338146394,), (1338146397,), (1338146401,), (1338146437,), (1338146440,), (1338146444,), (1338146448,), (1338146450,), (1338146691,), (1338146693,), (1338146696,), (1338146699,), (1338146702,), (1338146756,), (1338146759,), (1338146762,), (1338146811,), (1338146826,), (1338146829,), (1338146983,), (1338146991,), (1338147006,), (1338147057,), (1338147066,), (1338147077,), (1338147081,), (1338147202,), (1338147177,), (1338147180,), (1338147183,), (1338147186,), (1338147192,), (1338147230,), (1338147233,), (1338147236,), (1338147239,), (1338147241,), (1338147244,), (1338147284,), (1338147286,), (1338147289,), (1338147548,), (1338147787,), (1338147789,), (1338147792,), (1338147795,), (1338147798,), (1338147800,), (1338147835,), (1338147838,), (1338147841,), (1338148050,), (1338148053,), (1338148056,), (1338148059,), (1338148061,), (1338148064,), (1338148095,), (1338148097,), (1338148100,), (1338148103,), (1338148105,), (1338148135,), (1338148137,), (1338148140,), (1338148143,), (1338148145,), (1338148200,), (1338148288,), (1338148291,), (1338148294,), (1338148296,), (1338148299,), (1338148349,), (1338148355,), (1338148358,), (1338148360,), (1338148436,), (1338148437,), (1338148439,), (1338148441,), (1338159502,), (1338159500,), (1338159527,), (1338159532,), (1338160715,), (1338160718,), (1338160748,), (1338160752,), (1338160756,), (1338160760,), (1338160785,), (1338160788,), (1338160792,), (1338160796,), (1338160800,), (1338160820,), (1338160822,), (1338160826,), (1338160935,), (1338160938,), (1338160941,), (1338161130,), (1338161155,), (1338161178,), (1338161181,), (1338161183,), (1338161451,), (1338161285,), (1338161289,), (1338161291,), (1338161381,), (1338161515,), (1338161518,), (1338161521,), (1338161524,), (1338161529,), (1338161757,), (1338161764,), (1338161771,), (1338161774,), (1338161798,), (1338161800,), (1338161803,), (1338163539,), (1338163552,), (1338163791,), (1338163792,), (1338163794,), (1338163796,), (1338163832,), (1338163834,), (1338163836,), (1338163837,), (1338163869,), (1338163872,), (1338163874,), (1338163876,), (1338163879,), (1338163906,), (1338163907,), (1338163909,), (1338163912,), (1338163949,), (1338163951,), (1338163953,), (1338163955,), (1338163958,), (1338164017,), (1338164009,), (1338164010,), (1338164013,), (1338164015,), (1338164110,), (1338164151,), (1338164157,), (1338164158,), (1338164183,), (1338164184,), (1338164749,), (1338164751,), (1338164764,), (1338164828,), (1338164829,), (1338164835,), (1338165143,), (1338165211,), (1338165290,), (1338165368,), (1338165463,), (1338165805,), (1338165806,), (1338165810,), (1338166136,), (1338166173,), (1338166197,), (1338166371,), (1338166431,), (1338166443,), (1338166479,), (1338166485,), (1338166490,), (1338166492,), (1338166493,), (1338166496,), (1338166530,), (1338166532,), (1338166538,), (1338166541,), (1338166622,), (1338166623,), (1338166626,), (1338166631,), (1338166677,), (1338166685,), (1338166687,), (1338166689,), (1338166713,), (1338166715,), (1338166717,), (1338166718,), (1338166720,), (1338166744,), (1338166748,), (1338166750,), (1338174079,), (1338173907,), (1338174076,), (1338174077,), (1338174105,), (1338174106,), (1338174108,), (1338174111,), (1338174114,), (1338174141,), (1338174142,), (1338174144,), (1338174146,), (1338174176,), (1338174178,), (1338174181,), (1338174183,), (1338174412,), (1338174416,), (1338174418,), (1338174524,), (1338174487,), (1338174498,), (1338174500,), (1338174508,), (1338174569,), (1338174570,), (1338174572,), (1338174574,), (1338174575,), (1338174696,), (1338174697,), (1338174711,), (1338174712,), (1338174738,), (1338174745,), (1338174749,), (1338174789,), (1338174793,), (1338174799,), (1338174803,), (1338174805,), (1338174848,), (1338174854,), (1338174858,), (1338174864,), (1338174868,), (1338175107,), (1338175111,), (1338175116,), (1338175121,), (1338175142,), (1338175145,), (1338175148,), (1338175152,), (1338175178,), (1338175180,), (1338175183,), (1338175186,), (1338175191,), (1338175231,), (1338175234,), (1338175240,), (1338175246,), (1338175250,), (1338175280,), (1338175288,), (1338175290,), (1338175297,), (1338175734,), (1338175738,), (1338175743,), (1338175746,), (1338175750,), (1338175756,), (1338175785,), (1338175787,), (1338175790,), (1338176032,), (1338176038,), (1338176042,), (1338176063,), (1338176069,), (1338176074,), (1338176095,), (1338176097,), (1338176137,), (1338176124,), (1338176128,), (1338176132,), (1338176135,), (1338176463,), (1338176466,), (1338176470,), (1338176477,), (1338176483,), (1338176507,), (1338176510,), (1338176514,), (1338176527,), (1338176533,), (1338176589,), (1338176592,), (1338176596,), (1338176602,), (1338176922,), (1338177006,), (1338177130,), (1338177194,), (1338177198,), (1338177640,), (1338177750,), (1338177840,), (1338177936,), (1338178076,), (1338178520,), (1338178585,), (1338178592,), (1338178717,), (1338178719,), (1338178723,), (1338178727,), (1338178729,), (1338178750,), (1338178752,), (1338178755,), (1338178758,), (1338178761,), (1338178765,), (1338178782,), (1338178784,), (1338178794,), (1338178834,), (1338178837,), (1338178840,), (1338178843,), (1338179117,), (1338179159,), (1338179206,), (1338179208,), (1338179212,), (1338179216,), (1338179220,), (1338179223,), (1338179267,), (1338179270,), (1338179274,), (1338179302,), (1338179305,), (1338179310,), (1338179313,), (1338179315,), (1338179320,), (1338179352,), (1338179338,), (1338179341,), (1338179345,), (1338179349,), (1338179670,), (1338179674,), (1338179678,), (1338179689,), (1338179736,), (1338179740,), (1338179744,), (1338179749,), (1338179751,), (1338179908,), (1338179918,), (1338180031,), (1338180199,), (1338180399,), (1338180622,), (1338180624,), (1338180665,), (1338180746,), (1338180748,), (1338180751,), (1338180754,), (1338180756,), (1338180777,), (1338180780,), (1338180784,), (1338180793,), (1338180796,), (1338180842,), (1338180844,), (1338180847,), (1338180940,), (1338180941,), (1338180959,), (1338180961,), (1338180964,), (1338180967,), (1338180971,), (1338180973,), (1338181098,), (1338181101,), (1338181105,), (1338181109,), (1338181114,), (1338181161,), (1338181163,), (1338181167,), (1338181171,), (1338181228,), (1338181230,), (1338181233,), (1338181236,), (1338181239,), (1338181242,), (1338181261,), (1338181263,), (1338181266,), (1338181331,), (1338181334,), (1338181390,), (1338181396,), (1338181399,), (1338181402,), (1338181404,), (1338181428,), (1338181431,), (1338181434,), (1338181438,), (1338181442,), (1338181446,), (1338181713,), (1338181675,), (1338181694,), (1338181702,), (1338181744,), (1338181747,), (1338181751,), (1338181753,), (1338181755,), (1338181927,), (1338181981,), (1338181987,), (1338181990,), (1338181992,), (1338182015,), (1338182114,), (1338182115,), (1338182119,), (1338182122,), (1338182145,), (1338182148,), (1338182151,), (1338182155,), (1338182200,), (1338182202,), (1338182207,), (1338182214,), (1338182218,), (1338182221,), (1338182481,), (1338182486,), (1338182488,), (1338182491,), (1338182552,), (1338182556,), (1338182572,), (1338182601,), (1338182603,), (1338182606,), (1338182608,), (1338182614,), (1338182618,), (1338182633,), (1338182635,), (1338182638,), (1338182643,), (1338182672,), (1338182674,), (1338182677,), (1338182680,), (1338182708,), (1338182715,), (1338182718,), (1338182721,), (1338182724,), (1338182727,), (1338182743,), (1338182745,), (1338182748,), (1338182751,), (1338182762,), (1338182768,), (1338182803,), (1338182805,), (1338182808,), (1338182811,), (1338182847,), (1338182849,), (1338182852,), (1338182896,), (1338182876,), (1338182878,), (1338182881,), (1338182889,), (1338182893,), (1338182911,), (1338182967,), (1338183069,), (1338183171,), (1338183199,), (1338183205,), (1338183224,), (1338183226,), (1338183233,), (1338183307,), (1338183310,), (1338183315,), (1338183372,), (1338183375,), (1338183488,), (1338183504,), (1338183510,), (1338183515,), (1338183531,), (1338183618,), (1338183621,), (1338183625,), (1338183633,), (1338183662,), (1338183666,), (1338183673,), (1338183677,), (1338183681,), (1338183684,), (1338183719,), (1338183725,), (1338183730,), (1338183736,), (1338183745,), (1338183753,), (1338183783,), (1338183788,), (1338183792,), (1338183853,), (1338183857,), (1338183866,), (1338183884,), (1338183888,), (1338183909,), (1338183911,), (1338183913,), (1338183915,), (1338183918,), (1338183922,), (1338183982,), (1338183993,), (1338183996,), (1338183998,), (1338184001,), (1338184058,), (1338184061,), (1338184064,), (1338184067,), (1338184074,), (1338184141,), (1338184146,), (1338184240,), (1338184339,), (1338184433,), (1338184536,), (1338184840,), (1338184944,), (1338185040,), (1338185129,), (1338185196,), (1338185177,), (1338185181,), (1338185186,), (1338185189,), (1338185193,), (1338185221,), (1338185227,), (1338185230,), (1338185233,), (1338185235,), (1338185271,), (1338185273,), (1338185275,), (1338185278,), (1338185312,), (1338185316,), (1338185318,), (1338185320,), (1338185330,), (1338185340,), (1338185427,), (1338185428,), (1338185429,), (1338185431,), (1338185439,), (1338186144,), (1338186148,), (1338186253,), (1338186612,), (1338186613,), (1338186614,), (1338186616,), (1338186619,), (1338186621,), (1338186656,), (1338186661,), (1338186664,), (1338186665,), (1338186667,), (1338186671,), (1338186706,), (1338186707,), (1338186708,), (1338186710,), (1338186752,), (1338186753,), (1338186754,), (1338186756,), (1338186759,), (1338186811,), (1338186820,), (1338186836,), (1338186843,), (1338186856,), (1338186858,), (1338186983,), (1338187067,), (1338187170,), (1338187250,), (1338187256,), (1338187282,), (1338187284,), (1338187287,), (1338187290,), (1338187293,), (1338187354,), (1338187369,), (1338187375,), (1338187402,), (1338187409,), (1338187619,), (1338187621,), (1338187624,), (1338187627,), (1338187629,), (1338187682,), (1338187672,), (1338187675,), (1338187678,), (1338187680,), (1338187812,), (1338187896,), (1338187981,), (1338188051,), (1338188089,), (1338188091,), (1338188094,), (1338188097,), (1338188099,), (1338188102,), (1338188183,), (1338188193,), (1338188196,), (1338188199,), (1338188202,), (1338188391,), (1338188431,), (1338188484,), (1338188497,), (1338188501,), (1338188506,), (1338188508,), (1338188546,), (1338188552,), (1338188612,), (1338188614,), (1338188617,), (1338188684,), (1338188686,), (1338188689,), (1338188777,), (1338188779,), (1338188798,), (1338188901,), (1338189004,), (1338189084,), (1338189568,), (1338189570,), (1338189573,), (1338189580,), (1338189870,), (1338189879,), (1338189939,), (1338189960,), (1338189962,), (1338189966,), (1338189983,), (1338189985,), (1338189991,), (1338189995,), (1338190003,), (1338190007,), (1338190026,), (1338190030,), (1338190033,), (1338190054,), (1338196234,), (1338196347,), (1338196467,), (1338196469,), (1338196472,), (1338196474,), (1338196480,), (1338196484,), (1338196503,), (1338196504,), (1338196506,), (1338197156,), (1338197157,), (1338197168,), (1338197338,), (1338197352,), (1338197433,), (1338197434,), (1338197610,), (1338197612,), (1338197613,), (1338197647,), (1338197650,), (1338197653,), (1338197655,), (1338197840,), (1338197842,), (1338197843,), (1338197844,), (1338197845,), (1338197903,), (1338197922,), (1338197923,), (1338197931,), (1338197933,), (1338197935,), (1338197982,), (1338197983,), (1338197985,), (1338198028,), (1338198029,), (1338198031,), (1338198033,), (1338198034,), (1338198036,), (1338198255,), (1338198256,), (1338198261,), (1338198265,), (1338198267,), (1338198285,), (1338198287,), (1338198289,), (1338198331,), (1338198316,), (1338198321,), (1338198327,), (1338198329,), (1338198415,), (1338198416,), (1338198418,), (1338198487,), (1338198488,), (1338198490,), (1338198492,), (1338198946,), (1338198947,), (1338198949,), (1338198951,), (1338199157,), (1338199184,), (1338199276,), (1338199278,), (1338199280,), (1338199301,), (1338199302,), (1338199304,), (1338199306,), (1338199528,), (1338199549,), (1338199551,), (1338199553,), (1338199623,), (1338199625,), (1338199628,), (1338199631,), (1338199634,), (1338199653,), (1338199655,), (1338199658,), (1338199661,), (1338199665,), (1338199689,), (1338199695,), (1338199699,), (1338199702,), (1338199704,), (1338199707,), (1338199751,), (1338199754,), (1338199757,), (1338199760,), (1338199778,), (1338199780,), (1338199783,), (1338199790,), (1338199796,), (1338199824,), (1338199830,), (1338199841,), (1338199982,), (1338200003,), (1338200283,), (1338200287,), (1338200290,), (1338200337,), (1338200339,), (1338200342,), (1338200345,), (1338200347,), (1338200352,), (1338200495,), (1338200367,), (1338200369,), (1338200372,), (1338200488,), (1338200576,), (1338200578,), (1338200581,), (1338200584,), (1338200607,), (1338200609,), (1338200612,), (1338200615,), (1338200617,), (1338200621,), (1338200646,), (1338200650,), (1338200653,), (1338200655,), (1338200707,), (1338200710,), (1338200713,), (1338200717,), (1338200765,), (1338200769,), (1338200808,), (1338200815,), (1338200819,), (1338200823,), (1338200826,), (1338200830,), (1338200856,), (1338200859,), (1338200863,), (1338200867,), (1338200917,), (1338200920,), (1338200922,), (1338200924,), (1338200927,), (1338200932,), (1338200956,), (1338200959,), (1338200963,), (1338200967,), (1338200969,), (1338200972,), (1338201004,), (1338201006,), (1338201008,), (1338201055,), (1338201061,), (1338201064,), (1338201067,), (1338201070,), (1338201073,), (1338201103,), (1338201105,), (1338201112,), (1338201114,), (1338201116,), (1338201192,), (1338201194,), (1338201197,), (1338201200,), (1338201203,), (1338201299,), (1338201302,), (1338201306,), (1338201334,), (1338202509,), (1338202336,), (1338202418,), (1338202501,), (1338202508,), (1338202755,), (1338202811,), (1338202814,), (1338202821,), (1338202825,), (1338202874,), (1338202875,), (1338202877,), (1338202879,), (1338202882,), (1338202886,), (1338202920,), (1338202922,), (1338202925,), (1338202928,), (1338202962,), (1338202967,), (1338202968,), (1338202971,), (1338203008,), (1338203011,), (1338203014,), (1338203016,), (1338203019,), (1338203021,), (1338203050,), (1338203052,), (1338203055,), (1338203058,), (1338203060,), (1338203554,), (1338203557,), (1338203561,), (1338203565,), (1338203585,), (1338203590,), (1338203870,), (1338203873,), (1338203876,), (1338203879,), (1338203934,), (1338203943,), (1338203947,), (1338203951,), (1338203953,), (1338203958,), (1338203982,), (1338203985,), (1338203990,), (1338203994,), (1338203998,), (1338204241,), (1338204251,), (1338204258,), (1338204261,), (1338204342,), (1338204343,), (1338204374,), (1338204408,), (1338204414,), (1338204524,), (1338204533,), (1338204537,), (1338204542,), (1338204555,), (1338204612,), (1338204613,), (1338204616,), (1338204617,), (1338204621,), (1338204624,), (1338204660,), (1338204649,), (1338204652,), (1338204655,), (1338204658,), (1338204702,), (1338204710,), (1338204716,), (1338204726,), (1338204728,), (1338204731,), (1338204755,), (1338204757,), (1338204760,), (1338204789,), (1338204803,), (1338204806,), (1338204809,), (1338204818,), (1338205500,), (1338205502,), (1338205506,), (1338205509,), (1338205511,), (1338205814,), (1338205820,), (1338205824,), (1338205858,), (1338205860,), (1338205863,), (1338205866,), (1338205868,), (1338205873,), (1338205887,), (1338205890,), (1338205893,), (1338205901,), (1338205908,), (1338205923,), (1338205925,), (1338205928,), (1338205956,), (1338205959,), (1338205965,), (1338205968,), (1338205969,), (1338205972,), (1338205984,), (1338205986,), (1338205989,), (1338205992,), (1338205995,), (1338206019,), (1338206021,), (1338206024,), (1338206049,), (1338206051,), (1338206054,), (1338206057,), (1338206059,), (1338206083,), (1338206085,), (1338206089,), (1338206092,), (1338206094,), (1338206098,), (1338206116,), (1338206119,), (1338206122,), (1338206125,), (1338206166,), (1338206161,), (1338206163,), (1338206210,), (1338206214,), (1338206216,), (1338206222,), (1338206228,), (1338206237,), (1338206268,), (1338206270,), (1338206272,), (1338206273,), (1338206274,), (1338206290,), (1338206294,), (1338206297,), (1338206299,), (1338206321,), (1338206325,), (1338206385,), (1338207084,), (1338207085,), (1338207277,), (1338207642,), (1338207649,), (1338207652,), (1338207655,), (1338207658,), (1338207678,), (1338207680,), (1338207683,), (1338207686,), (1338207714,), (1338207716,), (1338207719,), (1338207722,), (1338207724,), (1338207747,), (1338207751,), (1338207755,), (1338207760,), (1338207763,), (1338207767,), (1338207795,), (1338207811,), (1338207815,), (1338207818,), (1338207842,), (1338207998,), (1338207990,), (1338207992,), (1338207995,), (1338208096,), (1338208133,), (1338208142,), (1338208146,), (1338208147,), (1338208149,), (1338208186,), (1338208188,), (1338208191,), (1338208194,), (1338208204,), (1338208463,), (1338208888,), (1338208890,), (1338208893,), (1338208896,), (1338208946,), (1338208953,), (1338208956,), (1338208990,), (1338209012,), (1338209026,), (1338209097,), (1338209099,), (1338209102,), (1338209105,), (1338209134,), (1338209136,), (1338209139,), (1338209187,), (1338209195,), (1338209198,), (1338209201,), (1338209203,), (1338209206,), (1338209228,), (1338209231,), (1338209235,), (1338209239,), (1338209242,), (1338209246,), (1338209265,), (1338209268,), (1338209272,), (1338209275,), (1338209292,), (1338209294,), (1338209297,), (1338209300,), (1338209328,), (1338209357,), (1338209358,), (1338209404,), (1338209407,), (1338209410,), (1338209413,), (1338209440,), (1338209451,), (1338209454,), (1338209542,), (1338209584,), (1338209587,), (1338209590,), (1338209594,), (1338209599,), (1338209627,), (1338209629,), (1338209688,), (1338209731,), (1338209733,), (1338209736,), (1338209765,), (1338209756,), (1338209760,), (1338209763,), (1338209802,), (1338209806,), (1338209808,), (1338209810,), (1338209813,), (1338209816,), (1338209832,), (1338209836,), (1338209885,), (1338209887,), (1338209896,), (1338209907,), (1338209924,), (1338210714,), (1338210718,), (1338210721,), (1338210723,), (1338211007,), (1338211009,), (1338211012,), (1338211015,), (1338211018,), (1338211128,), (1338211139,), (1338211142,), (1338211145,), (1338211187,), (1338211190,), (1338211193,), (1338211196,), (1338211197,), (1338211213,), (1338211215,), (1338211218,), (1338211221,), (1338211223,), (1338211230,), (1338211349,), (1338211354,), (1338211357,), (1338211360,), (1338211363,), (1338211369,), (1338211397,), (1338211399,), (1338211402,), (1338211405,), (1338211423,), (1338211425,), (1338211429,), (1338211448,), (1338211454,), (1338211626,), (1338211630,), (1338211654,), (1338211693,), (1338211684,), (1338211687,), (1338211690,), (1338211798,), (1338211809,), (1338211817,), (1338211818,), (1338211866,), (1338211868,), (1338211871,), (1338211874,), (1338211876,), (1338211895,), (1338211897,), (1338211900,), (1338211958,), (1338212067,), (1338212874,), (1338212878,), (1338212880,), (1338212976,), (1338213018,), (1338213131,), (1338213133,), (1338213158,), (1338213161,), (1338213163,), (1338213166,), (1338213169,), (1338213172,), (1338213216,), (1338213218,), (1338213221,), (1338213224,), (1338213227,), (1338213241,), (1338213243,), (1338213246,), (1338213249,), (1338213304,), (1338213306,), (1338213309,), (1338213311,), (1338213313,), (1338213328,), (1338213330,), (1338213333,), (1338213336,), (1338213339,), (1338213346,), (1338213523,), (1338213525,), (1338213528,), (1338213542,), (1338213547,), (1338213551,), (1338213580,), (1338213582,), (1338213585,), (1338213588,), (1338213590,), (1338213623,), (1338213626,), (1338213635,), (1338213643,), (1338213644,), (1338213646,), (1338213662,), (1338213663,), (1338213665,), (1338213699,), (1338213690,), (1338213691,), (1338213693,), (1338213695,), (1338213968,), (1338213970,), (1338213972,), (1338213973,), (1338213975,), (1338214002,), (1338214004,), (1338214006,), (1338214008,), (1338214031,), (1338214032,), (1338214037,), (1338214039,), (1338214042,), (1338214044,), (1338214074,), (1338214076,), (1338214079,), (1338214082,), (1338214084,), (1338214087,), (1338214118,), (1338214121,), (1338214125,), (1338214129,), (1338214166,), (1338214169,), (1338214173,), (1338214177,), (1338214180,), (1338214201,), (1338214204,), (1338214208,), (1338214213,), (1338214217,), (1338214229,), (1338214269,), (1338214275,), (1338214283,), (1338214310,), (1338214313,), (1338214317,), (1338214321,), (1338214323,), (1338214372,), (1338214374,), (1338214377,), (1338214380,), (1338214382,), (1338214555,), (1338214557,), (1338214560,), (1338214563,), (1338214565,), (1338214589,), (1338214590,), (1338214623,), (1338214627,), (1338214629,), (1338214631,), (1338214654,), (1338214656,), (1338214658,), (1338214660,), (1338214663,), (1338214690,), (1338214683,), (1338214684,), (1338214686,), (1338214688,), (1338214740,), (1338214742,), (1338214744,), (1338215209,), (1338215210,), (1338215212,), (1338215214,), (1338215253,), (1338215255,), (1338215358,), (1338215404,), (1338215438,), (1338215445,), (1338215453,), (1338215455,), (1338215457,), (1338215485,), (1338215487,), (1338215490,), (1338215494,), (1338215525,), (1338215569,), (1338215570,), (1338215572,), (1338215574,), (1338215575,), (1338215591,), (1338215592,), (1338215594,), (1338215596,), (1338215621,), (1338215624,), (1338215626,), (1338215628,), (1338215633,), (1338215638,), (1338215653,), (1338215654,), (1338215656,), (1338218878,), (1338219898,), (1338221075,), (1338221107,), (1338221123,), (1338221160,), (1338221173,), (1338221175,), (1338222535,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17022025': {'nb_upload': 20, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20610400]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] map_info['map_portfolio_photo'] : {20610400: [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907]} final : True mtd_id 4302 list_pids : [1338174524, 1338174418, 1338174416, 1338174412, 1338174183, 1338174181, 1338174178, 1338174176, 1338174146, 1338174144, 1338174142, 1338174141, 1338174114, 1338174111, 1338174108, 1338174106, 1338174105, 1338174077, 1338174076, 1338173907] Looping around the photos to save general results len do output : 1 /20610400Didn'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, '2595268') ('4302', '20610400', '1338174524', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268') ('4302', None, None, None, None, None, None, None, '2595268') ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268') 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', None, '20610400', 'None', None, None, None, None, '2595268'), ('4302', '20610400', '1338174524', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174418', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174416', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174412', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174183', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174181', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174178', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174176', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174146', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174144', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174142', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174141', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174114', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174111', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174108', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174106', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174105', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174077', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338174076', None, None, None, None, None, '2595268'), ('4302', '20610400', '1338173907', None, None, None, None, None, '2595268')] time used for this insertion : 0.017879486083984375 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.918971538543701 time spend to save output : 0.018195390701293945 total time spend for step 5 : 3.937166929244995 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 (2595268) 2.68user 2.29system 0:16.09elapsed 30%CPU (0avgtext+0avgdata 161588maxresident)k 176inputs+17368outputs (0major+75809minor)pagefaults 0swaps