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 : 1108456 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 (2803243) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2803243) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770243 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2803243'] with mtr_portfolio_ids : ['22770243'] and first list_photo_ids : [] new path : /proc/1108456/ Name: python3 Umask: 0002 State: R (running) Tgid: 1108456 Ngid: 0 Pid: 1108456 PPid: 1108455 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1108456 NSpid: 1108456 NSpgid: 1105141 NSsid: 1105141 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100404 kB VmRSS: 100404 kB RssAnon: 60200 kB RssFile: 40204 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 50 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1108456', 'Ngid': '0', 'Pid': '1108456', 'PPid': '1108455', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1108456', 'NSpid': '1108456', 'NSpgid': '1105141', 'NSsid': '1105141', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100404 kB', 'VmRSS': '100404 kB', 'RssAnon': '60200 kB', 'RssFile': '40204 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '50', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1108456', '1107228', '0', '1107228', '865976', '100404', b'', 'marlene', '2803243') 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 (22770243) 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 (2803243 ) ) 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 (22770243) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356713477, 'portfolio_id': 22770243}, {'photo_id': 1356713474, 'portfolio_id': 22770243}, {'photo_id': 1356713471, 'portfolio_id': 22770243}, {'photo_id': 1356713466, 'portfolio_id': 22770243}, {'photo_id': 1356712897, 'portfolio_id': 22770243}, {'photo_id': 1356712747, 'portfolio_id': 22770243}, {'photo_id': 1356712452, 'portfolio_id': 22770243}, {'photo_id': 1356711928, 'portfolio_id': 22770243}, {'photo_id': 1356711895, 'portfolio_id': 22770243}, {'photo_id': 1356711853, 'portfolio_id': 22770243}, {'photo_id': 1356711776, 'portfolio_id': 22770243}, {'photo_id': 1356711748, 'portfolio_id': 22770243}, {'photo_id': 1356711510, 'portfolio_id': 22770243}, {'photo_id': 1356711481, 'portfolio_id': 22770243}, {'photo_id': 1356711456, 'portfolio_id': 22770243}, {'photo_id': 1356711426, 'portfolio_id': 22770243}, {'photo_id': 1356711365, 'portfolio_id': 22770243}, {'photo_id': 1356711001, 'portfolio_id': 22770243}, {'photo_id': 1356710884, 'portfolio_id': 22770243}, {'photo_id': 1356710831, 'portfolio_id': 22770243}, {'photo_id': 1356710800, 'portfolio_id': 22770243}, {'photo_id': 1356710593, 'portfolio_id': 22770243}, {'photo_id': 1356710481, 'portfolio_id': 22770243}, {'photo_id': 1356710343, 'portfolio_id': 22770243}, {'photo_id': 1356710293, 'portfolio_id': 22770243}, {'photo_id': 1356710190, 'portfolio_id': 22770243}, {'photo_id': 1356710159, 'portfolio_id': 22770243}, {'photo_id': 1356709879, 'portfolio_id': 22770243}, {'photo_id': 1356709877, 'portfolio_id': 22770243}, {'photo_id': 1356709817, 'portfolio_id': 22770243}, {'photo_id': 1356709803, 'portfolio_id': 22770243}, {'photo_id': 1356709799, 'portfolio_id': 22770243}] map_portfolio_id_photo_id: {22770243: [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748, 1356711510, 1356711481, 1356711456, 1356711426, 1356711365, 1356711001, 1356710884, 1356710831, 1356710800, 1356710593, 1356710481, 1356710343, 1356710293, 1356710190, 1356710159, 1356709879, 1356709877, 1356709817, 1356709803, 1356709799]} ##### 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.015030622482299805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 7 14:52:58 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 (22770243) 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 : 22770243 get user id for portfolio 22770243 get sub ptf for main ptf 22770243, type 3726 and hashtags ['autre_refus', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'environnement', 'plastique', 'cartonnette', 'flou', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22770243 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','kraft','papier','environnement','plastique','cartonnette','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22770243 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','kraft','papier','environnement','plastique','cartonnette','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22770243, 'sub_port_id': 22770308, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181534, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'metal': {'main_port_id': 22770243, 'sub_port_id': 22770309, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181535, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'papier': {'main_port_id': 22770243, 'sub_port_id': 22770310, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181536, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'cartonnette': {'main_port_id': 22770243, 'sub_port_id': 22770311, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181537, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'environnement': {'main_port_id': 22770243, 'sub_port_id': 22770312, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181538, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22770243, 'sub_port_id': 22770313, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181539, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'kraft': {'main_port_id': 22770243, 'sub_port_id': 22770314, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181540, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'autre_refus': {'main_port_id': 22770243, 'sub_port_id': 22770315, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181541, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'Carton_gris': {'main_port_id': 22770243, 'sub_port_id': 22770316, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181542, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'flou': {'main_port_id': 22770243, 'sub_port_id': 22770317, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181543, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'mal_croppe': {'main_port_id': 22770243, 'sub_port_id': 22770318, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181544, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}, 'Carton_brun': {'main_port_id': 22770243, 'sub_port_id': 22770319, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181545, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770308 , 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=22770243 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 (22770308) result : ((1356711678,), (1356711679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770309 , 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=22770243 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 (22770309) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770310 , 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=22770243 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 (22770310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770311 , 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=22770243 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 (22770311) result : ((1356711683,), (1356713392,), (1356713458,), (1356713459,), (1356713460,), (1356713461,), (1356713462,), (1356713463,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770312 , 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=22770243 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 (22770312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770313 , 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=22770243 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 (22770313) result : ((1356711656,), (1356711658,), (1356711659,), (1356711660,), (1356711661,), (1356711662,), (1356711663,), (1356711664,), (1356713376,), (1356713379,), (1356713449,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770314 , 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=22770243 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 (22770314) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770315 , 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=22770243 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 (22770315) result : ((1356711667,), (1356713450,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770316 , 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=22770243 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 (22770316) result : ((1356711666,), (1356711674,), (1356713451,), (1356713452,), (1356713453,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770317 , 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=22770243 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 (22770317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770318 , 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=22770243 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 (22770318) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22770319 , 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=22770243 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 (22770319) result : ((1356711670,), (1356711690,), (1356713464,), (1356713465,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22770243) result : ((1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) 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 (1356710800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22770243 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','kraft','papier','environnement','plastique','cartonnette','flou','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22770243 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','mal_croppe','Carton_gris','Teint_Dans_La_Masse','kraft','papier','environnement','plastique','cartonnette','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22770243, 'sub_port_id': 22770320, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181546, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'metal': {'main_port_id': 22770243, 'sub_port_id': 22770321, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181547, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'papier': {'main_port_id': 22770243, 'sub_port_id': 22770322, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181548, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'cartonnette': {'main_port_id': 22770243, 'sub_port_id': 22770323, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181549, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'environnement': {'main_port_id': 22770243, 'sub_port_id': 22770324, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181550, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22770243, 'sub_port_id': 22770325, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181551, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'kraft': {'main_port_id': 22770243, 'sub_port_id': 22770326, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181552, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'autre_refus': {'main_port_id': 22770243, 'sub_port_id': 22770327, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181553, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'Carton_gris': {'main_port_id': 22770243, 'sub_port_id': 22770328, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181554, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'flou': {'main_port_id': 22770243, 'sub_port_id': 22770329, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181555, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'mal_croppe': {'main_port_id': 22770243, 'sub_port_id': 22770330, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181556, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}, 'Carton_brun': {'main_port_id': 22770243, 'sub_port_id': 22770331, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15181557, 'last_updated_at': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 14, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 14, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22770331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22770319 lien utilise dans velours : https://www.fotonower.com/velours/22770320,22770321,22770322,22770323,22770324,22770325,22770326,22770327,22770328,22770329,22770330,22770331?tags=plastique,metal,papier,cartonnette,environnement,Teint_Dans_La_Masse,kraft,autre_refus,Carton_gris,flou,mal_croppe,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22770243]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] map_info['map_portfolio_photo'] : {22770243: [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748, 1356711510, 1356711481, 1356711456, 1356711426, 1356711365, 1356711001, 1356710884, 1356710831, 1356710800, 1356710593, 1356710481, 1356710343, 1356710293, 1356710190, 1356710159, 1356709879, 1356709877, 1356709817, 1356709803, 1356709799]} final : False mtd_id 4302 list_pids : [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] Looping around the photos to save general results len do output : 1 /22770243. 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, '2803243') ('4302', '22770243', '1356713477', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '22770243', "{'plastique': 22770308, 'metal': 22770309, 'papier': 22770310, 'cartonnette': 22770311, 'environnement': 22770312, 'Teint_Dans_La_Masse': 22770313, 'kraft': 22770314, 'autre_refus': 22770315, 'Carton_gris': 22770316, 'flou': 22770317, 'mal_croppe': 22770318, 'Carton_brun': 22770319}", None, None, None, None, '2803243'), ('4302', '22770243', '1356713477', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243')] time used for this insertion : 0.013590097427368164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4364047050476074 time spend to save output : 0.013895511627197266 total time spend for step 1 : 0.4503002166748047 step2:final Wed May 7 14:52:58 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 (22770243) 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 22770243 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356709879,1356709877,1356709817,1356709803,1356709799,1356710593,1356710481,1356710343,1356710293,1356710190,1356710159,1356711001,1356710884,1356710831,1356710800,1356711510,1356711481,1356711456,1356711426,1356711365,1356711928,1356711895,1356711853,1356711776,1356711748,1356712897,1356712747,1356712452,1356713477,1356713474,1356713471,1356713466); 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([22770243]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} new output for save of step final : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] map_info['map_portfolio_photo'] : {22770243: [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748, 1356711510, 1356711481, 1356711456, 1356711426, 1356711365, 1356711001, 1356710884, 1356710831, 1356710800, 1356710593, 1356710481, 1356710343, 1356710293, 1356710190, 1356710159, 1356709879, 1356709877, 1356709817, 1356709803, 1356709799]} final : False mtd_id 4302 list_pids : [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] Looping around the photos to save general results len do output : 12 /1356713477.Didn't retrieve data . /1356713474.Didn't retrieve data . /1356713471.Didn't retrieve data . /1356713466.Didn't retrieve data . /1356712897.Didn't retrieve data . /1356712747.Didn't retrieve data . /1356712452.Didn't retrieve data . /1356711928.Didn't retrieve data . /1356711895.Didn't retrieve data . /1356711853.Didn't retrieve data . /1356711776.Didn't retrieve data . /1356711748.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, '2803243') ('4302', '22770243', '1356713477', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '22770243', '1356713477', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356713474', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356713471', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356713466', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356712897', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356712747', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356712452', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356711928', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356711895', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356711853', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356711776', '0.0367877449027632', None, None, None, None, '2803243'), ('4302', '22770243', '1356711748', '0.0367877449027632', None, None, None, None, '2803243')] time used for this insertion : 0.013355255126953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0651099681854248 time spend to save output : 0.013989686965942383 total time spend for step 2 : 0.07909965515136719 step3:velours_tree Wed May 7 14:52:58 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 : {22770243: [{'plastique': 22770308, 'metal': 22770309, 'papier': 22770310, 'cartonnette': 22770311, 'environnement': 22770312, 'Teint_Dans_La_Masse': 22770313, 'kraft': 22770314, 'autre_refus': 22770315, 'Carton_gris': 22770316, 'flou': 22770317, 'mal_croppe': 22770318, 'Carton_brun': 22770319}]} input_args_next_step : {22770243: ()} output_args : {22770243: [{'plastique': 22770308, 'metal': 22770309, 'papier': 22770310, 'cartonnette': 22770311, 'environnement': 22770312, 'Teint_Dans_La_Masse': 22770313, 'kraft': 22770314, 'autre_refus': 22770315, 'Carton_gris': 22770316, 'flou': 22770317, 'mal_croppe': 22770318, 'Carton_brun': 22770319}]} args : 22770243 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 : ({'plastique': 22770308, 'metal': 22770309, 'papier': 22770310, 'cartonnette': 22770311, 'environnement': 22770312, 'Teint_Dans_La_Masse': 22770313, 'kraft': 22770314, 'autre_refus': 22770315, 'Carton_gris': 22770316, 'flou': 22770317, 'mal_croppe': 22770318, 'Carton_brun': 22770319},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22770243) 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([22770243]) 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.3379192352294922 time spend to save output : 7.2479248046875e-05 total time spend for step 3 : 0.33799171447753906 step4:send_mail_cod Wed May 7 14:52:59 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 : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} input_args_next_step : {1356713477: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356713477 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356713474 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356713471 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356713466 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356712897 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356712747 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356712452 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356711928 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356711895 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356711853 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356711776 depend.output_id : 0 input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ()} output_args : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',)} args : 1356711748 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 : {22770243: [{'plastique': 22770308, 'metal': 22770309, 'papier': 22770310, 'cartonnette': 22770311, 'environnement': 22770312, 'Teint_Dans_La_Masse': 22770313, 'kraft': 22770314, 'autre_refus': 22770315, 'Carton_gris': 22770316, 'flou': 22770317, 'mal_croppe': 22770318, 'Carton_brun': 22770319}]} input_args_next_step : {1356713477: ('0.0367877449027632',), 1356713474: ('0.0367877449027632',), 1356713471: ('0.0367877449027632',), 1356713466: ('0.0367877449027632',), 1356712897: ('0.0367877449027632',), 1356712747: ('0.0367877449027632',), 1356712452: ('0.0367877449027632',), 1356711928: ('0.0367877449027632',), 1356711895: ('0.0367877449027632',), 1356711853: ('0.0367877449027632',), 1356711776: ('0.0367877449027632',), 1356711748: ('0.0367877449027632',), 22770243: ()} output_args : {22770243: [{'plastique': 22770308, 'metal': 22770309, 'papier': 22770310, 'cartonnette': 22770311, 'environnement': 22770312, 'Teint_Dans_La_Masse': 22770313, 'kraft': 22770314, 'autre_refus': 22770315, 'Carton_gris': 22770316, 'flou': 22770317, 'mal_croppe': 22770318, 'Carton_brun': 22770319}]} args : 22770243 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 :13, first value : ('0.0367877449027632',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22770243) 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 (1356713477,1356713474,1356713471,1356713466,1356712897,1356712747,1356712452,1356711928,1356711895,1356711853,1356711776,1356711748) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356711748 begin to download photo : 1356711895 begin to download photo : 1356712747 begin to download photo : 1356713471 download finish for photo 1356713471 begin to download photo : 1356713474 download finish for photo 1356711748 begin to download photo : 1356711776 download finish for photo 1356711895 begin to download photo : 1356711928 download finish for photo 1356712747 begin to download photo : 1356712897 download finish for photo 1356713474 begin to download photo : 1356713477 download finish for photo 1356711928 begin to download photo : 1356712452 download finish for photo 1356711776 begin to download photo : 1356711853 download finish for photo 1356712897 begin to download photo : 1356713466 download finish for photo 1356711853 download finish for photo 1356713466 download finish for photo 1356713477 download finish for photo 1356712452 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P22770243_07-05-2025_14_52_59.pdf 22770308 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=22770308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356711678: '1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611150_0.png', 1356711679: '1746622153_2709281_1356710293_2f8d7b33fdd19a13cb63de1db5823b8b_rle_crop_3788611182_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/887fb350a9529ffb274e6875e327c50d_52893035.png change filename to text .imagette227703081746622379/ imagette227703081746622379/1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611150_0.png.png imagette227703081746622379/1746622153_2709281_1356710293_2f8d7b33fdd19a13cb63de1db5823b8b_rle_crop_3788611182_0.png.png imagette227703091746622379/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0b33c83439bb6a42f06462889f4f5b68_66590267.png imagette227703081746622379 22770309 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=22770309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227703091746622379 22770311 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=22770311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356711683: '1746622166_896386_1356709877_883a5fa5b5f5b33c75ccb3afb4cca37c_rle_crop_3788611130_0.png', 1356713392: '1746622287_897371_1356710884_0d94cc1e7c6f8cb1a4160306fbc3389d_rle_crop_3788618353_0.png', 1356713458: '1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618378_0.png', 1356713459: '1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618377_0.png', 1356713460: '1746622273_2710597_1356711456_1d182f18d5fb0271000af3563c6fcc5b_rle_crop_3788618394_0.png', 1356713461: '1746622273_2710597_1356711456_1d182f18d5fb0271000af3563c6fcc5b_rle_crop_3788618396_0.png', 1356713462: '1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618422_0.png', 1356713463: '1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618417_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ca7da62901ffa25a6e860f1b3bda49e7_46941819.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/983059f842823d34c8bbaa40c9cfb0eb_32516326.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d14c45716b9f4f1e8e77579796b2513f_92968573.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/34b15b1f6a1c4a3dffde2fec4702e359_36958507.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c67b65c854242cfa13f33ea96fc788d5_62753268.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3faaefa8804d53937a94ed0e820b49ca_33410003.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4ad59f78a4742e5f3b691a62b1c8f6be_2554886.png change filename to text .imagette227703111746622379/ imagette227703111746622379/1746622287_897371_1356710884_0d94cc1e7c6f8cb1a4160306fbc3389d_rle_crop_3788618353_0.png.png imagette227703111746622379/1746622273_2710597_1356711456_1d182f18d5fb0271000af3563c6fcc5b_rle_crop_3788618396_0.png.png imagette227703111746622379/1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618417_0.png.png imagette227703111746622379/1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618378_0.png.png imagette227703111746622379/1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618377_0.png.png imagette227703111746622379/1746622166_896386_1356709877_883a5fa5b5f5b33c75ccb3afb4cca37c_rle_crop_3788611130_0.png.png imagette227703111746622379/1746622273_2710597_1356711456_1d182f18d5fb0271000af3563c6fcc5b_rle_crop_3788618394_0.png.png imagette227703111746622379/1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618422_0.png.png imagette227703141746622380/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/05f0108e51c779a205a564e0585b32ea_2823867.png imagette227703111746622379 22770314 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=22770314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227703141746622380 22770315 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=22770315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356711667: '1746622166_896386_1356709799_c271777906cd2ace10fe4b5d962bb2b6_rle_crop_3788611199_0.png', 1356713450: '1746622273_2710597_1356711365_9dc59d447516904f1ce8c5e6ea4ae2e1_rle_crop_3788618439_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fd356e8904f4a90aef7fa616f61ca24e_88057656.png change filename to text .imagette227703151746622380/ imagette227703151746622380/1746622166_896386_1356709799_c271777906cd2ace10fe4b5d962bb2b6_rle_crop_3788611199_0.png.png imagette227703151746622380/1746622273_2710597_1356711365_9dc59d447516904f1ce8c5e6ea4ae2e1_rle_crop_3788618439_0.png.png imagette227703171746622380/ imagette227703181746622380/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7f42a66bf194cada1f7ca3c9a02972e2_29409261.png imagette227703151746622380 22770317 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=22770317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227703171746622380 22770318 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=22770318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227703181746622380 22770313 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=22770313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356711656: '1746622166_896386_1356710593_958fca80e1f7ed945d23abc4d839b4d5_rle_crop_3788611098_0.png', 1356711658: '1746622166_896386_1356709817_ac315acc27380e96b9f6a972e18ca900_rle_crop_3788611166_0.png', 1356711659: '1746622166_896386_1356709803_1068e6c6c53b33022dd54ed5d6c5ee2b_rle_crop_3788611175_0.png', 1356711660: '1746622153_2709281_1356710481_ceb676ec2413f6580fd7fff8a61e2c39_rle_crop_3788611120_0.png', 1356711661: '1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611143_0.png', 1356711662: '1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611149_0.png', 1356711663: '1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611147_0.png', 1356711664: '1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611148_0.png', 1356713376: '1746622287_897371_1356711510_6a81ff97de9be8f8799626879eb756d9_rle_crop_3788618341_0.png', 1356713379: '1746622287_897371_1356710800_a47a1e8fb6bb0367871a4a3e095d2891_rle_crop_3788618367_0.png', 1356713449: '1746622273_2710597_1356711456_1d182f18d5fb0271000af3563c6fcc5b_rle_crop_3788618395_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/632e5f9b59cbda3cb05f3d75d86d748a_74306721.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3177a256790a63e154c5253b56938f20_22716373.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/68fabd3be212e1a55d3f8bed1c86da91_4671677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8607616db374661664ed779e0df4420b_38915118.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0f018eb0f1665a4ddc31a26827fd3e76_44381805.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4307b4067cab1c9c74fc11dcdaed909d_20365181.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ff7c1e870cab5aa66e92c4f6d9449a76_46008449.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ba0840819266d03fc2489b939a5cfc45_64966971.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/467eb90ccf76ded4942485a0afbecf72_4056908.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/030211d7bf1a991cb59d412abbff7fe7_2565471.png change filename to text .imagette227703131746622380/ imagette227703131746622380/1746622287_897371_1356710800_a47a1e8fb6bb0367871a4a3e095d2891_rle_crop_3788618367_0.png.png imagette227703131746622380/1746622153_2709281_1356710481_ceb676ec2413f6580fd7fff8a61e2c39_rle_crop_3788611120_0.png.png imagette227703131746622380/1746622273_2710597_1356711456_1d182f18d5fb0271000af3563c6fcc5b_rle_crop_3788618395_0.png.png imagette227703131746622380/1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611143_0.png.png imagette227703131746622380/1746622166_896386_1356710593_958fca80e1f7ed945d23abc4d839b4d5_rle_crop_3788611098_0.png.png imagette227703131746622380/1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611148_0.png.png imagette227703131746622380/1746622287_897371_1356711510_6a81ff97de9be8f8799626879eb756d9_rle_crop_3788618341_0.png.png imagette227703131746622380/1746622166_896386_1356709817_ac315acc27380e96b9f6a972e18ca900_rle_crop_3788611166_0.png.png imagette227703131746622380/1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611149_0.png.png imagette227703131746622380/1746622166_896386_1356709803_1068e6c6c53b33022dd54ed5d6c5ee2b_rle_crop_3788611175_0.png.png imagette227703131746622380/1746622153_2709281_1356710343_9da3236f3e83801821059130fa0be3b9_rle_crop_3788611147_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b72dacd817a66224c27fe4382e8d0a8c_98433054.png imagette227703131746622380 22770316 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=22770316 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356711666: '1746622153_2709281_1356710293_2f8d7b33fdd19a13cb63de1db5823b8b_rle_crop_3788611188_0.png', 1356711674: '1746622166_896386_1356709799_c271777906cd2ace10fe4b5d962bb2b6_rle_crop_3788611205_0.png', 1356713451: '1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618374_0.png', 1356713452: '1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618380_0.png', 1356713453: '1746622273_2710597_1356711365_9dc59d447516904f1ce8c5e6ea4ae2e1_rle_crop_3788618437_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a75850db0aedbd2a23cc381adda7f156_14741971.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b3230ae87fefe2f1f25f9f690f239ec2_35312149.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f56df30d98529e36c02ee5f6877fadd5_74124692.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/205c10132d50200f218a6bc09a6d49da_90426032.png change filename to text .imagette227703161746622381/ imagette227703161746622381/1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618374_0.png.png imagette227703161746622381/1746622273_2710597_1356711481_d0c85a5fc305800961e16d9505ed4b9b_rle_crop_3788618380_0.png.png imagette227703161746622381/1746622166_896386_1356709799_c271777906cd2ace10fe4b5d962bb2b6_rle_crop_3788611205_0.png.png imagette227703161746622381/1746622153_2709281_1356710293_2f8d7b33fdd19a13cb63de1db5823b8b_rle_crop_3788611188_0.png.png imagette227703161746622381/1746622273_2710597_1356711365_9dc59d447516904f1ce8c5e6ea4ae2e1_rle_crop_3788618437_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9b0c8aed55ffcd78aa24bb3f0a413529_97055399.png imagette227703161746622381 22770319 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=22770319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356711670: '1746622153_2709281_1356710481_ceb676ec2413f6580fd7fff8a61e2c39_rle_crop_3788611122_0.png', 1356711690: '1746622166_896386_1356710593_958fca80e1f7ed945d23abc4d839b4d5_rle_crop_3788611097_0.png', 1356713464: '1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618419_0.png', 1356713465: '1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618421_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5365dfd9d9a792b027734d407873f856_96060225.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f6ec1670af32bb9309152e0b0a0c9539_71633308.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/226ff9033a6be26066bfac73be68ac84_58161213.png change filename to text .imagette227703191746622381/ imagette227703191746622381/1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618419_0.png.png imagette227703191746622381/1746622153_2709281_1356710481_ceb676ec2413f6580fd7fff8a61e2c39_rle_crop_3788611122_0.png.png imagette227703191746622381/1746622273_2710597_1356711426_036ec3ec4863c51e31243c82b83ebc51_rle_crop_3788618421_0.png.png imagette227703191746622381/1746622166_896386_1356710593_958fca80e1f7ed945d23abc4d839b4d5_rle_crop_3788611097_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8804f1dab8d7b69888a606adac4bd3d7_27262811.png imagette227703191746622381 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22770243 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22770320,22770321,22770322,22770323,22770324,22770325,22770326,22770327,22770328,22770329,22770330,22770331?tags=plastique,metal,papier,cartonnette,environnement,Teint_Dans_La_Masse,kraft,autre_refus,Carton_gris,flou,mal_croppe,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1356713477] : ('0.0367877449027632',) no score found for photo 1356713477 We are sending mail with results at report@fotonower.com args[1356713474] : ('0.0367877449027632',) no score found for photo 1356713474 We are sending mail with results at report@fotonower.com args[1356713471] : ('0.0367877449027632',) no score found for photo 1356713471 We are sending mail with results at report@fotonower.com args[1356713466] : ('0.0367877449027632',) no score found for photo 1356713466 We are sending mail with results at report@fotonower.com args[1356712897] : ('0.0367877449027632',) no score found for photo 1356712897 We are sending mail with results at report@fotonower.com args[1356712747] : ('0.0367877449027632',) no score found for photo 1356712747 We are sending mail with results at report@fotonower.com args[1356712452] : ('0.0367877449027632',) no score found for photo 1356712452 We are sending mail with results at report@fotonower.com args[1356711928] : ('0.0367877449027632',) no score found for photo 1356711928 We are sending mail with results at report@fotonower.com args[1356711895] : ('0.0367877449027632',) no score found for photo 1356711895 We are sending mail with results at report@fotonower.com args[1356711853] : ('0.0367877449027632',) no score found for photo 1356711853 We are sending mail with results at report@fotonower.com args[1356711776] : ('0.0367877449027632',) no score found for photo 1356711776 We are sending mail with results at report@fotonower.com args[1356711748] : ('0.0367877449027632',) no score found for photo 1356711748 We are sending mail with results at report@fotonower.com refus_total : 0.0367877449027632 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=22770243 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_P22770243_07-05-2025_14_52_59.pdf results_Auto_P22770243_07-05-2025_14_52_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22770243_07-05-2025_14_52_59.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','22770243','results_Auto_P22770243_07-05-2025_14_52_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22770243_07-05-2025_14_52_59.pdf','pdf','','0.19','0.0367877449027632') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22770243]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] map_info['map_portfolio_photo'] : {22770243: [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748, 1356711510, 1356711481, 1356711456, 1356711426, 1356711365, 1356711001, 1356710884, 1356710831, 1356710800, 1356710593, 1356710481, 1356710343, 1356710293, 1356710190, 1356710159, 1356709879, 1356709877, 1356709817, 1356709803, 1356709799]} final : False mtd_id 4302 list_pids : [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] 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, '2803243') ('4302', '22770243', '1356713477', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '22770243', '1356713477', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243')] time used for this insertion : 0.013597965240478516 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4077789783477783 time spend to save output : 0.013814687728881836 total time spend for step 4 : 3.42159366607666 step5:split_time_score Wed May 7 14:53:02 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 : ['22770243'] 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 : [('22770243',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22770243) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356711748: {'path': 'temp/1746622379_1108456_1356711748_385c06aa780de165b922c05a2d434931.jpg', 'extension': 'jpg'}, 1356711776: {'path': 'temp/1746622379_1108456_1356711776_dfe013d0ac7abbe8c2a9e408f6265d63.jpg', 'extension': 'jpg'}, 1356711853: {'path': 'temp/1746622379_1108456_1356711853_e8a9b351d84dc7713633d26385d53ed6.jpg', 'extension': 'jpg'}, 1356712747: {'path': 'temp/1746622379_1108456_1356712747_fc6d674238504f8a1cceb3001b5cb0dc.jpg', 'extension': 'jpg'}, 1356712897: {'path': 'temp/1746622379_1108456_1356712897_83c09b2576ffa1a5471d33e5de20a8b2.jpg', 'extension': 'jpg'}, 1356713466: {'path': 'temp/1746622379_1108456_1356713466_75bc0de27abb9d5ef986391d3b5564f1.jpg', 'extension': 'jpg'}, 1356713471: {'path': 'temp/1746622379_1108456_1356713471_996f1c72c96499bef0e2c44050225f27.jpg', 'extension': 'jpg'}, 1356713474: {'path': 'temp/1746622379_1108456_1356713474_1b831a3eb0d1e21be0ab7e8babd0621f.jpg', 'extension': 'jpg'}, 1356713477: {'path': 'temp/1746622379_1108456_1356713477_d38997fb97dca3a931f5b2c86ea6df15.jpg', 'extension': 'jpg'}, 1356711895: {'path': 'temp/1746622379_1108456_1356711895_835910cf0c72b69696b7c1d572661add.jpg', 'extension': 'jpg'}, 1356711928: {'path': 'temp/1746622379_1108456_1356711928_93fdbedb07acc54750fdb523c2de3386.jpg', 'extension': 'jpg'}, 1356712452: {'path': 'temp/1746622379_1108456_1356712452_2a98c2183b5ca77b4ad021a9f60660b0.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 = 22770243; (('arc_en_ciel_jrm_live',), ('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 = 22770243 group by h (('14', 32),) 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=22770243 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 (22770243) 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 (22770243) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22770243 Nombre de photos uploadées : 32 / 23040 (0%) 07052025 22770243 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 07052025 22770243 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1356709879, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3bf89528ca7dc861e10417642eb96f5a.jpg', 'username': None, 'uploaded_at': 1746621967, 'text': 'image_07052025_14_45_04_10165.jpg'}, {'photo_id': 1356709877, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/883a5fa5b5f5b33c75ccb3afb4cca37c.jpg', 'username': None, 'uploaded_at': 1746621967, 'text': 'image_07052025_14_45_14_10137.jpg'}, {'photo_id': 1356709817, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ac315acc27380e96b9f6a972e18ca900.jpg', 'username': None, 'uploaded_at': 1746621967, 'text': 'image_07052025_14_45_25_10137.jpg'}, {'photo_id': 1356709803, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1068e6c6c53b33022dd54ed5d6c5ee2b.jpg', 'username': None, 'uploaded_at': 1746621967, 'text': 'image_07052025_14_45_34_9131.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001043081283569336 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22770243, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021688461303710938 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10386992, '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_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22741189, 'dashboard_result_id': 10386993, '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_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22741710, 'dashboard_result_id': 10386994, '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_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22742314, 'dashboard_result_id': 10386995, '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_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22743939, 'dashboard_result_id': 10386996, '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_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10386997, '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_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10386998, '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_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10386999, '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_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10387000, '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_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22746301, 'dashboard_result_id': 10387001, '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_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22746900, 'dashboard_result_id': 10387002, '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_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22747363, 'dashboard_result_id': 10387003, '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_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22747808, 'dashboard_result_id': 10387004, '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_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22748285, 'dashboard_result_id': 10387005, '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_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22748931, 'dashboard_result_id': 10387006, '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_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22749585, 'dashboard_result_id': 10387007, '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_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22750050, 'dashboard_result_id': 10387008, '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_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22750360, 'dashboard_result_id': 10387009, '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_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22750640, 'dashboard_result_id': 10387010, '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_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22751196, 'dashboard_result_id': 10387011, '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_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22751988, 'dashboard_result_id': 10387012, '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_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22752170, 'dashboard_result_id': 10387013, '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_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22752559, 'dashboard_result_id': 10387014, '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_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22753186, 'dashboard_result_id': 10387015, '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_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22753874, 'dashboard_result_id': 10387016, '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_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22754426, 'dashboard_result_id': 10387017, '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_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22755041, 'dashboard_result_id': 10387018, '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_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22755575, 'dashboard_result_id': 10387019, '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_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22756353, 'dashboard_result_id': 10387020, '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_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22756932, 'dashboard_result_id': 10387021, '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_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22757570, 'dashboard_result_id': 10387022, '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_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22758740, 'dashboard_result_id': 10387023, '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_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22759267, 'dashboard_result_id': 10387024, '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_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22759893, 'dashboard_result_id': 10387025, '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_P22759893_07-05-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22760380, 'dashboard_result_id': 10387026, '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_P22760380_07-05-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22760411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760422, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22760869, 'dashboard_result_id': 10387027, '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_P22760869_07-05-2025_10_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22760883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760891, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22761425, 'dashboard_result_id': 10387028, '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_P22761425_07-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761466, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22761940, 'dashboard_result_id': 10387029, '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_P22761940_07-05-2025_11_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761977, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22762781, 'dashboard_result_id': 10387030, '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_P22762781_07-05-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22762812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22762813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22762814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22762815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22762816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22762817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22762818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22762819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22762820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22762821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22762822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22762823, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22763290, 'dashboard_result_id': 10387031, '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_P22763290_07-05-2025_11_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22763330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22763331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22763332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22763333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22763334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22763335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22763336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22763337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22763338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22763339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22763340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22763341, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22764124, 'dashboard_result_id': 10387032, '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_P22764124_07-05-2025_12_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22764188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22764189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22764190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22764191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22764192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22764193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22764194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22764195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22764196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22764197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22764198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22764199, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22765102, 'dashboard_result_id': 10387033, '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_P22765102_07-05-2025_13_36_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22765130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22765131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22765132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22765133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22765134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22765135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22765136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22765137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22765138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22765139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22765140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22765141, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22767781, 'dashboard_result_id': 10387034, '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_P22767781_07-05-2025_14_22_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22767800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767811, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22768655, 'dashboard_result_id': 10387035, '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_P22768655_07-05-2025_14_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22768656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22768657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22768658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22768659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22768660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22768661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22768662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22768663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22768664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22768665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22768666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22768667, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22769438, 'dashboard_result_id': 10387036, '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_P22769438_07-05-2025_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22769478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22769479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22769480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22769481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22769482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22769483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22769484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22769485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22769486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22769487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22769488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22769489, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790988, 'mtr_portfolio_id': 22770243, 'dashboard_result_id': 10387037, '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_P22770243_07-05-2025_14_50_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22770308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22770309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22770310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22770311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22770312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22770313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22770314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22770315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22770316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22770317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22770318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22770319, '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 = 22740041 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': 2800912, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 6, 2), 'result': '0.050109031736622824', 'result_long': None, 'result_double': None}] Qualite : 0.050109031736622824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 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_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1790988 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`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386992, 0.050109031736622824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, '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 = 22741189 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': 2800913, 'mtr_portfolio_id': 22741189, 'created_at': datetime.datetime(2025, 5, 7, 6, 2, 28), 'result': '0.04701292400710008', 'result_long': None, 'result_double': None}] Qualite : 0.04701292400710008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741189 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_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}" where mtr_portfolio_id = 22741189 and dashboard_run_id = 1790988 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`=22741189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386993, 0.04701292400710008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, '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 = 22741710 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': 2800914, 'mtr_portfolio_id': 22741710, 'created_at': datetime.datetime(2025, 5, 7, 6, 4), 'result': '0.05760114200802414', 'result_long': None, 'result_double': None}] Qualite : 0.05760114200802414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741710 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_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}" where mtr_portfolio_id = 22741710 and dashboard_run_id = 1790988 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`=22741710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386994, 0.05760114200802414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, '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 = 22742314 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': 2800915, 'mtr_portfolio_id': 22742314, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 28), 'result': '0.045077702374708616', 'result_long': None, 'result_double': None}] Qualite : 0.045077702374708616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22742314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22742314 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_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}" where mtr_portfolio_id = 22742314 and dashboard_run_id = 1790988 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`=22742314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386995, 0.045077702374708616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, '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 = 22743939 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': 2800916, 'mtr_portfolio_id': 22743939, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 59), 'result': '0.04478232993303851', 'result_long': None, 'result_double': None}] Qualite : 0.04478232993303851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22743939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22743939 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_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}" where mtr_portfolio_id = 22743939 and dashboard_run_id = 1790988 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`=22743939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386996, 0.04478232993303851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, '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 = 22744354 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': 2800917, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 28), 'result': '0.035671548309605734', 'result_long': None, 'result_double': None}] Qualite : 0.035671548309605734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 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_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1790988 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`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386997, 0.035671548309605734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, '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 = 22744792 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': 2800918, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 59), 'result': '0.054948676811049965', 'result_long': None, 'result_double': None}] Qualite : 0.054948676811049965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 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_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1790988 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`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386998, 0.054948676811049965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, '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 = 22745552 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': 2800919, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 6, 6, 27), 'result': '0.0408681048489511', 'result_long': None, 'result_double': None}] Qualite : 0.0408681048489511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 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_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1790988 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`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10386999, 0.0408681048489511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, '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 = 22745924 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': 2800920, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 29), 'result': '0.03856288324551846', 'result_long': None, 'result_double': None}] Qualite : 0.03856288324551846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 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_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1790988 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`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387000, 0.03856288324551846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 = 22746301 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': 2800921, 'mtr_portfolio_id': 22746301, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 56), 'result': '0.05090100322650896', 'result_long': None, 'result_double': None}] Qualite : 0.05090100322650896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746301 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_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}" where mtr_portfolio_id = 22746301 and dashboard_run_id = 1790988 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`=22746301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387001, 0.05090100322650896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, '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 = 22746900 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': 2800922, 'mtr_portfolio_id': 22746900, 'created_at': datetime.datetime(2025, 5, 7, 6, 8, 27), 'result': '0.050751273434838894', 'result_long': None, 'result_double': None}] Qualite : 0.050751273434838894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746900 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_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}" where mtr_portfolio_id = 22746900 and dashboard_run_id = 1790988 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`=22746900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387002, 0.050751273434838894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, '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 = 22747363 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': 2800923, 'mtr_portfolio_id': 22747363, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 30), 'result': '0.05098369322515066', 'result_long': None, 'result_double': None}] Qualite : 0.05098369322515066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747363 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_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}" where mtr_portfolio_id = 22747363 and dashboard_run_id = 1790988 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`=22747363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387003, 0.05098369322515066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, '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 = 22747808 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': 2800924, 'mtr_portfolio_id': 22747808, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 59), 'result': '0.05286859502594896', 'result_long': None, 'result_double': None}] Qualite : 0.05286859502594896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747808 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_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}" where mtr_portfolio_id = 22747808 and dashboard_run_id = 1790988 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`=22747808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387004, 0.05286859502594896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, '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 = 22748285 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': 2800925, 'mtr_portfolio_id': 22748285, 'created_at': datetime.datetime(2025, 5, 7, 6, 10, 29), 'result': '0.040572381966203545', 'result_long': None, 'result_double': None}] Qualite : 0.040572381966203545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748285 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_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}" where mtr_portfolio_id = 22748285 and dashboard_run_id = 1790988 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`=22748285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387005, 0.040572381966203545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, '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 = 22748931 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': 2800926, 'mtr_portfolio_id': 22748931, 'created_at': datetime.datetime(2025, 5, 7, 6, 16, 30), 'result': '0.04440606911211384', 'result_long': None, 'result_double': None}] Qualite : 0.04440606911211384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748931 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_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}" where mtr_portfolio_id = 22748931 and dashboard_run_id = 1790988 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`=22748931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387006, 0.04440606911211384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, '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 = 22749585 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': 2800781, 'mtr_portfolio_id': 22749585, 'created_at': datetime.datetime(2025, 5, 7, 5, 19), 'result': '0.013151463601640639', 'result_long': None, 'result_double': None}] Qualite : 0.013151463601640639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22749585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22749585 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_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}" where mtr_portfolio_id = 22749585 and dashboard_run_id = 1790988 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`=22749585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387007, 0.013151463601640639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, '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 = 22750050 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': 2800928, 'mtr_portfolio_id': 22750050, 'created_at': datetime.datetime(2025, 5, 7, 6, 11, 29), 'result': '0.035525455797541246', 'result_long': None, 'result_double': None}] Qualite : 0.035525455797541246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750050 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_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}" where mtr_portfolio_id = 22750050 and dashboard_run_id = 1790988 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`=22750050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387008, 0.035525455797541246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, '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 = 22750360 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': 2800850, 'mtr_portfolio_id': 22750360, 'created_at': datetime.datetime(2025, 5, 7, 5, 46, 59), 'result': '0.04888496095988462', 'result_long': None, 'result_double': None}] Qualite : 0.04888496095988462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750360 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_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}" where mtr_portfolio_id = 22750360 and dashboard_run_id = 1790988 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`=22750360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387009, 0.04888496095988462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, '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 = 22750640 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': 2801011, 'mtr_portfolio_id': 22750640, 'created_at': datetime.datetime(2025, 5, 7, 6, 3, 29), 'result': '0.03869306359170151', 'result_long': None, 'result_double': None}] Qualite : 0.03869306359170151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750640 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_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}" where mtr_portfolio_id = 22750640 and dashboard_run_id = 1790988 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`=22750640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387010, 0.03869306359170151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, '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 = 22751196 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': 2801080, 'mtr_portfolio_id': 22751196, 'created_at': datetime.datetime(2025, 5, 7, 6, 24, 56), 'result': '0.043858363734555976', 'result_long': None, 'result_double': None}] Qualite : 0.043858363734555976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751196 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_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}" where mtr_portfolio_id = 22751196 and dashboard_run_id = 1790988 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`=22751196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387011, 0.043858363734555976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, '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 = 22751988 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': 2801158, 'mtr_portfolio_id': 22751988, 'created_at': datetime.datetime(2025, 5, 7, 6, 32, 57), 'result': '0.037025815144058845', 'result_long': None, 'result_double': None}] Qualite : 0.037025815144058845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751988 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_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}" where mtr_portfolio_id = 22751988 and dashboard_run_id = 1790988 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`=22751988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387012, 0.037025815144058845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, '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 = 22752170 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': 2801181, 'mtr_portfolio_id': 22752170, 'created_at': datetime.datetime(2025, 5, 7, 6, 48, 58), 'result': '0.062208916492780146', 'result_long': None, 'result_double': None}] Qualite : 0.062208916492780146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22752170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22752170 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_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}" where mtr_portfolio_id = 22752170 and dashboard_run_id = 1790988 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`=22752170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387013, 0.062208916492780146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, '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 = 22752559 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': 2801229, 'mtr_portfolio_id': 22752559, 'created_at': datetime.datetime(2025, 5, 7, 7, 2, 57), 'result': '0.05807673542209003', 'result_long': None, 'result_double': None}] Qualite : 0.05807673542209003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22752559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22752559 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_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}" where mtr_portfolio_id = 22752559 and dashboard_run_id = 1790988 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`=22752559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387014, 0.05807673542209003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, '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 = 22753186 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': 2801312, 'mtr_portfolio_id': 22753186, 'created_at': datetime.datetime(2025, 5, 7, 7, 19, 31), 'result': '0.033643019104665654', 'result_long': None, 'result_double': None}] Qualite : 0.033643019104665654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22753186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22753186 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_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}" where mtr_portfolio_id = 22753186 and dashboard_run_id = 1790988 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`=22753186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387015, 0.033643019104665654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, '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 = 22753874 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': 2801388, 'mtr_portfolio_id': 22753874, 'created_at': datetime.datetime(2025, 5, 7, 7, 32, 58), 'result': '0.035783283909154806', 'result_long': None, 'result_double': None}] Qualite : 0.035783283909154806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22753874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22753874 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_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}" where mtr_portfolio_id = 22753874 and dashboard_run_id = 1790988 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`=22753874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387016, 0.035783283909154806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, '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 = 22754426 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': 2801441, 'mtr_portfolio_id': 22754426, 'created_at': datetime.datetime(2025, 5, 7, 7, 48, 58), 'result': '0.03714356172185541', 'result_long': None, 'result_double': None}] Qualite : 0.03714356172185541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22754426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22754426 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_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}" where mtr_portfolio_id = 22754426 and dashboard_run_id = 1790988 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`=22754426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387017, 0.03714356172185541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, '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 = 22755041 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': 2801499, 'mtr_portfolio_id': 22755041, 'created_at': datetime.datetime(2025, 5, 7, 8, 2, 59), 'result': '0.03978187668506218', 'result_long': None, 'result_double': None}] Qualite : 0.03978187668506218 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22755041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22755041 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_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}" where mtr_portfolio_id = 22755041 and dashboard_run_id = 1790988 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`=22755041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387018, 0.03978187668506218, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, '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 = 22755575 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': 2801563, 'mtr_portfolio_id': 22755575, 'created_at': datetime.datetime(2025, 5, 7, 8, 19), 'result': '0.03788803038641343', 'result_long': None, 'result_double': None}] Qualite : 0.03788803038641343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22755575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22755575 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_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}" where mtr_portfolio_id = 22755575 and dashboard_run_id = 1790988 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`=22755575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387019, 0.03788803038641343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, '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 = 22756353 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': 2801643, 'mtr_portfolio_id': 22756353, 'created_at': datetime.datetime(2025, 5, 7, 8, 32, 57), 'result': '0.04501757045986341', 'result_long': None, 'result_double': None}] Qualite : 0.04501757045986341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22756353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22756353 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_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}" where mtr_portfolio_id = 22756353 and dashboard_run_id = 1790988 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`=22756353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387020, 0.04501757045986341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, '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 = 22756932 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': 2801694, 'mtr_portfolio_id': 22756932, 'created_at': datetime.datetime(2025, 5, 7, 8, 48, 58), 'result': '0.05114577257248475', 'result_long': None, 'result_double': None}] Qualite : 0.05114577257248475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22756932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22756932 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_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}" where mtr_portfolio_id = 22756932 and dashboard_run_id = 1790988 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`=22756932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387021, 0.05114577257248475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, '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 = 22757570 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': 2801767, 'mtr_portfolio_id': 22757570, 'created_at': datetime.datetime(2025, 5, 7, 9, 2, 58), 'result': '0.035758572732979894', 'result_long': None, 'result_double': None}] Qualite : 0.035758572732979894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22757570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22757570 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_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}" where mtr_portfolio_id = 22757570 and dashboard_run_id = 1790988 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`=22757570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387022, 0.035758572732979894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, '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 = 22758740 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': 2801954, 'mtr_portfolio_id': 22758740, 'created_at': datetime.datetime(2025, 5, 7, 9, 49), 'result': '0.02286731114836762', 'result_long': None, 'result_double': None}] Qualite : 0.02286731114836762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22758740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22758740 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_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}" where mtr_portfolio_id = 22758740 and dashboard_run_id = 1790988 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`=22758740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387023, 0.02286731114836762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, '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 = 22759267 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': 2802023, 'mtr_portfolio_id': 22759267, 'created_at': datetime.datetime(2025, 5, 7, 10, 2, 59), 'result': '0.027058893693445267', 'result_long': None, 'result_double': None}] Qualite : 0.027058893693445267 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22759267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22759267 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_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}" where mtr_portfolio_id = 22759267 and dashboard_run_id = 1790988 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`=22759267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387024, 0.027058893693445267, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, '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 = 22759893 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': 2802101, 'mtr_portfolio_id': 22759893, 'created_at': datetime.datetime(2025, 5, 7, 10, 18, 57), 'result': '0.033788395445633244', 'result_long': None, 'result_double': None}] Qualite : 0.033788395445633244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22759893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22759893 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_P22759893_07-05-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, 'pht': 3726}}" where mtr_portfolio_id = 22759893 and dashboard_run_id = 1790988 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`=22759893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387025, 0.033788395445633244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, '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 = 22760380 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': 2802155, 'mtr_portfolio_id': 22760380, 'created_at': datetime.datetime(2025, 5, 7, 10, 32, 58), 'result': '0.04240202959805457', 'result_long': None, 'result_double': None}] Qualite : 0.04240202959805457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22760380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760380_07-05-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22760380 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_P22760380_07-05-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22760411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760422, 'pht': 3726}}" where mtr_portfolio_id = 22760380 and dashboard_run_id = 1790988 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`=22760380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387026, 0.04240202959805457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760380_07-05-2025_10_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22760411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760422, '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 = 22760869 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': 2802224, 'mtr_portfolio_id': 22760869, 'created_at': datetime.datetime(2025, 5, 7, 10, 49), 'result': '0.04259704223216513', 'result_long': None, 'result_double': None}] Qualite : 0.04259704223216513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22760869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760869_07-05-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22760869 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_P22760869_07-05-2025_10_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22760883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760891, 'pht': 3726}}" where mtr_portfolio_id = 22760869 and dashboard_run_id = 1790988 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`=22760869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387027, 0.04259704223216513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22760869_07-05-2025_10_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22760880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22760881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22760882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22760883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22760884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22760885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22760886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22760887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22760888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22760889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22760890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22760891, '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 = 22761425 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': 2802288, 'mtr_portfolio_id': 22761425, 'created_at': datetime.datetime(2025, 5, 7, 11, 2, 59), 'result': '0.06326683110960678', 'result_long': None, 'result_double': None}] Qualite : 0.06326683110960678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22761425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761425_07-05-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22761425 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_P22761425_07-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761466, 'pht': 3726}}" where mtr_portfolio_id = 22761425 and dashboard_run_id = 1790988 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`=22761425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387028, 0.06326683110960678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761425_07-05-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761463, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761466, '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 = 22761940 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': 2802358, 'mtr_portfolio_id': 22761940, 'created_at': datetime.datetime(2025, 5, 7, 11, 18, 59), 'result': '0.028265475467537108', 'result_long': None, 'result_double': None}] Qualite : 0.028265475467537108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22761940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761940_07-05-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22761940 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_P22761940_07-05-2025_11_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761977, 'pht': 3726}}" where mtr_portfolio_id = 22761940 and dashboard_run_id = 1790988 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`=22761940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387029, 0.028265475467537108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22761940_07-05-2025_11_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22761966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22761967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22761968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22761969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22761970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22761971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22761972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22761973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22761974, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22761975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22761976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22761977, '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 = 22762781 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': 2802422, 'mtr_portfolio_id': 22762781, 'created_at': datetime.datetime(2025, 5, 7, 11, 32, 59), 'result': '0.046870817234399384', 'result_long': None, 'result_double': None}] Qualite : 0.046870817234399384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22762781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22762781_07-05-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22762781 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_P22762781_07-05-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22762812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22762813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22762814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22762815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22762816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22762817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22762818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22762819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22762820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22762821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22762822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22762823, 'pht': 3726}}" where mtr_portfolio_id = 22762781 and dashboard_run_id = 1790988 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`=22762781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387030, 0.046870817234399384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22762781_07-05-2025_11_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22762812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22762813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22762814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22762815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22762816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22762817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22762818, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22762819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22762820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22762821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22762822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22762823, '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 = 22763290 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': 2802498, 'mtr_portfolio_id': 22763290, 'created_at': datetime.datetime(2025, 5, 7, 11, 48, 59), 'result': '0.06704321756612183', 'result_long': None, 'result_double': None}] Qualite : 0.06704321756612183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22763290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22763290_07-05-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22763290 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_P22763290_07-05-2025_11_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22763330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22763331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22763332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22763333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22763334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22763335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22763336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22763337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22763338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22763339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22763340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22763341, 'pht': 3726}}" where mtr_portfolio_id = 22763290 and dashboard_run_id = 1790988 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`=22763290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387031, 0.06704321756612183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22763290_07-05-2025_11_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22763330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22763331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22763332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22763333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22763334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22763335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22763336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22763337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22763338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22763339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22763340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22763341, '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 = 22764124 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': 2802560, 'mtr_portfolio_id': 22764124, 'created_at': datetime.datetime(2025, 5, 7, 12, 4, 58), 'result': '0.030341781831300974', 'result_long': None, 'result_double': None}] Qualite : 0.030341781831300974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22764124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22764124_07-05-2025_12_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22764124 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_P22764124_07-05-2025_12_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22764188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22764189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22764190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22764191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22764192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22764193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22764194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22764195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22764196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22764197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22764198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22764199, 'pht': 3726}}" where mtr_portfolio_id = 22764124 and dashboard_run_id = 1790988 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`=22764124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387032, 0.030341781831300974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22764124_07-05-2025_12_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22764188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22764189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22764190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22764191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22764192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22764193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22764194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22764195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22764196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22764197, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22764198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22764199, '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 = 22765102 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': 2802638, 'mtr_portfolio_id': 22765102, 'created_at': datetime.datetime(2025, 5, 7, 13, 36, 1), 'result': '0.04088849010131036', 'result_long': None, 'result_double': None}] Qualite : 0.04088849010131036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22765102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22765102_07-05-2025_13_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22765102 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_P22765102_07-05-2025_13_36_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22765130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22765131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22765132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22765133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22765134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22765135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22765136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22765137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22765138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22765139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22765140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22765141, 'pht': 3726}}" where mtr_portfolio_id = 22765102 and dashboard_run_id = 1790988 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`=22765102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387033, 0.04088849010131036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22765102_07-05-2025_13_36_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22765130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22765131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22765132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22765133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22765134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22765135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22765136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22765137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22765138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22765139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22765140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22765141, '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 = 22767781 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': 2803075, 'mtr_portfolio_id': 22767781, 'created_at': datetime.datetime(2025, 5, 7, 14, 22, 58), 'result': '0.0651850901272131', 'result_long': None, 'result_double': None}] Qualite : 0.0651850901272131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22767781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22767781_07-05-2025_14_22_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22767781 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_P22767781_07-05-2025_14_22_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22767800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767811, 'pht': 3726}}" where mtr_portfolio_id = 22767781 and dashboard_run_id = 1790989 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`=22767781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387034, 0.0651850901272131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22767781_07-05-2025_14_22_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22767800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22767801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22767802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22767803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22767804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22767805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22767806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22767807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22767808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22767809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22767810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22767811, '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 = 22768655 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': 2803136, 'mtr_portfolio_id': 22768655, 'created_at': datetime.datetime(2025, 5, 7, 14, 34, 58), 'result': '0.061476299697147664', 'result_long': None, 'result_double': None}] Qualite : 0.061476299697147664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22768655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22768655_07-05-2025_14_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22768655 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_P22768655_07-05-2025_14_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22768656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22768657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22768658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22768659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22768660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22768661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22768662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22768663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22768664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22768665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22768666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22768667, 'pht': 3726}}" where mtr_portfolio_id = 22768655 and dashboard_run_id = 1790989 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`=22768655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387035, 0.061476299697147664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22768655_07-05-2025_14_34_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22768656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22768657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22768658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22768659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22768660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22768661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22768662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22768663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22768664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22768665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22768666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22768667, '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 = 22769438 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': 2803189, 'mtr_portfolio_id': 22769438, 'created_at': datetime.datetime(2025, 5, 7, 14, 48, 58), 'result': '0.03530760362371913', 'result_long': None, 'result_double': None}] Qualite : 0.03530760362371913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22769438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22769438_07-05-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22769438 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_P22769438_07-05-2025_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22769478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22769479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22769480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22769481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22769482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22769483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22769484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22769485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22769486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22769487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22769488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22769489, 'pht': 3726}}" where mtr_portfolio_id = 22769438 and dashboard_run_id = 1790989 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`=22769438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387036, 0.03530760362371913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22769438_07-05-2025_14_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22769478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22769479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22769480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22769481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22769482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22769483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22769484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22769485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22769486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22769487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22769488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22769489, '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 = 22770243 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': 2803243, 'mtr_portfolio_id': 22770243, 'created_at': datetime.datetime(2025, 5, 7, 14, 52, 58), 'result': '0.0367877449027632', 'result_long': None, 'result_double': None}] Qualite : 0.0367877449027632 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22770243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22770243_07-05-2025_14_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22770243 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_P22770243_07-05-2025_14_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22770308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22770309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22770310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22770311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22770312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22770313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22770314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22770315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22770316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22770317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22770318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22770319, 'pht': 3726}}" where mtr_portfolio_id = 22770243 and dashboard_run_id = 1790989 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`=22770243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10387037, 0.0367877449027632, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22770243_07-05-2025_14_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22770308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22770309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22770310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22770311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22770312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22770313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22770314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22770315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22770316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22770317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22770318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22770319, '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 (22740041,22741189,22741710,22742314,22743939,22744354,22744792,22745552,22745924,22746301,22746900,22747363,22747808,22748285,22748931,22749585,22750050,22750360,22750640,22751196,22751988,22752170,22752559,22753186,22753874,22754426,22755041,22755575,22756353,22756932,22757570,22758740,22759267,22759893,22760380,22760869,22761425,22761940,22762781,22763290,22764124,22765102,22767781,22768655,22769438,22770243) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,), (1356515156,), (1356515208,), (1356515901,), (1356515952,), (1356516009,), (1356516068,), (1356516118,), (1356516709,), (1356516768,), (1356516802,), (1356517611,), (1356517205,), (1356517282,), (1356517353,), (1356517432,), (1356517511,), (1356518522,), (1356518642,), (1356518772,), (1356520657,), (1356520772,), (1356520880,), (1356520942,), (1356521561,), (1356521613,), (1356521662,), (1356521710,), (1356521766,), (1356521814,), (1356521967,), (1356522017,), (1356522065,), (1356522762,), (1356522842,), (1356522931,), (1356522962,), (1356522997,), (1356523046,), (1356523401,), (1356523447,), (1356523501,), (1356523551,), (1356523604,), (1356523663,), (1356524321,), (1356524362,), (1356525241,), (1356525301,), (1356525336,), (1356525381,), (1356525424,), (1356525488,), (1356525876,), (1356525905,), (1356525912,), (1356525916,), (1356525920,), (1356526224,), (1356526289,), (1356526355,), (1356526529,), (1356526599,), (1356526888,), (1356526916,), (1356526943,), (1356526977,), (1356527139,), (1356527144,), (1356527199,), (1356527283,), (1356527286,), (1356527289,), (1356527297,), (1356527302,), (1356527305,), (1356527328,), (1356527330,), (1356527333,), (1356527336,), (1356527340,), (1356527398,), (1356527388,), (1356527390,), (1356527392,), (1356527394,), (1356527420,), (1356527434,), (1356527575,), (1356527577,), (1356527579,), (1356527598,), (1356527622,), (1356527823,), (1356527833,), (1356527838,), (1356527840,), (1356527842,), (1356527859,), (1356527861,), (1356527864,), (1356527867,), (1356527891,), (1356527895,), (1356527897,), (1356527982,), (1356527986,), (1356527991,), (1356527999,), (1356528003,), (1356528011,), (1356528184,), (1356528189,), (1356528198,), (1356528204,), (1356528209,), (1356528214,), (1356528324,), (1356528352,), (1356528387,), (1356528414,), (1356528872,), (1356528898,), (1356528919,), (1356528924,), (1356529012,), (1356529017,), (1356529019,), (1356529022,), (1356529025,), (1356529113,), (1356529117,), (1356529120,), (1356529170,), (1356529182,), (1356529186,), (1356529237,), (1356529247,), (1356529250,), (1356529261,), (1356529264,), (1356529266,), (1356529406,), (1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,), (1356533731,), (1356533754,), (1356533782,), (1356533815,), (1356533856,), (1356534880,), (1356534890,), (1356534942,), (1356534970,), (1356535000,), (1356535530,), (1356535601,), (1356535647,), (1356536690,), (1356536742,), (1356536792,), (1356536816,), (1356537259,), (1356537293,), (1356537324,), (1356537365,), (1356537396,), (1356538843,), (1356538848,), (1356538852,), (1356538856,), (1356551892,), (1356551883,), (1356551888,), (1356551890,), (1356552007,), (1356552011,), (1356552031,), (1356552173,), (1356552180,), (1356552208,), (1356552234,), (1356552260,), (1356552263,), (1356552266,), (1356552269,), (1356552740,), (1356552754,), (1356552757,), (1356552759,), (1356552897,), (1356552899,), (1356552901,), (1356552908,), (1356552920,), (1356553268,), (1356553293,), (1356553318,), (1356553342,), (1356553365,), (1356553686,), (1356553770,), (1356553774,), (1356553784,), (1356553853,), (1356553856,), (1356553858,), (1356553898,), (1356553907,), (1356553909,), (1356553912,), (1356553915,), (1356553919,), (1356553949,), (1356553999,), (1356554078,), (1356554150,), (1356554223,), (1356554229,), (1356554230,), (1356554232,), (1356554290,), (1356554321,), (1356554356,), (1356554390,), (1356554427,), (1356554447,), (1356554451,), (1356554474,), (1356554480,), (1356554508,), (1356554534,), (1356554715,), (1356554717,), (1356554718,), (1356554720,), (1356554723,), (1356554775,), (1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,), (1356570872,), (1356570900,), (1356570928,), (1356571270,), (1356571296,), (1356571325,), (1356571362,), (1356571392,), (1356571492,), (1356571494,), (1356571520,), (1356571525,), (1356571528,), (1356571529,), (1356571739,), (1356571767,), (1356571795,), (1356571822,), (1356571848,), (1356572115,), (1356572117,), (1356572119,), (1356572121,), (1356572124,), (1356572253,), (1356572254,), (1356572256,), (1356572258,), (1356572299,), (1356572308,), (1356572312,), (1356572316,), (1356572505,), (1356572583,), (1356572610,), (1356572643,), (1356572667,), (1356572695,), (1356572847,), (1356572848,), (1356572849,), (1356572945,), (1356572983,), (1356573007,), (1356573031,), (1356573357,), (1356573389,), (1356573689,), (1356573713,), (1356575159,), (1356575235,), (1356575267,), (1356575306,), (1356575460,), (1356575475,), (1356575487,), (1356575510,), (1356575789,), (1356575727,), (1356575759,), (1356576071,), (1356576097,), (1356576130,), (1356576159,), (1356576662,), (1356576712,), (1356576743,), (1356576747,), (1356576771,), (1356576803,), (1356576805,), (1356576807,), (1356576809,), (1356576830,), (1356576832,), (1356576834,), (1356576837,), (1356576868,), (1356576870,), (1356576871,), (1356576872,), (1356576873,), (1356576875,), (1356576910,), (1356576913,), (1356576915,), (1356576956,), (1356576957,), (1356576958,), (1356576959,), (1356576961,), (1356576985,), (1356576986,), (1356576987,), (1356576988,), (1356577018,), (1356577019,), (1356577021,), (1356577141,), (1356577186,), (1356577188,), (1356577212,), (1356577214,), (1356577242,), (1356577238,), (1356577272,), (1356577280,), (1356577282,), (1356577284,), (1356577286,), (1356577288,), (1356577421,), (1356577445,), (1356577467,), (1356577489,), (1356577819,), (1356577847,), (1356577872,), (1356578109,), (1356578111,), (1356578112,), (1356578113,), (1356578115,), (1356578159,), (1356578160,), (1356578161,), (1356578162,), (1356578164,), (1356578165,), (1356578194,), (1356578207,), (1356578230,), (1356578261,), (1356578290,), (1356578332,), (1356578895,), (1356578940,), (1356579576,), (1356579616,), (1356579624,), (1356579625,), (1356579763,), (1356579764,), (1356579765,), (1356579766,), (1356579768,), (1356580017,), (1356580068,), (1356580069,), (1356580071,), (1356580295,), (1356580320,), (1356580343,), (1356580417,), (1356580517,), (1356580548,), (1356580826,), (1356580827,), (1356580828,), (1356580829,), (1356580830,), (1356581077,), (1356581102,), (1356581128,), (1356581329,), (1356581333,), (1356581334,), (1356581336,), (1356581338,), (1356581340,), (1356581387,), (1356581384,), (1356581385,), (1356581386,), (1356581428,), (1356581429,), (1356581430,), (1356581432,), (1356581459,), (1356581460,), (1356581487,), (1356581488,), (1356581511,), (1356581514,), (1356581515,), (1356581517,), (1356581519,), (1356581541,), (1356581542,), (1356581543,), (1356581544,), (1356581546,), (1356581571,), (1356581572,), (1356581573,), (1356581574,), (1356581630,), (1356581632,), (1356581653,), (1356581706,), (1356581709,), (1356581711,), (1356581713,), (1356581718,), (1356581738,), (1356581742,), (1356581744,), (1356581746,), (1356581748,), (1356581804,), (1356581806,), (1356581808,), (1356581993,), (1356581998,), (1356582017,), (1356582045,), (1356582069,), (1356582104,), (1356582163,), (1356582167,), (1356582215,), (1356582261,), (1356582270,), (1356582272,), (1356582274,), (1356582277,), (1356582283,), (1356582297,), (1356582303,), (1356582307,), (1356582311,), (1356582313,), (1356582315,), (1356582316,), (1356582355,), (1356582352,), (1356582353,), (1356582354,), (1356582373,), (1356582375,), (1356582377,), (1356582380,), (1356582383,), (1356582385,), (1356582408,), (1356582409,), (1356582410,), (1356582435,), (1356582436,), (1356582437,), (1356582438,), (1356582471,), (1356582473,), (1356582523,), (1356582554,), (1356582588,), (1356582700,), (1356582955,), (1356583810,), (1356583836,), (1356583872,), (1356583905,), (1356583939,), (1356584522,), (1356584587,), (1356584589,), (1356584711,), (1356584713,), (1356584737,), (1356584738,), (1356584740,), (1356584742,), (1356584744,), (1356584747,), (1356585201,), (1356585204,), (1356585206,), (1356585208,), (1356585210,), (1356585478,), (1356585508,), (1356585539,), (1356585592,), (1356585645,), (1356586130,), (1356586171,), (1356586222,), (1356586981,), (1356587007,), (1356587021,), (1356587023,), (1356587026,), (1356587825,), (1356587882,), (1356587943,), (1356588003,), (1356588058,), (1356588677,), (1356588542,), (1356588577,), (1356588610,), (1356588647,), (1356588786,), (1356588816,), (1356588843,), (1356588871,), (1356588899,), (1356588978,), (1356588980,), (1356588982,), (1356588986,), (1356588988,), (1356588990,), (1356589016,), (1356589019,), (1356589021,), (1356589023,), (1356589042,), (1356589045,), (1356589049,), (1356589051,), (1356589073,), (1356589077,), (1356589080,), (1356589082,), (1356589086,), (1356589098,), (1356589100,), (1356589103,), (1356589105,), (1356589107,), (1356589110,), (1356589148,), (1356589150,), (1356589178,), (1356589180,), (1356589182,), (1356589184,), (1356589213,), (1356589227,), (1356589230,), (1356589232,), (1356589235,), (1356589237,), (1356589296,), (1356589298,), (1356589366,), (1356600110,), (1356600041,), (1356600533,), (1356601688,), (1356602732,), (1356602733,), (1356602758,), (1356602760,), (1356603106,), (1356603132,), (1356603263,), (1356603356,), (1356603457,), (1356603478,), (1356603804,), (1356603806,), (1356603807,), (1356603808,), (1356603811,), (1356603813,), (1356603840,), (1356603836,), (1356603837,), (1356603838,), (1356603865,), (1356603867,), (1356603869,), (1356603872,), (1356603877,), (1356603882,), (1356603905,), (1356603906,), (1356603907,), (1356603908,), (1356603934,), (1356603935,), (1356603936,), (1356603937,), (1356603938,), (1356603940,), (1356603980,), (1356603982,), (1356603984,), (1356604029,), (1356604033,), (1356604035,), (1356604037,), (1356604063,), (1356604066,), (1356604069,), (1356604071,), (1356604074,), (1356604109,), (1356604112,), (1356604116,), (1356604120,), (1356604184,), (1356604187,), (1356604188,), (1356604189,), (1356604191,), (1356604192,), (1356604218,), (1356604219,), (1356604220,), (1356604222,), (1356604265,), (1356604266,), (1356604267,), (1356604268,), (1356604270,), (1356604272,), (1356604352,), (1356604377,), (1356604403,), (1356604432,), (1356604614,), (1356604615,), (1356604616,), (1356604617,), (1356604618,), (1356604637,), (1356604881,), (1356604882,), (1356604903,), (1356604923,), (1356605008,), (1356605040,), (1356605105,), (1356605168,), (1356605175,), (1356605191,), (1356605209,), (1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,), (1356607156,), (1356607158,), (1356607160,), (1356607161,), (1356607162,), (1356607165,), (1356607200,), (1356607197,), (1356607198,), (1356607462,), (1356607488,), (1356607515,), (1356607541,), (1356607566,), (1356607592,), (1356607688,), (1356607689,), (1356607690,), (1356607691,), (1356607693,), (1356607727,), (1356607728,), (1356607729,), (1356607730,), (1356607731,), (1356607771,), (1356607772,), (1356607773,), (1356607775,), (1356607776,), (1356607778,), (1356607818,), (1356607819,), (1356607820,), (1356607873,), (1356607875,), (1356607876,), (1356607877,), (1356607878,), (1356607880,), (1356607905,), (1356607906,), (1356607907,), (1356607908,), (1356607938,), (1356607939,), (1356607940,), (1356607941,), (1356607942,), (1356607972,), (1356607978,), (1356607980,), (1356607981,), (1356607999,), (1356608007,), (1356608015,), (1356608017,), (1356608020,), (1356608022,), (1356608044,), (1356608046,), (1356608049,), (1356608050,), (1356608053,), (1356608056,), (1356608074,), (1356608101,), (1356608130,), (1356608157,), (1356609466,), (1356609470,), (1356609475,), (1356609479,), (1356609591,), (1356609611,), (1356609640,), (1356609678,), (1356609706,), (1356609738,), (1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,), (1356610554,), (1356610557,), (1356610559,), (1356610561,), (1356610563,), (1356610566,), (1356610589,), (1356610593,), (1356610595,), (1356610597,), (1356610600,), (1356610646,), (1356610639,), (1356610641,), (1356610642,), (1356610643,), (1356610645,), (1356610670,), (1356610672,), (1356610674,), (1356610677,), (1356610681,), (1356610706,), (1356610707,), (1356610710,), (1356610714,), (1356610718,), (1356610720,), (1356610743,), (1356610744,), (1356610747,), (1356610749,), (1356610778,), (1356610784,), (1356610785,), (1356610788,), (1356610791,), (1356610792,), (1356610884,), (1356610888,), (1356610891,), (1356610899,), (1356610938,), (1356610940,), (1356610942,), (1356610944,), (1356610947,), (1356610951,), (1356610971,), (1356610974,), (1356610976,), (1356610978,), (1356611016,), (1356611017,), (1356611020,), (1356611022,), (1356611025,), (1356611058,), (1356611060,), (1356611063,), (1356611064,), (1356611067,), (1356611069,), (1356611108,), (1356611111,), (1356611115,), (1356611117,), (1356611121,), (1356611123,), (1356611152,), (1356611155,), (1356611157,), (1356611159,), (1356611161,), (1356611165,), (1356611188,), (1356611190,), (1356611193,), (1356611195,), (1356611199,), (1356611216,), (1356611218,), (1356611220,), (1356611222,), (1356611226,), (1356611250,), (1356611254,), (1356611256,), (1356611258,), (1356611263,), (1356611342,), (1356611332,), (1356611334,), (1356611336,), (1356611338,), (1356611368,), (1356611370,), (1356611372,), (1356611374,), (1356611379,), (1356611382,), (1356611410,), (1356611412,), (1356611414,), (1356611416,), (1356611420,), (1356611463,), (1356611466,), (1356611468,), (1356611472,), (1356611475,), (1356611477,), (1356611513,), (1356611515,), (1356611517,), (1356611521,), (1356611554,), (1356611558,), (1356611561,), (1356611564,), (1356611567,), (1356611570,), (1356611602,), (1356611604,), (1356611606,), (1356611648,), (1356611661,), (1356611663,), (1356611667,), (1356611670,), (1356611695,), (1356611699,), (1356611702,), (1356611705,), (1356611707,), (1356611711,), (1356611742,), (1356611745,), (1356611749,), (1356611752,), (1356611802,), (1356611806,), (1356611809,), (1356611812,), (1356611816,), (1356611820,), (1356611859,), (1356611863,), (1356611866,), (1356611870,), (1356611901,), (1356611906,), (1356611909,), (1356611942,), (1356611944,), (1356611946,), (1356611948,), (1356611952,), (1356611982,), (1356611985,), (1356611988,), (1356611991,), (1356611995,), (1356611997,), (1356612034,), (1356612016,), (1356612018,), (1356612020,), (1356612022,), (1356612026,), (1356612053,), (1356612055,), (1356612057,), (1356612083,), (1356612085,), (1356612087,), (1356612091,), (1356612096,), (1356612099,), (1356612138,), (1356612140,), (1356612142,), (1356612144,), (1356612181,), (1356612183,), (1356612185,), (1356612233,), (1356612235,), (1356612237,), (1356612239,), (1356612241,), (1356612245,), (1356612299,), (1356612302,), (1356612305,), (1356612309,), (1356612333,), (1356612335,), (1356612337,), (1356612339,), (1356612341,), (1356612379,), (1356612382,), (1356612386,), (1356612389,), (1356612391,), (1356612393,), (1356612423,), (1356612436,), (1356612438,), (1356612440,), (1356612442,), (1356612500,), (1356612503,), (1356612505,), (1356612507,), (1356612509,), (1356612549,), (1356612577,), (1356612605,), (1356612631,), (1356612660,), (1356612990,), (1356613017,), (1356613050,), (1356613105,), (1356613154,), (1356614058,), (1356614070,), (1356614099,), (1356614129,), (1356614178,), (1356614187,), (1356614274,), (1356614265,), (1356614268,), (1356614271,), (1356614315,), (1356614319,), (1356614322,), (1356614325,), (1356614328,), (1356614365,), (1356614369,), (1356614372,), (1356614411,), (1356614416,), (1356614418,), (1356614421,), (1356614424,), (1356614466,), (1356614470,), (1356614473,), (1356614476,), (1356614480,), (1356614511,), (1356614524,), (1356614527,), (1356614531,), (1356614535,), (1356614565,), (1356614568,), (1356614573,), (1356614577,), (1356614582,), (1356614586,), (1356614610,), (1356614613,), (1356614617,), (1356614620,), (1356614649,), (1356614652,), (1356614655,), (1356614659,), (1356614664,), (1356614666,), (1356614720,), (1356614724,), (1356614741,), (1356614745,), (1356614746,), (1356614827,), (1356614829,), (1356614831,), (1356614832,), (1356614835,), (1356614889,), (1356614892,), (1356614896,), (1356614899,), (1356614903,), (1356614905,), (1356614960,), (1356614961,), (1356614965,), (1356614968,), (1356614971,), (1356615014,), (1356615017,), (1356615021,), (1356615024,), (1356615026,), (1356615029,), (1356615084,), (1356615093,), (1356615097,), (1356615099,), (1356615103,), (1356615175,), (1356615154,), (1356615163,), (1356615166,), (1356615168,), (1356615173,), (1356615207,), (1356615211,), (1356615214,), (1356615218,), (1356615222,), (1356615258,), (1356615270,), (1356615297,), (1356615306,), (1356615308,), (1356615414,), (1356615419,), (1356615438,), (1356615456,), (1356615472,), (1356615579,), (1356615589,), (1356615593,), (1356615699,), (1356615704,), (1356615707,), (1356615712,), (1356615715,), (1356615718,), (1356615764,), (1356615774,), (1356615777,), (1356616179,), (1356616206,), (1356616251,), (1356616286,), (1356616319,), (1356616327,), (1356616472,), (1356616478,), (1356616483,), (1356616488,), (1356616491,), (1356616631,), (1356616634,), (1356616637,), (1356616648,), (1356616673,), (1356616702,), (1356616793,), (1356616798,), (1356616802,), (1356616811,), (1356616851,), (1356616878,), (1356617072,), (1356617101,), (1356617119,), (1356617123,), (1356617223,), (1356617229,), (1356617237,), (1356617245,), (1356617249,), (1356617252,), (1356617298,), (1356617301,), (1356617304,), (1356617356,), (1356617367,), (1356617372,), (1356617375,), (1356617380,), (1356617384,), (1356617500,), (1356617479,), (1356617482,), (1356617486,), (1356617489,), (1356617495,), (1356617547,), (1356617554,), (1356617565,), (1356617612,), (1356617616,), (1356617619,), (1356617624,), (1356617628,), (1356617632,), (1356617676,), (1356617681,), (1356617685,), (1356617687,), (1356617889,), (1356617895,), (1356617898,), (1356617902,), (1356617947,), (1356617949,), (1356617952,), (1356617954,), (1356617955,), (1356617957,), (1356617987,), (1356617993,), (1356617995,), (1356617997,), (1356618002,), (1356618027,), (1356618029,), (1356618033,), (1356618038,), (1356618041,), (1356618069,), (1356618071,), (1356618074,), (1356618168,), (1356618181,), (1356618186,), (1356618188,), (1356618201,), (1356618214,), (1356618270,), (1356618273,), (1356618276,), (1356618278,), (1356618279,), (1356618407,), (1356618411,), (1356618416,), (1356618418,), (1356618465,), (1356618471,), (1356618475,), (1356618488,), (1356618496,), (1356618504,), (1356618557,), (1356618567,), (1356618570,), (1356618574,), (1356618590,), (1356618667,), (1356618680,), (1356618686,), (1356618688,), (1356618824,), (1356618806,), (1356618810,), (1356618814,), (1356618816,), (1356618820,), (1356618849,), (1356618853,), (1356618865,), (1356618867,), (1356618903,), (1356618907,), (1356618909,), (1356618912,), (1356618916,), (1356618920,), (1356618950,), (1356618953,), (1356618956,), (1356619024,), (1356619030,), (1356619038,), (1356619045,), (1356619048,), (1356619069,), (1356619204,), (1356619208,), (1356619216,), (1356619219,), (1356619222,), (1356619226,), (1356619315,), (1356619326,), (1356619330,), (1356619367,), (1356619369,), (1356619373,), (1356619376,), (1356619380,), (1356619384,), (1356619429,), (1356619439,), (1356619447,), (1356619454,), (1356619548,), (1356619555,), (1356619564,), (1356619568,), (1356619571,), (1356619656,), (1356619659,), (1356619686,), (1356619690,), (1356619696,), (1356619716,), (1356619938,), (1356619943,), (1356619948,), (1356620144,), (1356620173,), (1356620206,), (1356620229,), (1356620259,), (1356620288,), (1356620689,), (1356620714,), (1356620775,), (1356620826,), (1356621295,), (1356621103,), (1356621204,), (1356621235,), (1356621265,), (1356621568,), (1356621598,), (1356621625,), (1356621658,), (1356621756,), (1356621782,), (1356621807,), (1356621834,), (1356621871,), (1356622044,), (1356622048,), (1356622051,), (1356622055,), (1356622070,), (1356622116,), (1356622120,), (1356622123,), (1356622209,), (1356622213,), (1356622217,), (1356622222,), (1356622269,), (1356622270,), (1356622272,), (1356622274,), (1356622283,), (1356622286,), (1356622358,), (1356622365,), (1356622369,), (1356622452,), (1356622454,), (1356622456,), (1356622458,), (1356622459,), (1356622463,), (1356622504,), (1356622517,), (1356622523,), (1356622527,), (1356622638,), (1356622668,), (1356622674,), (1356622685,), (1356622699,), (1356622704,), (1356622783,), (1356622807,), (1356622814,), (1356622826,), (1356622960,), (1356622984,), (1356623054,), (1356623083,), (1356623110,), (1356623137,), (1356623287,), (1356623295,), (1356623308,), (1356623335,), (1356623602,), (1356623614,), (1356623618,), (1356623619,), (1356623620,), (1356623625,), (1356623771,), (1356623753,), (1356623757,), (1356623761,), (1356623765,), (1356623767,), (1356623801,), (1356623804,), (1356623806,), (1356624009,), (1356624012,), (1356624018,), (1356624025,), (1356624034,), (1356624037,), (1356624134,), (1356624135,), (1356624137,), (1356624139,), (1356624142,), (1356624208,), (1356624211,), (1356624225,), (1356624240,), (1356624244,), (1356624407,), (1356624413,), (1356624415,), (1356624417,), (1356624419,), (1356624421,), (1356624506,), (1356624533,), (1356624563,), (1356624806,), (1356624809,), (1356624812,), (1356624816,), (1356624819,), (1356624881,), (1356624884,), (1356624887,), (1356624890,), (1356625099,), (1356625116,), (1356625124,), (1356625263,), (1356625265,), (1356625267,), (1356625269,), (1356625313,), (1356625318,), (1356625320,), (1356625323,), (1356625330,), (1356625343,), (1356625441,), (1356625469,), (1356625473,), (1356625527,), (1356625530,), (1356625531,), (1356625534,), (1356625536,), (1356625542,), (1356625580,), (1356625586,), (1356625591,), (1356625602,), (1356625606,), (1356625730,), (1356625723,), (1356625724,), (1356625727,), (1356625781,), (1356625793,), (1356625798,), (1356625801,), (1356625804,), (1356625845,), (1356625847,), (1356625850,), (1356625856,), (1356625925,), (1356625927,), (1356625932,), (1356625937,), (1356626066,), (1356626099,), (1356626129,), (1356626160,), (1356626195,), (1356626223,), (1356626473,), (1356626477,), (1356626480,), (1356626483,), (1356626765,), (1356626773,), (1356626782,), (1356626790,), (1356626842,), (1356626845,), (1356626849,), (1356626854,), (1356626859,), (1356626864,), (1356626893,), (1356626896,), (1356626899,), (1356626950,), (1356626953,), (1356626959,), (1356626962,), (1356626967,), (1356626972,), (1356627044,), (1356627050,), (1356627065,), (1356627068,), (1356627073,), (1356627076,), (1356627137,), (1356627140,), (1356627147,), (1356627151,), (1356627238,), (1356627254,), (1356627257,), (1356627265,), (1356627286,), (1356627310,), (1356627470,), (1356627474,), (1356627477,), (1356627483,), (1356627491,), (1356627497,), (1356627570,), (1356627577,), (1356627579,), (1356627738,), (1356627623,), (1356627626,), (1356627651,), (1356627678,), (1356627709,), (1356627966,), (1356627968,), (1356627970,), (1356628011,), (1356628017,), (1356628022,), (1356628027,), (1356628028,), (1356628031,), (1356628194,), (1356628202,), (1356628204,), (1356628206,), (1356628209,), (1356628263,), (1356628271,), (1356628281,), (1356628287,), (1356628291,), (1356628408,), (1356628410,), (1356628411,), (1356628413,), (1356628416,), (1356628468,), (1356628472,), (1356628475,), (1356628479,), (1356628506,), (1356628628,), (1356628631,), (1356628633,), (1356628635,), (1356628638,), (1356628692,), (1356628697,), (1356628700,), (1356628703,), (1356628705,), (1356628708,), (1356628748,), (1356628752,), (1356628756,), (1356628759,), (1356628761,), (1356628789,), (1356628796,), (1356628798,), (1356628801,), (1356628804,), (1356628807,), (1356628831,), (1356628834,), (1356628837,), (1356628841,), (1356628845,), (1356628868,), (1356628870,), (1356628873,), (1356628882,), (1356628887,), (1356628941,), (1356628947,), (1356628953,), (1356628960,), (1356628967,), (1356628971,), (1356629011,), (1356632675,), (1356632720,), (1356632723,), (1356632726,), (1356632728,), (1356632732,), (1356632735,), (1356632768,), (1356632773,), (1356632777,), (1356632782,), (1356632849,), (1356632873,), (1356632878,), (1356632881,), (1356632883,), (1356632887,), (1356632890,), (1356633048,), (1356633051,), (1356633055,), (1356633058,), (1356633102,), (1356633104,), (1356633107,), (1356633110,), (1356633113,), (1356633142,), (1356633145,), (1356633147,), (1356633151,), (1356633154,), (1356633165,), (1356633203,), (1356633218,), (1356633229,), (1356633264,), (1356633267,), (1356633269,), (1356633270,), (1356633272,), (1356633274,), (1356633309,), (1356633311,), (1356633319,), (1356633323,), (1356633423,), (1356633432,), (1356633439,), (1356633449,), (1356633454,), (1356633477,), (1356633782,), (1356633783,), (1356633787,), (1356633792,), (1356633802,), (1356633803,), (1356633867,), (1356633869,), (1356633870,), (1356633872,), (1356633873,), (1356633876,), (1356633911,), (1356633913,), (1356633915,), (1356633917,), (1356633922,), (1356633977,), (1356633979,), (1356633981,), (1356633982,), (1356633985,), (1356633987,), (1356634032,), (1356634015,), (1356634019,), (1356634021,), (1356634024,), (1356634028,), (1356634118,), (1356634125,), (1356634129,), (1356634132,), (1356634136,), (1356634140,), (1356634195,), (1356634197,), (1356634200,), (1356634203,), (1356634206,), (1356634230,), (1356634232,), (1356634235,), (1356634238,), (1356634240,), (1356634242,), (1356634275,), (1356634277,), (1356634279,), (1356634281,), (1356634347,), (1356634357,), (1356634361,), (1356634366,), (1356634368,), (1356634370,), (1356634538,), (1356634563,), (1356634590,), (1356634616,), (1356634643,), (1356634965,), (1356634997,), (1356635024,), (1356635054,), (1356635080,), (1356635108,), (1356635343,), (1356635366,), (1356635395,), (1356635727,), (1356635733,), (1356635735,), (1356635737,), (1356635740,), (1356635742,), (1356635770,), (1356635772,), (1356635773,), (1356635774,), (1356635776,), (1356635790,), (1356635813,), (1356635814,), (1356635819,), (1356636174,), (1356636223,), (1356636274,), (1356636324,), (1356637736,), (1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,), (1356640565,), (1356640570,), (1356640575,), (1356640580,), (1356640583,), (1356640589,), (1356640618,), (1356640621,), (1356640625,), (1356640628,), (1356640691,), (1356640671,), (1356640675,), (1356640678,), (1356640683,), (1356640687,), (1356640732,), (1356640735,), (1356640773,), (1356640982,), (1356641088,), (1356641091,), (1356641094,), (1356641098,), (1356641103,), (1356641106,), (1356641144,), (1356641147,), (1356641150,), (1356641153,), (1356641155,), (1356641209,), (1356641212,), (1356641215,), (1356641218,), (1356641222,), (1356641302,), (1356641306,), (1356641308,), (1356641311,), (1356641314,), (1356641363,), (1356641368,), (1356641372,), (1356641375,), (1356641414,), (1356641421,), (1356641429,), (1356641477,), (1356641482,), (1356641486,), (1356641520,), (1356641524,), (1356641526,), (1356641529,), (1356641572,), (1356641578,), (1356641581,), (1356641585,), (1356641589,), (1356641592,), (1356641635,), (1356641638,), (1356641642,), (1356641692,), (1356641700,), (1356641708,), (1356641710,), (1356641715,), (1356641719,), (1356641828,), (1356641875,), (1356641878,), (1356641882,), (1356641924,), (1356641926,), (1356641929,), (1356641932,), (1356641936,), (1356641941,), (1356641991,), (1356641996,), (1356642003,), (1356642014,), (1356642019,), (1356642103,), (1356642086,), (1356642090,), (1356642093,), (1356642098,), (1356642147,), (1356642151,), (1356642156,), (1356642164,), (1356642172,), (1356642175,), (1356642234,), (1356642238,), (1356642242,), (1356642245,), (1356642249,), (1356642289,), (1356642293,), (1356642298,), (1356642303,), (1356642306,), (1356642310,), (1356642349,), (1356642369,), (1356642374,), (1356642380,), (1356642599,), (1356642602,), (1356642605,), (1356642608,), (1356642612,), (1356642617,), (1356642640,), (1356642654,), (1356642658,), (1356642663,), (1356642666,), (1356642710,), (1356642715,), (1356642720,), (1356642725,), (1356642731,), (1356642806,), (1356642813,), (1356642816,), (1356642820,), (1356642825,), (1356642863,), (1356642867,), (1356642870,), (1356642875,), (1356642881,), (1356642885,), (1356642959,), (1356642967,), (1356642970,), (1356642993,), (1356643121,), (1356643156,), (1356643187,), (1356643213,), (1356643238,), (1356643264,), (1356643562,), (1356643583,), (1356643594,), (1356643855,), (1356643857,), (1356643860,), (1356643862,), (1356643985,), (1356643989,), (1356643992,), (1356643995,), (1356643999,), (1356644003,), (1356644049,), (1356644037,), (1356644043,), (1356644044,), (1356644046,), (1356644086,), (1356644088,), (1356644090,), (1356644142,), (1356644146,), (1356644162,), (1356644165,), (1356644167,), (1356644169,), (1356644222,), (1356644225,), (1356644236,), (1356644564,), (1356644578,), (1356644580,), (1356644597,), (1356644622,), (1356644641,), (1356644792,), (1356644797,), (1356644801,), (1356644803,), (1356644891,), (1356644897,), (1356644900,), (1356644904,), (1356644910,), (1356644914,), (1356645010,), (1356645015,), (1356645017,), (1356645021,), (1356645315,), (1356645320,), (1356645323,), (1356645328,), (1356645331,), (1356645335,), (1356645413,), (1356645416,), (1356645420,), (1356645423,), (1356645427,), (1356645430,), (1356645445,), (1356645454,), (1356645472,), (1356645475,), (1356645478,), (1356645485,), (1356645487,), (1356645490,), (1356645493,), (1356645507,), (1356645518,), (1356645521,), (1356645524,), (1356645527,), (1356645530,), (1356645540,), (1356645598,), (1356645608,), (1356645614,), (1356645621,), (1356645816,), (1356645781,), (1356645786,), (1356646291,), (1356646445,), (1356646549,), (1356646615,), (1356646729,), (1356646806,), (1356647479,), (1356647532,), (1356647585,), (1356648019,), (1356648095,), (1356648175,), (1356648251,), (1356648347,), (1356648413,), (1356648936,), (1356649156,), (1356649187,), (1356649201,), (1356649394,), (1356649398,), (1356649402,), (1356649421,), (1356649454,), (1356649776,), (1356649800,), (1356650035,), (1356650045,), (1356650075,), (1356650170,), (1356650173,), (1356650177,), (1356650181,), (1356650184,), (1356650224,), (1356650228,), (1356650233,), (1356650324,), (1356650329,), (1356650332,), (1356650340,), (1356650345,), (1356650396,), (1356650399,), (1356650402,), (1356650405,), (1356650408,), (1356650412,), (1356650432,), (1356650435,), (1356650438,), (1356650442,), (1356650482,), (1356650487,), (1356650497,), (1356650502,), (1356650506,), (1356650510,), (1356650536,), (1356650542,), (1356650548,), (1356650553,), (1356650558,), (1356650620,), (1356650594,), (1356650598,), (1356650613,), (1356650616,), (1356650643,), (1356650647,), (1356650649,), (1356650652,), (1356650656,), (1356650659,), (1356650685,), (1356650688,), (1356650690,), (1356650694,), (1356650737,), (1356650739,), (1356650742,), (1356650745,), (1356650750,), (1356650755,), (1356650801,), (1356650805,), (1356650807,), (1356650810,), (1356650816,), (1356650875,), (1356650876,), (1356650879,), (1356650882,), (1356650929,), (1356650931,), (1356650935,), (1356650937,), (1356650939,), (1356650971,), (1356650981,), (1356650983,), (1356650989,), (1356651038,), (1356651042,), (1356651045,), (1356651049,), (1356651054,), (1356651058,), (1356651083,), (1356651087,), (1356651092,), (1356651097,), (1356651144,), (1356651148,), (1356651152,), (1356651155,), (1356651158,), (1356651160,), (1356651178,), (1356651182,), (1356651185,), (1356651187,), (1356651221,), (1356651224,), (1356651227,), (1356651231,), (1356651236,), (1356651240,), (1356651259,), (1356651262,), (1356651264,), (1356651318,), (1356651323,), (1356651328,), (1356651333,), (1356651340,), (1356651344,), (1356651420,), (1356651408,), (1356651411,), (1356651474,), (1356651477,), (1356651481,), (1356651485,), (1356651489,), (1356651492,), (1356651694,), (1356651713,), (1356651718,), (1356651723,), (1356651734,), (1356651737,), (1356651885,), (1356651889,), (1356651894,), (1356651907,), (1356652063,), (1356652066,), (1356652068,), (1356652070,), (1356652071,), (1356652132,), (1356652172,), (1356652176,), (1356652179,), (1356652183,), (1356652362,), (1356652404,), (1356652430,), (1356652468,), (1356652518,), (1356652545,), (1356652839,), (1356652892,), (1356652944,), (1356652983,), (1356653015,), (1356653277,), (1356653299,), (1356653302,), (1356653619,), (1356653622,), (1356653624,), (1356653627,), (1356653629,), (1356653790,), (1356653816,), (1356653844,), (1356653871,), (1356653903,), (1356653996,), (1356654000,), (1356654002,), (1356654006,), (1356654097,), (1356654121,), (1356654160,), (1356654184,), (1356654211,), (1356654229,), (1356654453,), (1356654475,), (1356654483,), (1356654499,), (1356654540,), (1356654567,), (1356654682,), (1356654685,), (1356654687,), (1356654690,), (1356654755,), (1356654738,), (1356654742,), (1356654747,), (1356654749,), (1356654752,), (1356654830,), (1356654856,), (1356654868,), (1356654872,), (1356654946,), (1356654949,), (1356654951,), (1356654953,), (1356654957,), (1356654961,), (1356655220,), (1356655244,), (1356655272,), (1356655294,), (1356655499,), (1356655785,), (1356655915,), (1356655939,), (1356656290,), (1356656292,), (1356656295,), (1356656298,), (1356656301,), (1356656464,), (1356656470,), (1356656472,), (1356656474,), (1356656608,), (1356656642,), (1356657137,), (1356657175,), (1356657218,), (1356657363,), (1356657371,), (1356657396,), (1356657413,), (1356657416,), (1356657419,), (1356657451,), (1356657455,), (1356657459,), (1356657463,), (1356657514,), (1356657516,), (1356657523,), (1356657527,), (1356657529,), (1356657532,), (1356657690,), (1356657702,), (1356657706,), (1356657734,), (1356657785,), (1356657787,), (1356657789,), (1356657832,), (1356657859,), (1356657886,), (1356658979,), (1356659582,), (1356659677,), (1356659752,), (1356659828,), (1356660135,), (1356660231,), (1356660287,), (1356660375,), (1356660413,), (1356660691,), (1356660577,), (1356660610,), (1356660674,), (1356661004,), (1356661016,), (1356661051,), (1356661082,), (1356661135,), (1356661459,), (1356661488,), (1356661512,), (1356661545,), (1356661549,), (1356661552,), (1356661593,), (1356661598,), (1356661602,), (1356661606,), (1356661642,), (1356661649,), (1356661653,), (1356661657,), (1356661663,), (1356661667,), (1356661698,), (1356661701,), (1356661708,), (1356661711,), (1356661759,), (1356662101,), (1356662108,), (1356662112,), (1356662115,), (1356662148,), (1356662152,), (1356662157,), (1356662159,), (1356662162,), (1356662310,), (1356662408,), (1356662434,), (1356662462,), (1356662598,), (1356662625,), (1356662649,), (1356662850,), (1356662853,), (1356677767,), (1356688539,), (1356688887,), (1356688921,), (1356688953,), (1356689003,), (1356689078,), (1356689134,), (1356689468,), (1356689496,), (1356689507,), (1356689511,), (1356689513,), (1356689517,), (1356689921,), (1356689925,), (1356689928,), (1356690747,), (1356690764,), (1356690792,), (1356690797,), (1356691208,), (1356691224,), (1356691254,), (1356691283,), (1356691713,), (1356691772,), (1356691822,), (1356691860,), (1356691877,), (1356692020,), (1356692034,), (1356692040,), (1356692044,), (1356692047,), (1356692051,), (1356692152,), (1356692166,), (1356692198,), (1356692226,), (1356692490,), (1356692493,), (1356692498,), (1356692504,), (1356692587,), (1356692643,), (1356692695,), (1356692804,), (1356692835,), (1356693113,), (1356693143,), (1356697911,), (1356698407,), (1356698435,), (1356699095,), (1356699746,), (1356699748,), (1356699753,), (1356699778,), (1356700263,), (1356700313,), (1356700944,), (1356700948,), (1356700953,), (1356700956,), (1356700974,), (1356701022,), (1356701311,), (1356701380,), (1356701449,), (1356702506,), (1356702536,), (1356702571,), (1356702762,), (1356702766,), (1356702768,), (1356702771,), (1356702776,), (1356702779,), (1356703035,), (1356703065,), (1356703095,), (1356703123,), (1356703152,), (1356703182,), (1356703704,), (1356703740,), (1356703773,), (1356704248,), (1356704115,), (1356704167,), (1356704200,), (1356704214,), (1356704243,), (1356704842,), (1356704917,), (1356704969,), (1356705014,), (1356705266,), (1356705274,), (1356705292,), (1356705295,), (1356705301,), (1356705695,), (1356705697,), (1356705700,), (1356705703,), (1356705708,), (1356705966,), (1356705968,), (1356705972,), (1356706159,), (1356706162,), (1356706165,), (1356706167,), (1356706169,), (1356706173,), (1356706441,), (1356706444,), (1356706464,), (1356706552,), (1356706556,), (1356706586,), (1356706865,), (1356706893,), (1356707330,), (1356707342,), (1356707371,), (1356707400,), (1356707761,), (1356707765,), (1356707766,), (1356707794,), (1356707896,), (1356707928,), (1356707982,), (1356708022,), (1356708059,), (1356708255,), (1356708258,), (1356708260,), (1356708479,), (1356708507,), (1356708537,), (1356708567,), (1356708597,), (1356708750,), (1356708751,), (1356708777,), (1356708825,), (1356708858,), (1356708957,), (1356709271,), (1356709276,), (1356709883,), (1356709799,), (1356709803,), (1356709817,), (1356709877,), (1356709879,), (1356710159,), (1356710190,), (1356710293,), (1356710343,), (1356710481,), (1356710593,), (1356710800,), (1356710831,), (1356710884,), (1356711001,), (1356711365,), (1356711426,), (1356711456,), (1356711481,), (1356711510,), (1356711748,), (1356711776,), (1356711853,), (1356711895,), (1356711928,), (1356712452,), (1356712747,), (1356712897,), (1356713466,), (1356713471,), (1356713474,), (1356713477,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 32, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22770243]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] map_info['map_portfolio_photo'] : {22770243: [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748, 1356711510, 1356711481, 1356711456, 1356711426, 1356711365, 1356711001, 1356710884, 1356710831, 1356710800, 1356710593, 1356710481, 1356710343, 1356710293, 1356710190, 1356710159, 1356709879, 1356709877, 1356709817, 1356709803, 1356709799]} final : True mtd_id 4302 list_pids : [1356713477, 1356713474, 1356713471, 1356713466, 1356712897, 1356712747, 1356712452, 1356711928, 1356711895, 1356711853, 1356711776, 1356711748] Looping around the photos to save general results len do output : 1 /22770243Didn'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, '2803243') ('4302', '22770243', '1356713477', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243') ('4302', None, None, None, None, None, None, None, '2803243') ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '22770243', 'None', None, None, None, None, '2803243'), ('4302', '22770243', '1356713477', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713474', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713471', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356713466', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712897', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712747', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356712452', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711928', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711895', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711853', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711776', None, None, None, None, None, '2803243'), ('4302', '22770243', '1356711748', None, None, None, None, None, '2803243')] time used for this insertion : 0.014629602432250977 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8183541297912598 time spend to save output : 0.014977455139160156 total time spend for step 5 : 2.83333158493042 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 (2803243) 2.11user 2.66system 0:09.53elapsed 50%CPU (0avgtext+0avgdata 160804maxresident)k 3328inputs+11680outputs (46major+75416minor)pagefaults 0swaps