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 : 2330102 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 (2581430) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2581430) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464482 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2581430'] with mtr_portfolio_ids : ['20464482'] and first list_photo_ids : [] new path : /proc/2330102/ Name: python3 Umask: 0002 State: R (running) Tgid: 2330102 Ngid: 0 Pid: 2330102 PPid: 2330100 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2330102 NSpid: 2330102 NSpgid: 2329075 NSsid: 2329075 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99136 kB VmRSS: 99136 kB RssAnon: 59760 kB RssFile: 39376 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 170 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2330102', 'Ngid': '0', 'Pid': '2330102', 'PPid': '2330100', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2330102', 'NSpid': '2330102', 'NSpgid': '2329075', 'NSsid': '2329075', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99136 kB', 'VmRSS': '99136 kB', 'RssAnon': '59760 kB', 'RssFile': '39376 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '170'} ('datou_batch_current', '2330102', '1106844', '0', '1106844', '865596', '99136', b'', 'marlene', '2581430') 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 (20464482) 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 (2581430 ) ) 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 (20464482) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336952021, 'portfolio_id': 20464482}, {'photo_id': 1336950427, 'portfolio_id': 20464482}, {'photo_id': 1336950424, 'portfolio_id': 20464482}, {'photo_id': 1336950027, 'portfolio_id': 20464482}, {'photo_id': 1336949973, 'portfolio_id': 20464482}, {'photo_id': 1336949909, 'portfolio_id': 20464482}, {'photo_id': 1336949847, 'portfolio_id': 20464482}, {'photo_id': 1336948918, 'portfolio_id': 20464482}, {'photo_id': 1336948914, 'portfolio_id': 20464482}, {'photo_id': 1336947198, 'portfolio_id': 20464482}] map_portfolio_id_photo_id: {20464482: [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198]} ##### 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.42275404930114746 #### 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 Thu Feb 13 05:34:28 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 (20464482) 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 : 20464482 get user id for portfolio 20464482 get sub ptf for main ptf 20464482, type 3726 and hashtags ['plastique', 'mal_croppe', 'metal', 'Carton_gris', 'environnement', 'autre_refus', 'cartonnette', 'flou', 'kraft', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse'] 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`=20464482 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','metal','Carton_gris','environnement','autre_refus','cartonnette','flou','kraft','Carton_brun','papier','Teint_Dans_La_Masse')) 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`=20464482 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','metal','Carton_gris','environnement','autre_refus','cartonnette','flou','kraft','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20464482, 'sub_port_id': 20464483, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137422, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'Carton_brun': {'main_port_id': 20464482, 'sub_port_id': 20464484, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137423, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'metal': {'main_port_id': 20464482, 'sub_port_id': 20464485, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137424, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20464482, 'sub_port_id': 20464486, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137425, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'Carton_gris': {'main_port_id': 20464482, 'sub_port_id': 20464487, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137426, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'flou': {'main_port_id': 20464482, 'sub_port_id': 20464488, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137427, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'mal_croppe': {'main_port_id': 20464482, 'sub_port_id': 20464489, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137428, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'cartonnette': {'main_port_id': 20464482, 'sub_port_id': 20464490, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137429, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'kraft': {'main_port_id': 20464482, 'sub_port_id': 20464491, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137430, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'papier': {'main_port_id': 20464482, 'sub_port_id': 20464492, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137431, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'autre_refus': {'main_port_id': 20464482, 'sub_port_id': 20464493, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137432, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}, 'environnement': {'main_port_id': 20464482, 'sub_port_id': 20464494, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137433, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464483 , 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=20464482 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 (20464483) result : ((1336950666,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464484 , 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=20464482 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 (20464484) result : ((1336950443,), (1336950444,), (1336952419,), (1336959600,), (1336959601,), (1336959602,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464485 , 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=20464482 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 (20464485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464486 , 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=20464482 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 (20464486) result : ((1336950641,), (1336950643,), (1336952409,), (1336952410,), (1336959599,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464487 , 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=20464482 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 (20464487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464488 , 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=20464482 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 (20464488) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464489 , 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=20464482 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 (20464489) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464490 , 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=20464482 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 (20464490) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464491 , 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=20464482 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 (20464491) result : ((1336950445,), (1336959603,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464492 , 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=20464482 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 (20464492) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464493 , 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=20464482 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 (20464493) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20464494 , 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=20464482 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 (20464494) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20464482) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20464482 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','metal','Carton_gris','environnement','autre_refus','cartonnette','flou','kraft','Carton_brun','papier','Teint_Dans_La_Masse')) 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`=20464482 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','metal','Carton_gris','environnement','autre_refus','cartonnette','flou','kraft','Carton_brun','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20464482, 'sub_port_id': 20464495, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137434, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'Carton_brun': {'main_port_id': 20464482, 'sub_port_id': 20464496, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137435, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'metal': {'main_port_id': 20464482, 'sub_port_id': 20464497, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137436, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20464482, 'sub_port_id': 20464498, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137437, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'Carton_gris': {'main_port_id': 20464482, 'sub_port_id': 20464499, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137438, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'flou': {'main_port_id': 20464482, 'sub_port_id': 20464500, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137439, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'mal_croppe': {'main_port_id': 20464482, 'sub_port_id': 20464501, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137440, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'cartonnette': {'main_port_id': 20464482, 'sub_port_id': 20464502, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137441, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'kraft': {'main_port_id': 20464482, 'sub_port_id': 20464503, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137442, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'papier': {'main_port_id': 20464482, 'sub_port_id': 20464504, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137443, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'autre_refus': {'main_port_id': 20464482, 'sub_port_id': 20464505, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137444, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 46, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}, 'environnement': {'main_port_id': 20464482, 'sub_port_id': 20464506, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13137445, 'last_updated_at': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 12, 0, 52, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 12, 0, 46, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464492 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20464506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20464494 lien utilise dans velours : https://www.fotonower.com/velours/20464495,20464496,20464497,20464498,20464499,20464500,20464501,20464502,20464503,20464504,20464505,20464506?tags=plastique,Carton_brun,metal,Teint_Dans_La_Masse,Carton_gris,flou,mal_croppe,cartonnette,kraft,papier,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20464482]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] map_info['map_portfolio_photo'] : {20464482: [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198]} final : False mtd_id 4302 list_pids : [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] Looping around the photos to save general results len do output : 1 /20464482. 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, '2581430') ('4302', '20464482', '1336952021', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20464482', "{'plastique': 20464483, 'Carton_brun': 20464484, 'metal': 20464485, 'Teint_Dans_La_Masse': 20464486, 'Carton_gris': 20464487, 'flou': 20464488, 'mal_croppe': 20464489, 'cartonnette': 20464490, 'kraft': 20464491, 'papier': 20464492, 'autre_refus': 20464493, 'environnement': 20464494}", None, None, None, None, '2581430'), ('4302', '20464482', '1336952021', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430')] time used for this insertion : 0.013480663299560547 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5078952312469482 time spend to save output : 0.013824224472045898 total time spend for step 1 : 1.5217194557189941 step2:final Thu Feb 13 05:34:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20464482) 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 20464482 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336948918,1336947198,1336948914,1336950027,1336949973,1336949909,1336949847,1336950427,1336950424,1336952021); 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([20464482]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} new output for save of step final : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] map_info['map_portfolio_photo'] : {20464482: [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198]} final : False mtd_id 4302 list_pids : [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] Looping around the photos to save general results len do output : 10 /1336952021.Didn't retrieve data . /1336950427.Didn't retrieve data . /1336950424.Didn't retrieve data . /1336950027.Didn't retrieve data . /1336949973.Didn't retrieve data . /1336949909.Didn't retrieve data . /1336949847.Didn't retrieve data . /1336948918.Didn't retrieve data . /1336948914.Didn't retrieve data . /1336947198.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, '2581430') ('4302', '20464482', '1336952021', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '20464482', '1336952021', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336950427', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336950424', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336950027', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336949973', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336949909', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336949847', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336948918', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336948914', '0.02243325667700368', None, None, None, None, '2581430'), ('4302', '20464482', '1336947198', '0.02243325667700368', None, None, None, None, '2581430')] time used for this insertion : 0.04474377632141113 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06614851951599121 time spend to save output : 0.045258283615112305 total time spend for step 2 : 0.11140680313110352 step3:velours_tree Thu Feb 13 05:34:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20464482: [{'plastique': 20464483, 'Carton_brun': 20464484, 'metal': 20464485, 'Teint_Dans_La_Masse': 20464486, 'Carton_gris': 20464487, 'flou': 20464488, 'mal_croppe': 20464489, 'cartonnette': 20464490, 'kraft': 20464491, 'papier': 20464492, 'autre_refus': 20464493, 'environnement': 20464494}]} input_args_next_step : {20464482: ()} output_args : {20464482: [{'plastique': 20464483, 'Carton_brun': 20464484, 'metal': 20464485, 'Teint_Dans_La_Masse': 20464486, 'Carton_gris': 20464487, 'flou': 20464488, 'mal_croppe': 20464489, 'cartonnette': 20464490, 'kraft': 20464491, 'papier': 20464492, 'autre_refus': 20464493, 'environnement': 20464494}]} args : 20464482 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': 20464483, 'Carton_brun': 20464484, 'metal': 20464485, 'Teint_Dans_La_Masse': 20464486, 'Carton_gris': 20464487, 'flou': 20464488, 'mal_croppe': 20464489, 'cartonnette': 20464490, 'kraft': 20464491, 'papier': 20464492, 'autre_refus': 20464493, 'environnement': 20464494},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20464482) 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([20464482]) 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.38138437271118164 time spend to save output : 6.0558319091796875e-05 total time spend for step 3 : 0.38144493103027344 step4:send_mail_cod Thu Feb 13 05:34:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} input_args_next_step : {1336952021: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336952021 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336950427 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336950424 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336950027 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336949973 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336949909 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336949847 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336948918 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336948914 depend.output_id : 0 input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ()} output_args : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',)} args : 1336947198 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 : {20464482: [{'plastique': 20464483, 'Carton_brun': 20464484, 'metal': 20464485, 'Teint_Dans_La_Masse': 20464486, 'Carton_gris': 20464487, 'flou': 20464488, 'mal_croppe': 20464489, 'cartonnette': 20464490, 'kraft': 20464491, 'papier': 20464492, 'autre_refus': 20464493, 'environnement': 20464494}]} input_args_next_step : {1336952021: ('0.02243325667700368',), 1336950427: ('0.02243325667700368',), 1336950424: ('0.02243325667700368',), 1336950027: ('0.02243325667700368',), 1336949973: ('0.02243325667700368',), 1336949909: ('0.02243325667700368',), 1336949847: ('0.02243325667700368',), 1336948918: ('0.02243325667700368',), 1336948914: ('0.02243325667700368',), 1336947198: ('0.02243325667700368',), 20464482: ()} output_args : {20464482: [{'plastique': 20464483, 'Carton_brun': 20464484, 'metal': 20464485, 'Teint_Dans_La_Masse': 20464486, 'Carton_gris': 20464487, 'flou': 20464488, 'mal_croppe': 20464489, 'cartonnette': 20464490, 'kraft': 20464491, 'papier': 20464492, 'autre_refus': 20464493, 'environnement': 20464494}]} args : 20464482 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 :11, first value : ('0.02243325667700368',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20464482) 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 (1336952021,1336950427,1336950424,1336950027,1336949973,1336949909,1336949847,1336948918,1336948914,1336947198) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336947198 begin to download photo : 1336949847 begin to download photo : 1336950027 begin to download photo : 1336952021 download finish for photo 1336950027 begin to download photo : 1336950424 download finish for photo 1336952021 download finish for photo 1336947198 begin to download photo : 1336948914 download finish for photo 1336949847 begin to download photo : 1336949909 download finish for photo 1336948914 begin to download photo : 1336948918 download finish for photo 1336950424 begin to download photo : 1336950427 download finish for photo 1336949909 begin to download photo : 1336949973 download finish for photo 1336950427 download finish for photo 1336948918 download finish for photo 1336949973 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20464482_13-02-2025_05_34_31.pdf 20464483 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=20464483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336950666: '1739317514_3068779_1336948914_ff5c56cc91a865739ae88c6f6baf761c_rle_crop_3670857424_0.png'} change filename to text .imagette204644831739421271/ imagette204644831739421271/1739317514_3068779_1336948914_ff5c56cc91a865739ae88c6f6baf761c_rle_crop_3670857424_0.png.png imagette204644851739421271/ imagette204644881739421271/ imagette204644891739421271/ imagette204644901739421271/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/e3a7af9229c1b98e017ca8a8e36a6994_861560.png imagette204644831739421271 20464485 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=20464485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204644851739421271 20464488 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=20464488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204644881739421271 20464489 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=20464489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204644891739421271 20464490 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=20464490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204644901739421271 20464491 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=20464491 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336950445: '1739317492_3068545_1336949973_4e0de60447cfdce74eceb5ad2bf25685_rle_crop_3670857277_0.png', 1336959603: '1739320253_3090604_1336949973_4e0de60447cfdce74eceb5ad2bf25685_rle_crop_3670857277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/df6fb711d3e3bc6a207a186acc5a6e2d_9820958.png change filename to text .imagette204644911739421271/ imagette204644911739421271/1739320253_3090604_1336949973_4e0de60447cfdce74eceb5ad2bf25685_rle_crop_3670857277_0.png.png imagette204644911739421271/1739317492_3068545_1336949973_4e0de60447cfdce74eceb5ad2bf25685_rle_crop_3670857277_0.png.png imagette204644931739421271/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/df6fb711d3e3bc6a207a186acc5a6e2d_41568253.png imagette204644911739421271 20464493 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=20464493 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204644931739421271 20464484 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=20464484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336950443: '1739317492_3068545_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857312_0.png', 1336950444: '1739317492_3068545_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857313_0.png', 1336952419: '1739317973_3072218_1336950424_2fa87ee36e54424c6e7b0d7327b5006c_rle_crop_3670868329_0.png', 1336959600: '1739320253_3090604_1336950427_f0f94860d53b38df91ab9a3e3a965bf3_rle_crop_3670913312_0.png', 1336959601: '1739320253_3090604_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857312_0.png', 1336959602: '1739320253_3090604_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857313_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fcc146c2c4516e970c6f3f50be10b6fb_84993628.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f42d08ab42d1e9ef182914c918ffa1d7_49057416.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/6dad91fc00beace749bb36120f265f01_50163711.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/09dfed07fa6486ae4c54f845c5199ae8_48150163.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fcc146c2c4516e970c6f3f50be10b6fb_891364.png change filename to text .imagette204644841739421271/ imagette204644841739421271/1739317492_3068545_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857313_0.png.png imagette204644841739421271/1739317973_3072218_1336950424_2fa87ee36e54424c6e7b0d7327b5006c_rle_crop_3670868329_0.png.png imagette204644841739421271/1739317492_3068545_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857312_0.png.png imagette204644841739421271/1739320253_3090604_1336950427_f0f94860d53b38df91ab9a3e3a965bf3_rle_crop_3670913312_0.png.png imagette204644841739421271/1739320253_3090604_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857312_0.png.png imagette204644841739421271/1739320253_3090604_1336949847_aacff42528783ae79f0f3a5c43bd80dd_rle_crop_3670857313_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f42d08ab42d1e9ef182914c918ffa1d7_13598797.png imagette204644841739421271 20464486 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=20464486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336950641: '1739317514_3068779_1336950027_aeeb10a9a94b5e52d5857d5a913bbdde_rle_crop_3670857387_0.png', 1336950643: '1739317514_3068779_1336950027_aeeb10a9a94b5e52d5857d5a913bbdde_rle_crop_3670857383_0.png', 1336952409: '1739317973_3072218_1336950424_2fa87ee36e54424c6e7b0d7327b5006c_rle_crop_3670868328_0.png', 1336952410: '1739317973_3072218_1336950424_2fa87ee36e54424c6e7b0d7327b5006c_rle_crop_3670868327_0.png', 1336959599: '1739320253_3090604_1336950427_f0f94860d53b38df91ab9a3e3a965bf3_rle_crop_3670913310_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/97ba017173519c225babdc3d74dcadc0_75295580.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/fc737119d9c3d84f6a620311eb21ace5_13487359.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/bb524a42d1819ad6aa5c1ac11082f0ae_14717504.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/915c4e240db4e689ccbb60f9fe175ae7_1204515.png change filename to text .imagette204644861739421271/ imagette204644861739421271/1739317514_3068779_1336950027_aeeb10a9a94b5e52d5857d5a913bbdde_rle_crop_3670857383_0.png.png imagette204644861739421271/1739320253_3090604_1336950427_f0f94860d53b38df91ab9a3e3a965bf3_rle_crop_3670913310_0.png.png imagette204644861739421271/1739317514_3068779_1336950027_aeeb10a9a94b5e52d5857d5a913bbdde_rle_crop_3670857387_0.png.png imagette204644861739421271/1739317973_3072218_1336950424_2fa87ee36e54424c6e7b0d7327b5006c_rle_crop_3670868327_0.png.png imagette204644861739421271/1739317973_3072218_1336950424_2fa87ee36e54424c6e7b0d7327b5006c_rle_crop_3670868328_0.png.png imagette204644871739421272/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/9d122dcb33a26ba1b950598fa9b07d20_58116895.png imagette204644861739421271 20464487 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=20464487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204644871739421272 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20464482 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20464495,20464496,20464497,20464498,20464499,20464500,20464501,20464502,20464503,20464504,20464505,20464506?tags=plastique,Carton_brun,metal,Teint_Dans_La_Masse,Carton_gris,flou,mal_croppe,cartonnette,kraft,papier,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1336952021] : ('0.02243325667700368',) no score found for photo 1336952021 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336950427] : ('0.02243325667700368',) no score found for photo 1336950427 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336950424] : ('0.02243325667700368',) no score found for photo 1336950424 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336950027] : ('0.02243325667700368',) no score found for photo 1336950027 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336949973] : ('0.02243325667700368',) no score found for photo 1336949973 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336949909] : ('0.02243325667700368',) no score found for photo 1336949909 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336949847] : ('0.02243325667700368',) no score found for photo 1336949847 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336948918] : ('0.02243325667700368',) no score found for photo 1336948918 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336948914] : ('0.02243325667700368',) no score found for photo 1336948914 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com args[1336947198] : ('0.02243325667700368',) no score found for photo 1336947198 apple ('0.02243325667700368',) We are sending mail with results at report@fotonower.com refus_total : 0.02243325667700368 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=20464482 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_P20464482_13-02-2025_05_34_31.pdf results_Auto_P20464482_13-02-2025_05_34_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20464482_13-02-2025_05_34_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20464482','results_Auto_P20464482_13-02-2025_05_34_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20464482_13-02-2025_05_34_31.pdf','pdf','','0.13','0.02243325667700368') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20464482]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] map_info['map_portfolio_photo'] : {20464482: [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198]} final : False mtd_id 4302 list_pids : [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] 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, '2581430') ('4302', '20464482', '1336952021', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '20464482', '1336952021', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430')] time used for this insertion : 0.01749277114868164 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9081053733825684 time spend to save output : 0.01781940460205078 total time spend for step 4 : 3.925924777984619 step5:split_time_score Thu Feb 13 05:34:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20464482'] 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 : [('20464482',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20464482) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336952021: {'path': 'temp/1739421270_2330102_1336952021_20c8a3ed1073c7ec247ea41ed9134fc0.jpg', 'extension': 'jpg'}, 1336950027: {'path': 'temp/1739421270_2330102_1336950027_aeeb10a9a94b5e52d5857d5a913bbdde.jpg', 'extension': 'jpg'}, 1336950424: {'path': 'temp/1739421270_2330102_1336950424_2fa87ee36e54424c6e7b0d7327b5006c.jpg', 'extension': 'jpg'}, 1336950427: {'path': 'temp/1739421270_2330102_1336950427_f0f94860d53b38df91ab9a3e3a965bf3.jpg', 'extension': 'jpg'}, 1336947198: {'path': 'temp/1739421270_2330102_1336947198_f4c3bb195f69cd36f7df8fcca127eb7e.jpg', 'extension': 'jpg'}, 1336948914: {'path': 'temp/1739421270_2330102_1336948914_ff5c56cc91a865739ae88c6f6baf761c.jpg', 'extension': 'jpg'}, 1336948918: {'path': 'temp/1739421270_2330102_1336948918_74af78ff67d9df5e6cb777ec4f7ecf95.jpg', 'extension': 'jpg'}, 1336949847: {'path': 'temp/1739421270_2330102_1336949847_aacff42528783ae79f0f3a5c43bd80dd.jpg', 'extension': 'jpg'}, 1336949909: {'path': 'temp/1739421270_2330102_1336949909_9ca3c94ca55c73374f8d4b05c6995829.jpg', 'extension': 'jpg'}, 1336949973: {'path': 'temp/1739421270_2330102_1336949973_4e0de60447cfdce74eceb5ad2bf25685.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 = 20464482; (('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 = 20464482 group by h (('00', 10),) 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=20464482 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 (20464482) 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 (20464482) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12022025 20464482 Nombre de photos uploadées : 10 / 23040 (0%) 12022025 20464482 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 12022025 20464482 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1336948918, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/74af78ff67d9df5e6cb777ec4f7ecf95.jpg', 'username': None, 'uploaded_at': 1739317268, 'text': 'image_12022025_00_33_24_10136.jpg'}, {'photo_id': 1336947198, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/f4c3bb195f69cd36f7df8fcca127eb7e.jpg', 'username': None, 'uploaded_at': 1739316962, 'text': 'image_12022025_00_35_04_10292.jpg'}, {'photo_id': 1336948914, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/ff5c56cc91a865739ae88c6f6baf761c.jpg', 'username': None, 'uploaded_at': 1739317268, 'text': 'image_12022025_00_40_34_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336950027, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/12/aeeb10a9a94b5e52d5857d5a913bbdde.jpg', 'username': None, 'uploaded_at': 1739317387, 'text': 'image_12022025_00_40_44_010143m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006000995635986328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20464482, '2025-02-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1596586,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.036405086517333984 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= 1596586 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20464482, 'dashboard_result_id': 8853044, '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_P20464482_12-02-2025_00_52_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20464483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20464484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20464485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20464486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20464487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20464488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20464489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20464490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20464491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20464492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20464493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20464494, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20467527, 'dashboard_result_id': 8853045, '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_P20467527_12-02-2025_06_02_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20467528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20467529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20467530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20467531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20467532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20467533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20467534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20467535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20467536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20467537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20467538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20467539, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20469394, 'dashboard_result_id': 8853046, '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_P20469394_13-02-2025_00_17_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20469395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20469396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20469397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20469398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20469399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20469400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20469401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20469402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20469403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20469404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20469405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20469406, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20470093, 'dashboard_result_id': 8853047, '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_P20470093_12-02-2025_10_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20470094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20470095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20470096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20470097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20470098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20470099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20470100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20470101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20470102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20470103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20470104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20470105, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20470882, 'dashboard_result_id': 8853048, '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_P20470882_12-02-2025_10_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20470884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20470885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20470886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20470887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20470888, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20470889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20470890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20470891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20470892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20470893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20470894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20470895, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20471339, 'dashboard_result_id': 8853049, '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_P20471339_12-02-2025_10_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20471364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20471365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20471366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20471367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20471368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20471369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20471370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20471371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20471372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20471373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20471374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20471375, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20471838, 'dashboard_result_id': 8853050, '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_P20471838_12-02-2025_10_41_51.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20471854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20471855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20471856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20471857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20471858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20471859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20471860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20471861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20471862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20471863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20471864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20471865, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20472078, 'dashboard_result_id': 8853051, '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_P20472078_12-02-2025_11_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20472087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20472088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20472089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20472090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20472091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20472092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20472093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20472094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20472095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20472096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20472097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20472098, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20472788, 'dashboard_result_id': 8853052, '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_P20472788_12-02-2025_11_22_25.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20472819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20472820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20472821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20472822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20472823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20472824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20472825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20472826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20472827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20472828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20472829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20472830, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20473675, 'dashboard_result_id': 8853053, '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_P20473675_12-02-2025_11_28_48.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20473676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20473677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20473678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20473679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20473680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20473681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20473682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20473683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20473684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20473685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20473686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20473687, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20474555, 'dashboard_result_id': 8853054, '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_P20474555_12-02-2025_11_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20474556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20474557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20474558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20474559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20474560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20474561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20474562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20474563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20474564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20474565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20474566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20474567, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20474866, 'dashboard_result_id': 8853055, '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_P20474866_12-02-2025_12_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20474897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20474898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20474899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20474900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20474901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20474902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20474903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20474904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20474905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20474906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20474907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20474908, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20475503, 'dashboard_result_id': 8853056, '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_P20475503_12-02-2025_12_22_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20475548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20475551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20475552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20475553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20475554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20475555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20475556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20475557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20475558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20475559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20475560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20475561, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20477269, 'dashboard_result_id': 8853057, '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_P20477269_12-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20477272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20477273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20477274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20477275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20477276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20477277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20477278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20477279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20477280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20477281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20477282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20477283, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20477705, 'dashboard_result_id': 8853058, '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_P20477705_12-02-2025_14_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20477708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20477709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20477710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20477711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20477712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20477713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20477714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20477715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20477716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20477717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20477718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20477719, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20478005, 'dashboard_result_id': 8853059, '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_P20478005_12-02-2025_14_42_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20478054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20478055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20478056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20478057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20478058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20478059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20478060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20478061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20478062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20478063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20478064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20478065, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20478846, 'dashboard_result_id': 8853060, '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_P20478846_12-02-2025_15_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20478883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20478884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20478885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20478886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20478887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20478888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20478889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20478890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20478891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20478892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20478893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20478894, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20479461, 'dashboard_result_id': 8853061, '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_P20479461_12-02-2025_16_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479513, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20479465, 'dashboard_result_id': 8853062, '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_P20479465_12-02-2025_16_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479489, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20480305, 'dashboard_result_id': 8853063, '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_P20480305_12-02-2025_16_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480338, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20480401, 'dashboard_result_id': 8853064, '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_P20480401_12-02-2025_16_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480431, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20480974, 'dashboard_result_id': 8853065, '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_P20480974_12-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20480985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480996, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20481820, 'dashboard_result_id': 8853066, '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_P20481820_12-02-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20481826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20481827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20481828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20481829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20481830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20481831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20481832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20481833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20481834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20481835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20481836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20481837, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20482458, 'dashboard_result_id': 8853067, '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_P20482458_12-02-2025_17_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20482463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20482464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20482465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20482466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20482467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20482468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20482469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20482470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20482471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20482472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20482473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20482474, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20484245, 'dashboard_result_id': 8853068, '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_P20484245_12-02-2025_18_18_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484320, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20484770, 'dashboard_result_id': 8853069, '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_P20484770_12-02-2025_18_39_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484826, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20485637, 'dashboard_result_id': 8853070, '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_P20485637_12-02-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485653, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20485950, 'dashboard_result_id': 8853071, '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_P20485950_12-02-2025_19_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485989, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20486555, 'dashboard_result_id': 8853072, '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_P20486555_12-02-2025_19_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20486564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20486565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20486566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20486567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20486568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20486569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20486570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20486571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20486572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20486573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20486574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20486575, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20487262, 'dashboard_result_id': 8853073, '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_P20487262_12-02-2025_19_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20487266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20487267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20487268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20487269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20487270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20487271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20487272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20487273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20487274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20487275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20487276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20487277, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20487765, 'dashboard_result_id': 8853074, '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_P20487765_12-02-2025_19_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20487797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20487798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20487799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20487800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20487801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20487802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20487803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20487804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20487805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20487806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20487807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20487808, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20488608, 'dashboard_result_id': 8853075, '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_P20488608_12-02-2025_20_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20488685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20488686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20488687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20488688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20488689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20488690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20488691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20488692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20488693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20488694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20488695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20488696, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20489417, 'dashboard_result_id': 8853076, '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_P20489417_12-02-2025_20_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20489448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20489449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20489450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20489451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20489452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20489453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20489454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20489455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20489456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20489457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20489458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20489459, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20489943, 'dashboard_result_id': 8853077, '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_P20489943_12-02-2025_20_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20489970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20489971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20489972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20489973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20489974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20489975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20489976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20489977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20489978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20489979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20489980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20489981, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20490465, 'dashboard_result_id': 8853078, '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_P20490465_12-02-2025_21_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20490492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20490493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20490494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20490495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20490496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20490497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20490498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20490499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20490500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20490501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20490502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20490503, 'pht': 3726}}"}, {'dashboat_entry_day': 1596586, 'dashboard_run_id': 1607360, 'mtr_portfolio_id': 20492153, 'dashboard_result_id': 8853079, '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_P20492153_12-02-2025_21_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20492154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20492155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20492156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20492157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20492158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20492159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20492160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20492161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20492162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20492163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20492164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20492165, '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 = 20464482 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': 2581430, 'mtr_portfolio_id': 20464482, 'created_at': datetime.datetime(2025, 2, 13, 5, 34, 30), 'result': '0.02243325667700368', 'result_long': None, 'result_double': None}] Qualite : 0.02243325667700368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20464482 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20464482_13-02-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20464482 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_P20464482_13-02-2025_05_34_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20464483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20464484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20464485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20464486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20464487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20464488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20464489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20464490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20464491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20464492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20464493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20464494, 'pht': 3726}}" where mtr_portfolio_id = 20464482 and dashboard_run_id = 1607360 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`=20464482 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853044, 0.02243325667700368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20464482_13-02-2025_05_34_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20464483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20464484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20464485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20464486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20464487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20464488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20464489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20464490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20464491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20464492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20464493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20464494, '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 = 20467527 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': 2578475, 'mtr_portfolio_id': 20467527, 'created_at': datetime.datetime(2025, 2, 12, 6, 1, 59), 'result': '0.053236662099058384', 'result_long': None, 'result_double': None}] Qualite : 0.053236662099058384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20467527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20467527_12-02-2025_06_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20467527 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_P20467527_12-02-2025_06_02_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20467528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20467529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20467530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20467531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20467532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20467533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20467534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20467535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20467536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20467537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20467538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20467539, 'pht': 3726}}" where mtr_portfolio_id = 20467527 and dashboard_run_id = 1607360 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`=20467527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853045, 0.053236662099058384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20467527_12-02-2025_06_02_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20467528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20467529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20467530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20467531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20467532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20467533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20467534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20467535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20467536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20467537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20467538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20467539, '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 = 20469394 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': 2578676, 'mtr_portfolio_id': 20469394, 'created_at': datetime.datetime(2025, 2, 13, 0, 17, 33), 'result': '0.0553958630387848', 'result_long': None, 'result_double': None}] Qualite : 0.0553958630387848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20469394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20469394_13-02-2025_00_17_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20469394 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_P20469394_13-02-2025_00_17_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20469395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20469396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20469397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20469398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20469399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20469400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20469401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20469402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20469403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20469404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20469405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20469406, 'pht': 3726}}" where mtr_portfolio_id = 20469394 and dashboard_run_id = 1607360 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`=20469394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853046, 0.0553958630387848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20469394_13-02-2025_00_17_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20469395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20469396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20469397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20469398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20469399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20469400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20469401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20469402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20469403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20469404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20469405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20469406, '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 = 20470093 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': 2578783, 'mtr_portfolio_id': 20470093, 'created_at': datetime.datetime(2025, 2, 12, 10, 2, 58), 'result': '0.0362605981004279', 'result_long': None, 'result_double': None}] Qualite : 0.0362605981004279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20470093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20470093_12-02-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20470093 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_P20470093_12-02-2025_10_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20470094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20470095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20470096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20470097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20470098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20470099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20470100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20470101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20470102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20470103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20470104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20470105, 'pht': 3726}}" where mtr_portfolio_id = 20470093 and dashboard_run_id = 1607360 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`=20470093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853047, 0.0362605981004279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20470093_12-02-2025_10_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20470094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20470095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20470096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20470097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20470098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20470099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20470100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20470101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20470102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20470103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20470104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20470105, '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 = 20470882 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': 2578872, 'mtr_portfolio_id': 20470882, 'created_at': datetime.datetime(2025, 2, 12, 10, 16, 59), 'result': '0.04359778727714326', 'result_long': None, 'result_double': None}] Qualite : 0.04359778727714326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20470882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20470882_12-02-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20470882 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_P20470882_12-02-2025_10_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20470884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20470885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20470886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20470887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20470888, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20470889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20470890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20470891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20470892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20470893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20470894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20470895, 'pht': 3726}}" where mtr_portfolio_id = 20470882 and dashboard_run_id = 1607360 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`=20470882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853048, 0.04359778727714326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20470882_12-02-2025_10_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20470884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20470885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20470886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20470887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20470888, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20470889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20470890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20470891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20470892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20470893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20470894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20470895, '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 = 20471339 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': 2578904, 'mtr_portfolio_id': 20471339, 'created_at': datetime.datetime(2025, 2, 12, 10, 33, 29), 'result': '0.05767205977931781', 'result_long': None, 'result_double': None}] Qualite : 0.05767205977931781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20471339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20471339_12-02-2025_10_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20471339 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_P20471339_12-02-2025_10_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20471364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20471365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20471366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20471367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20471368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20471369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20471370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20471371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20471372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20471373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20471374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20471375, 'pht': 3726}}" where mtr_portfolio_id = 20471339 and dashboard_run_id = 1607360 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`=20471339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853049, 0.05767205977931781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20471339_12-02-2025_10_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20471364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20471365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20471366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20471367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20471368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20471369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20471370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20471371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20471372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20471373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20471374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20471375, '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 = 20471838 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': 2578945, 'mtr_portfolio_id': 20471838, 'created_at': datetime.datetime(2025, 2, 12, 10, 41, 50), 'result': '0.03734855186882812', 'result_long': None, 'result_double': None}] Qualite : 0.03734855186882812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20471838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20471838_12-02-2025_10_41_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20471838 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_P20471838_12-02-2025_10_41_51.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20471854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20471855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20471856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20471857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20471858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20471859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20471860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20471861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20471862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20471863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20471864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20471865, 'pht': 3726}}" where mtr_portfolio_id = 20471838 and dashboard_run_id = 1607360 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`=20471838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853050, 0.03734855186882812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20471838_12-02-2025_10_41_51.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20471854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20471855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20471856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20471857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20471858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20471859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20471860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20471861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20471862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20471863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20471864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20471865, '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 = 20472078 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': 2578982, 'mtr_portfolio_id': 20472078, 'created_at': datetime.datetime(2025, 2, 12, 11, 3, 31), 'result': '0.04784425554230725', 'result_long': None, 'result_double': None}] Qualite : 0.04784425554230725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20472078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20472078_12-02-2025_11_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20472078 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_P20472078_12-02-2025_11_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20472087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20472088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20472089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20472090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20472091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20472092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20472093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20472094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20472095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20472096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20472097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20472098, 'pht': 3726}}" where mtr_portfolio_id = 20472078 and dashboard_run_id = 1607360 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`=20472078 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853051, 0.04784425554230725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20472078_12-02-2025_11_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20472087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20472088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20472089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20472090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20472091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20472092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20472093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20472094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20472095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20472096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20472097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20472098, '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 = 20472788 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': 2579072, 'mtr_portfolio_id': 20472788, 'created_at': datetime.datetime(2025, 2, 12, 11, 22, 24), 'result': '0.03390508250425842', 'result_long': None, 'result_double': None}] Qualite : 0.03390508250425842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20472788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20472788_12-02-2025_11_22_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20472788 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_P20472788_12-02-2025_11_22_25.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20472819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20472820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20472821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20472822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20472823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20472824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20472825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20472826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20472827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20472828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20472829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20472830, 'pht': 3726}}" where mtr_portfolio_id = 20472788 and dashboard_run_id = 1607360 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`=20472788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853052, 0.03390508250425842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20472788_12-02-2025_11_22_25.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20472819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20472820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20472821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20472822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20472823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20472824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20472825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20472826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20472827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20472828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20472829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20472830, '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 = 20473675 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': 2579140, 'mtr_portfolio_id': 20473675, 'created_at': datetime.datetime(2025, 2, 12, 11, 28, 48), 'result': '0.041561997077309454', 'result_long': None, 'result_double': None}] Qualite : 0.041561997077309454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20473675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20473675_12-02-2025_11_28_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20473675 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_P20473675_12-02-2025_11_28_48.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20473676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20473677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20473678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20473679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20473680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20473681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20473682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20473683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20473684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20473685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20473686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20473687, 'pht': 3726}}" where mtr_portfolio_id = 20473675 and dashboard_run_id = 1607360 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`=20473675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853053, 0.041561997077309454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20473675_12-02-2025_11_28_48.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20473676, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20473677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20473678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20473679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20473680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20473681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20473682, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20473683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20473684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20473685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20473686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20473687, '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 = 20474555 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': 2579192, 'mtr_portfolio_id': 20474555, 'created_at': datetime.datetime(2025, 2, 12, 11, 49, 1), 'result': '0.052146835601823496', 'result_long': None, 'result_double': None}] Qualite : 0.052146835601823496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20474555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20474555_12-02-2025_11_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20474555 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_P20474555_12-02-2025_11_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20474556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20474557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20474558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20474559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20474560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20474561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20474562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20474563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20474564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20474565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20474566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20474567, 'pht': 3726}}" where mtr_portfolio_id = 20474555 and dashboard_run_id = 1607360 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`=20474555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853054, 0.052146835601823496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20474555_12-02-2025_11_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20474556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20474557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20474558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20474559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20474560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20474561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20474562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20474563, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20474564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20474565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20474566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20474567, '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 = 20474866 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': 2579215, 'mtr_portfolio_id': 20474866, 'created_at': datetime.datetime(2025, 2, 12, 12, 2, 57), 'result': '0.06484295830238003', 'result_long': None, 'result_double': None}] Qualite : 0.06484295830238003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20474866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20474866_12-02-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20474866 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_P20474866_12-02-2025_12_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20474897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20474898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20474899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20474900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20474901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20474902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20474903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20474904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20474905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20474906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20474907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20474908, 'pht': 3726}}" where mtr_portfolio_id = 20474866 and dashboard_run_id = 1607360 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`=20474866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853055, 0.06484295830238003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20474866_12-02-2025_12_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20474897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20474898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20474899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20474900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20474901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20474902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20474903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20474904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20474905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20474906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20474907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20474908, '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 = 20475503 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': 2579281, 'mtr_portfolio_id': 20475503, 'created_at': datetime.datetime(2025, 2, 12, 12, 22, 30), 'result': '0.0606720472957217', 'result_long': None, 'result_double': None}] Qualite : 0.0606720472957217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20475503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20475503_12-02-2025_12_22_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20475503 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_P20475503_12-02-2025_12_22_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20475548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20475551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20475552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20475553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20475554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20475555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20475556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20475557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20475558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20475559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20475560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20475561, 'pht': 3726}}" where mtr_portfolio_id = 20475503 and dashboard_run_id = 1607360 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`=20475503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853056, 0.0606720472957217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20475503_12-02-2025_12_22_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20475548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20475551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20475552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20475553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20475554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20475555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20475556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20475557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20475558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20475559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20475560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20475561, '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 = 20477269 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': 2579469, 'mtr_portfolio_id': 20477269, 'created_at': datetime.datetime(2025, 2, 12, 14, 2, 59), 'result': '0.03672375007952478', 'result_long': None, 'result_double': None}] Qualite : 0.03672375007952478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20477269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20477269_12-02-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20477269 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_P20477269_12-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20477272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20477273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20477274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20477275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20477276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20477277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20477278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20477279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20477280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20477281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20477282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20477283, 'pht': 3726}}" where mtr_portfolio_id = 20477269 and dashboard_run_id = 1607360 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`=20477269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853057, 0.03672375007952478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20477269_12-02-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20477272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20477273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20477274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20477275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20477276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20477277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20477278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20477279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20477280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20477281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20477282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20477283, '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 = 20477705 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': 2579521, 'mtr_portfolio_id': 20477705, 'created_at': datetime.datetime(2025, 2, 12, 14, 17, 1), 'result': '0.04203208727766139', 'result_long': None, 'result_double': None}] Qualite : 0.04203208727766139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20477705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20477705_12-02-2025_14_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20477705 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_P20477705_12-02-2025_14_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20477708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20477709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20477710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20477711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20477712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20477713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20477714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20477715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20477716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20477717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20477718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20477719, 'pht': 3726}}" where mtr_portfolio_id = 20477705 and dashboard_run_id = 1607360 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`=20477705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853058, 0.04203208727766139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20477705_12-02-2025_14_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20477708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20477709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20477710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20477711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20477712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20477713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20477714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20477715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20477716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20477717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20477718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20477719, '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 = 20478005 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': 2579543, 'mtr_portfolio_id': 20478005, 'created_at': datetime.datetime(2025, 2, 12, 14, 42, 59), 'result': '0.04182218073429694', 'result_long': None, 'result_double': None}] Qualite : 0.04182218073429694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20478005 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20478005_12-02-2025_14_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20478005 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_P20478005_12-02-2025_14_42_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20478054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20478055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20478056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20478057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20478058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20478059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20478060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20478061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20478062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20478063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20478064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20478065, 'pht': 3726}}" where mtr_portfolio_id = 20478005 and dashboard_run_id = 1607360 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`=20478005 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853059, 0.04182218073429694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20478005_12-02-2025_14_42_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20478054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20478055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20478056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20478057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20478058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20478059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20478060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20478061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20478062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20478063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20478064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20478065, '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 = 20478846 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': 2579648, 'mtr_portfolio_id': 20478846, 'created_at': datetime.datetime(2025, 2, 12, 15, 4, 58), 'result': '0.024796347787357828', 'result_long': None, 'result_double': None}] Qualite : 0.024796347787357828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20478846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20478846_12-02-2025_15_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20478846 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_P20478846_12-02-2025_15_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20478883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20478884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20478885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20478886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20478887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20478888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20478889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20478890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20478891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20478892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20478893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20478894, 'pht': 3726}}" where mtr_portfolio_id = 20478846 and dashboard_run_id = 1607360 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`=20478846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853060, 0.024796347787357828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20478846_12-02-2025_15_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20478883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20478884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20478885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20478886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20478887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20478888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20478889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20478890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20478891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20478892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20478893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20478894, '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 = 20479461 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': 2579751, 'mtr_portfolio_id': 20479461, 'created_at': datetime.datetime(2025, 2, 12, 16, 3, 29), 'result': '0.05547802939626233', 'result_long': None, 'result_double': None}] Qualite : 0.05547802939626233 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20479461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479461_12-02-2025_16_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20479461 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_P20479461_12-02-2025_16_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479513, 'pht': 3726}}" where mtr_portfolio_id = 20479461 and dashboard_run_id = 1607360 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`=20479461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853061, 0.05547802939626233, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479461_12-02-2025_16_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479508, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479513, '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 = 20479465 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': 2579752, 'mtr_portfolio_id': 20479465, 'created_at': datetime.datetime(2025, 2, 12, 16, 20, 31), 'result': '0.05100683201916745', 'result_long': None, 'result_double': None}] Qualite : 0.05100683201916745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20479465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479465_12-02-2025_16_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20479465 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_P20479465_12-02-2025_16_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479489, 'pht': 3726}}" where mtr_portfolio_id = 20479465 and dashboard_run_id = 1607360 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`=20479465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853062, 0.05100683201916745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20479465_12-02-2025_16_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20479478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20479479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20479480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20479481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20479482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20479483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20479484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20479485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20479486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20479487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20479488, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20479489, '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 = 20480305 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': 2579815, 'mtr_portfolio_id': 20480305, 'created_at': datetime.datetime(2025, 2, 12, 16, 32, 59), 'result': '0.04097857459723556', 'result_long': None, 'result_double': None}] Qualite : 0.04097857459723556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20480305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480305_12-02-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20480305 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_P20480305_12-02-2025_16_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480338, 'pht': 3726}}" where mtr_portfolio_id = 20480305 and dashboard_run_id = 1607360 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`=20480305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853063, 0.04097857459723556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480305_12-02-2025_16_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480336, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480338, '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 = 20480401 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': 2579821, 'mtr_portfolio_id': 20480401, 'created_at': datetime.datetime(2025, 2, 12, 16, 48, 57), 'result': '0.04798082389106162', 'result_long': None, 'result_double': None}] Qualite : 0.04798082389106162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20480401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480401_12-02-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20480401 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_P20480401_12-02-2025_16_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480431, 'pht': 3726}}" where mtr_portfolio_id = 20480401 and dashboard_run_id = 1607360 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`=20480401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853064, 0.04798082389106162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480401_12-02-2025_16_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480420, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20480425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480431, '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 = 20480974 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': 2579876, 'mtr_portfolio_id': 20480974, 'created_at': datetime.datetime(2025, 2, 12, 17, 2, 58), 'result': '0.05282854877219761', 'result_long': None, 'result_double': None}] Qualite : 0.05282854877219761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20480974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480974_12-02-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20480974 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_P20480974_12-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20480985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480996, 'pht': 3726}}" where mtr_portfolio_id = 20480974 and dashboard_run_id = 1607360 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`=20480974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853065, 0.05282854877219761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20480974_12-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20480985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20480986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20480987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20480988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20480989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20480990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20480991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20480992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20480993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20480994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20480995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20480996, '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 = 20481820 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': 2579953, 'mtr_portfolio_id': 20481820, 'created_at': datetime.datetime(2025, 2, 12, 17, 18, 59), 'result': '0.042466050658732504', 'result_long': None, 'result_double': None}] Qualite : 0.042466050658732504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20481820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20481820_12-02-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20481820 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_P20481820_12-02-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20481826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20481827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20481828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20481829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20481830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20481831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20481832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20481833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20481834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20481835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20481836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20481837, 'pht': 3726}}" where mtr_portfolio_id = 20481820 and dashboard_run_id = 1607360 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`=20481820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853066, 0.042466050658732504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20481820_12-02-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20481826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20481827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20481828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20481829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20481830, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20481831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20481832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20481833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20481834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20481835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20481836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20481837, '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 = 20482458 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': 2579997, 'mtr_portfolio_id': 20482458, 'created_at': datetime.datetime(2025, 2, 12, 17, 32, 57), 'result': '0.034093903111268815', 'result_long': None, 'result_double': None}] Qualite : 0.034093903111268815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20482458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20482458_12-02-2025_17_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20482458 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_P20482458_12-02-2025_17_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20482463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20482464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20482465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20482466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20482467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20482468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20482469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20482470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20482471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20482472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20482473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20482474, 'pht': 3726}}" where mtr_portfolio_id = 20482458 and dashboard_run_id = 1607360 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`=20482458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853067, 0.034093903111268815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20482458_12-02-2025_17_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20482463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20482464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20482465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20482466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20482467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20482468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20482469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20482470, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20482471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20482472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20482473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20482474, '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 = 20484245 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': 2580126, 'mtr_portfolio_id': 20484245, 'created_at': datetime.datetime(2025, 2, 12, 18, 18, 57), 'result': '0.04570174079107659', 'result_long': None, 'result_double': None}] Qualite : 0.04570174079107659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20484245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484245_12-02-2025_18_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20484245 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_P20484245_12-02-2025_18_18_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484320, 'pht': 3726}}" where mtr_portfolio_id = 20484245 and dashboard_run_id = 1607360 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`=20484245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853068, 0.04570174079107659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484245_12-02-2025_18_18_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484320, '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 = 20484770 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': 2580166, 'mtr_portfolio_id': 20484770, 'created_at': datetime.datetime(2025, 2, 12, 18, 38, 59), 'result': '0.03648876724127132', 'result_long': None, 'result_double': None}] Qualite : 0.03648876724127132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20484770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484770_12-02-2025_18_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20484770 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_P20484770_12-02-2025_18_39_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484826, 'pht': 3726}}" where mtr_portfolio_id = 20484770 and dashboard_run_id = 1607360 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`=20484770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853069, 0.03648876724127132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20484770_12-02-2025_18_39_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20484815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20484816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20484817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20484818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20484819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20484820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20484821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20484822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20484823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20484824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20484825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20484826, '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 = 20485637 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': 2580225, 'mtr_portfolio_id': 20485637, 'created_at': datetime.datetime(2025, 2, 12, 18, 46, 58), 'result': '0.03748693555991245', 'result_long': None, 'result_double': None}] Qualite : 0.03748693555991245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20485637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485637_12-02-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20485637 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_P20485637_12-02-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485653, 'pht': 3726}}" where mtr_portfolio_id = 20485637 and dashboard_run_id = 1607360 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`=20485637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853070, 0.03748693555991245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485637_12-02-2025_18_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485653, '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 = 20485950 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': 2580255, 'mtr_portfolio_id': 20485950, 'created_at': datetime.datetime(2025, 2, 12, 19, 2, 59), 'result': '0.03879328865337515', 'result_long': None, 'result_double': None}] Qualite : 0.03879328865337515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20485950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485950_12-02-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20485950 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_P20485950_12-02-2025_19_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485989, 'pht': 3726}}" where mtr_portfolio_id = 20485950 and dashboard_run_id = 1607360 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`=20485950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853071, 0.03879328865337515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20485950_12-02-2025_19_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20485978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20485979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20485980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20485981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20485982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20485983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20485984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20485985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20485986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20485987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20485988, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20485989, '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 = 20486555 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': 2580304, 'mtr_portfolio_id': 20486555, 'created_at': datetime.datetime(2025, 2, 12, 19, 16, 59), 'result': '0.05146238245435917', 'result_long': None, 'result_double': None}] Qualite : 0.05146238245435917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20486555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20486555_12-02-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20486555 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_P20486555_12-02-2025_19_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20486564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20486565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20486566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20486567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20486568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20486569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20486570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20486571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20486572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20486573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20486574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20486575, 'pht': 3726}}" where mtr_portfolio_id = 20486555 and dashboard_run_id = 1607360 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`=20486555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853072, 0.05146238245435917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20486555_12-02-2025_19_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20486564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20486565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20486566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20486567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20486568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20486569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20486570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20486571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20486572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20486573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20486574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20486575, '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 = 20487262 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': 2580365, 'mtr_portfolio_id': 20487262, 'created_at': datetime.datetime(2025, 2, 12, 19, 32, 58), 'result': '0.05437728994347729', 'result_long': None, 'result_double': None}] Qualite : 0.05437728994347729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20487262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20487262_12-02-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20487262 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_P20487262_12-02-2025_19_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20487266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20487267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20487268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20487269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20487270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20487271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20487272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20487273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20487274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20487275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20487276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20487277, 'pht': 3726}}" where mtr_portfolio_id = 20487262 and dashboard_run_id = 1607360 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`=20487262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853073, 0.05437728994347729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20487262_12-02-2025_19_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20487266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20487267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20487268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20487269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20487270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20487271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20487272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20487273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20487274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20487275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20487276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20487277, '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 = 20487765 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': 2580399, 'mtr_portfolio_id': 20487765, 'created_at': datetime.datetime(2025, 2, 12, 19, 48, 58), 'result': '0.04563764310681777', 'result_long': None, 'result_double': None}] Qualite : 0.04563764310681777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20487765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20487765_12-02-2025_19_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20487765 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_P20487765_12-02-2025_19_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20487797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20487798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20487799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20487800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20487801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20487802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20487803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20487804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20487805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20487806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20487807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20487808, 'pht': 3726}}" where mtr_portfolio_id = 20487765 and dashboard_run_id = 1607360 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`=20487765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853074, 0.04563764310681777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20487765_12-02-2025_19_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20487797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20487798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20487799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20487800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20487801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20487802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20487803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20487804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20487805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20487806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20487807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20487808, '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 = 20488608 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': 2580469, 'mtr_portfolio_id': 20488608, 'created_at': datetime.datetime(2025, 2, 12, 20, 2, 31), 'result': '0.04281867379018025', 'result_long': None, 'result_double': None}] Qualite : 0.04281867379018025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20488608 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20488608_12-02-2025_20_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20488608 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_P20488608_12-02-2025_20_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20488685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20488686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20488687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20488688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20488689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20488690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20488691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20488692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20488693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20488694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20488695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20488696, 'pht': 3726}}" where mtr_portfolio_id = 20488608 and dashboard_run_id = 1607360 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`=20488608 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853075, 0.04281867379018025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20488608_12-02-2025_20_02_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20488685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20488686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20488687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20488688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20488689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20488690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20488691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20488692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20488693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20488694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20488695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20488696, '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 = 20489417 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': 2580546, 'mtr_portfolio_id': 20489417, 'created_at': datetime.datetime(2025, 2, 12, 20, 17), 'result': '0.03518327876511163', 'result_long': None, 'result_double': None}] Qualite : 0.03518327876511163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20489417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20489417_12-02-2025_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20489417 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_P20489417_12-02-2025_20_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20489448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20489449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20489450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20489451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20489452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20489453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20489454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20489455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20489456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20489457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20489458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20489459, 'pht': 3726}}" where mtr_portfolio_id = 20489417 and dashboard_run_id = 1607360 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`=20489417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853076, 0.03518327876511163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20489417_12-02-2025_20_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20489448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20489449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20489450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20489451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20489452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20489453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20489454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20489455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20489456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20489457, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20489458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20489459, '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 = 20489943 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': 2580579, 'mtr_portfolio_id': 20489943, 'created_at': datetime.datetime(2025, 2, 12, 20, 32, 59), 'result': '0.036833204078493706', 'result_long': None, 'result_double': None}] Qualite : 0.036833204078493706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20489943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20489943_12-02-2025_20_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20489943 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_P20489943_12-02-2025_20_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20489970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20489971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20489972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20489973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20489974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20489975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20489976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20489977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20489978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20489979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20489980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20489981, 'pht': 3726}}" where mtr_portfolio_id = 20489943 and dashboard_run_id = 1607360 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`=20489943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853077, 0.036833204078493706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20489943_12-02-2025_20_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20489970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20489971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20489972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20489973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20489974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20489975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20489976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20489977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20489978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20489979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20489980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20489981, '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 = 20490465 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': 2580613, 'mtr_portfolio_id': 20490465, 'created_at': datetime.datetime(2025, 2, 12, 21, 4, 30), 'result': '0.04410490808276085', 'result_long': None, 'result_double': None}] Qualite : 0.04410490808276085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20490465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20490465_12-02-2025_21_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20490465 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_P20490465_12-02-2025_21_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20490492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20490493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20490494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20490495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20490496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20490497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20490498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20490499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20490500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20490501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20490502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20490503, 'pht': 3726}}" where mtr_portfolio_id = 20490465 and dashboard_run_id = 1607360 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`=20490465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853078, 0.04410490808276085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20490465_12-02-2025_21_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20490492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20490493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20490494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20490495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20490496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20490497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20490498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20490499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20490500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20490501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20490502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20490503, '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 = 20492153 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': 2580742, 'mtr_portfolio_id': 20492153, 'created_at': datetime.datetime(2025, 2, 12, 21, 32, 29), 'result': '0.04478534966186672', 'result_long': None, 'result_double': None}] Qualite : 0.04478534966186672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20492153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20492153_12-02-2025_21_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20492153 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_P20492153_12-02-2025_21_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20492154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20492155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20492156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20492157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20492158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20492159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20492160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20492161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20492162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20492163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20492164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20492165, 'pht': 3726}}" where mtr_portfolio_id = 20492153 and dashboard_run_id = 1607360 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`=20492153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8853079, 0.04478534966186672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20492153_12-02-2025_21_32_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20492154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20492155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20492156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20492157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20492158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20492159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20492160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20492161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20492162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20492163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20492164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20492165, '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 (20464482,20467527,20469394,20470093,20470882,20471339,20471838,20472078,20472788,20473675,20474555,20474866,20475503,20477269,20477705,20478005,20478846,20479461,20479465,20480305,20480401,20480974,20481820,20482458,20484245,20484770,20485637,20485950,20486555,20487262,20487765,20488608,20489417,20489943,20490465,20492153) result : ((1336947198,), (1336948914,), (1336948918,), (1336949847,), (1336949909,), (1336949973,), (1336950027,), (1336950424,), (1336950427,), (1336952021,), (1337002688,), (1337003086,), (1337004176,), (1337004529,), (1337004531,), (1337004550,), (1337004552,), (1337004568,), (1337004929,), (1337005098,), (1337029498,), (1337030310,), (1337030827,), (1337030883,), (1337030886,), (1337030890,), (1337030895,), (1337030899,), (1337031028,), (1337032039,), (1337032145,), (1337032341,), (1337032342,), (1337032345,), (1337032392,), (1337032394,), (1337032624,), (1337045723,), (1337045920,), (1337045945,), (1337045946,), (1337045948,), (1337046713,), (1337046745,), (1337046746,), (1337046752,), (1337047012,), (1337047013,), (1337047014,), (1337047016,), (1337047018,), (1337047021,), (1337047047,), (1337047048,), (1337047050,), (1337047082,), (1337047083,), (1337047085,), (1337047107,), (1337047109,), (1337047130,), (1337047131,), (1337047133,), (1337047135,), (1337047176,), (1337047177,), (1337047179,), (1337047181,), (1337047182,), (1337047428,), (1337047430,), (1337047472,), (1337047485,), (1337047486,), (1337047489,), (1337047491,), (1337047515,), (1337047517,), (1337047519,), (1337055185,), (1337055121,), (1337055177,), (1337055180,), (1337055222,), (1337055225,), (1337055233,), (1337055240,), (1337055329,), (1337055332,), (1337055348,), (1337055400,), (1337055404,), (1337055410,), (1337055588,), (1337055595,), (1337055659,), (1337055662,), (1337055668,), (1337055671,), (1337055674,), (1337055678,), (1337055714,), (1337055718,), (1337055723,), (1337055728,), (1337056831,), (1337056871,), (1337056875,), (1337057152,), (1337057156,), (1337057161,), (1337057207,), (1337057212,), (1337057315,), (1337057318,), (1337057323,), (1337057375,), (1337057377,), (1337057380,), (1337057385,), (1337057390,), (1337057393,), (1337057424,), (1337057427,), (1337057430,), (1337057433,), (1337057440,), (1337057442,), (1337057480,), (1337057483,), (1337057486,), (1337057489,), (1337057493,), (1337057497,), (1337057524,), (1337057527,), (1337057534,), (1337057537,), (1337057588,), (1337057592,), (1337057596,), (1337057604,), (1337057606,), (1337057670,), (1337057653,), (1337057658,), (1337057663,), (1337057667,), (1337058265,), (1337058326,), (1337058329,), (1337058526,), (1337058529,), (1337058533,), (1337058536,), (1337058553,), (1337058619,), (1337058630,), (1337058634,), (1337058637,), (1337058915,), (1337058945,), (1337058948,), (1337058952,), (1337059014,), (1337059217,), (1337059260,), (1337059268,), (1337059301,), (1337059305,), (1337059309,), (1337059338,), (1337059340,), (1337059344,), (1337059404,), (1337059408,), (1337059437,), (1337059650,), (1337059742,), (1337059822,), (1337059918,), (1337060022,), (1337060631,), (1337060635,), (1337060683,), (1337060805,), (1337060813,), (1337060817,), (1337060854,), (1337060857,), (1337060860,), (1337060863,), (1337060962,), (1337060966,), (1337060970,), (1337060973,), (1337061013,), (1337061016,), (1337061021,), (1337061024,), (1337061157,), (1337061138,), (1337061140,), (1337061144,), (1337061150,), (1337061152,), (1337061501,), (1337061507,), (1337061509,), (1337061513,), (1337061519,), (1337061545,), (1337061547,), (1337061552,), (1337061556,), (1337061557,), (1337061568,), (1337061641,), (1337061644,), (1337061647,), (1337061651,), (1337061653,), (1337061677,), (1337061678,), (1337061679,), (1337061680,), (1337061684,), (1337061688,), (1337061716,), (1337061717,), (1337061718,), (1337061719,), (1337061723,), (1337061727,), (1337061765,), (1337061768,), (1337061771,), (1337061775,), (1337061779,), (1337061784,), (1337061788,), (1337061792,), (1337061813,), (1337061815,), (1337061816,), (1337061817,), (1337061821,), (1337061835,), (1337061867,), (1337061869,), (1337061873,), (1337061941,), (1337061943,), (1337061946,), (1337061949,), (1337061990,), (1337061997,), (1337062002,), (1337062042,), (1337062092,), (1337062171,), (1337062200,), (1337062204,), (1337062207,), (1337062214,), (1337062217,), (1337062219,), (1337062224,), (1337062229,), (1337062231,), (1337062235,), (1337062238,), (1337062242,), (1337062272,), (1337062276,), (1337062281,), (1337062287,), (1337062292,), (1337062297,), (1337062322,), (1337062328,), (1337062332,), (1337062337,), (1337062342,), (1337062349,), (1337062354,), (1337062315,), (1337062316,), (1337062318,), (1337062319,), (1337062321,), (1337062366,), (1337062379,), (1337062387,), (1337062391,), (1337062405,), (1337062428,), (1337062433,), (1337062437,), (1337062450,), (1337062453,), (1337062595,), (1337062599,), (1337062604,), (1337062608,), (1337062768,), (1337062811,), (1337062812,), (1337062813,), (1337062814,), (1337062815,), (1337062816,), (1337063022,), (1337063122,), (1337063211,), (1337063308,), (1337063411,), (1337063629,), (1337063632,), (1337063636,), (1337063640,), (1337063660,), (1337063959,), (1337064033,), (1337064045,), (1337064053,), (1337064993,), (1337065154,), (1337065207,), (1337065209,), (1337065214,), (1337065257,), (1337065325,), (1337065469,), (1337065532,), (1337065541,), (1337065555,), (1337065866,), (1337065871,), (1337065877,), (1337065880,), (1337065885,), (1337065954,), (1337065960,), (1337065966,), (1337065972,), (1337065975,), (1337066047,), (1337066052,), (1337066058,), (1337066063,), (1337066067,), (1337066092,), (1337066095,), (1337066112,), (1337066189,), (1337066648,), (1337066677,), (1337066714,), (1337066762,), (1337066819,), (1337066995,), (1337067072,), (1337067109,), (1337067420,), (1337067346,), (1337068101,), (1337068174,), (1337068223,), (1337068275,), (1337068356,), (1337068358,), (1337068359,), (1337068363,), (1337068367,), (1337068370,), (1337068385,), (1337068391,), (1337068400,), (1337068402,), (1337068404,), (1337068455,), (1337068486,), (1337068541,), (1337068944,), (1337068949,), (1337068951,), (1337068956,), (1337068960,), (1337068969,), (1337069027,), (1337069098,), (1337069173,), (1337069282,), (1337069410,), (1337069593,), (1337069851,), (1337070103,), (1337070288,), (1337070293,), (1337070352,), (1337070427,), (1337070523,), (1337070621,), (1337070684,), (1337070704,), (1337070707,), (1337070784,), (1337070955,), (1337070991,), (1337070998,), (1337071062,), (1337071071,), (1337071080,), (1337071082,), (1337071086,), (1337071145,), (1337071200,), (1337071225,), (1337071331,), (1337071491,), (1337071492,), (1337071494,), (1337071540,), (1337071541,), (1337071542,), (1337071544,), (1337071548,), (1337071551,), (1337071614,), (1337071617,), (1337071619,), (1337071686,), (1337071696,), (1337071704,), (1337071714,), (1337071766,), (1337071771,), (1337071774,), (1337071786,), (1337071790,), (1337071740,), (1337071743,), (1337071748,), (1337071815,), (1337071821,), (1337071833,), (1337071843,), (1337071849,), (1337071874,), (1337071877,), (1337071882,), (1337071890,), (1337071896,), (1337071923,), (1337071926,), (1337071928,), (1337071931,), (1337072477,), (1337072500,), (1337072502,), (1337072504,), (1337072507,), (1337072510,), (1337072771,), (1337072772,), (1337072773,), (1337072966,), (1337072970,), (1337072974,), (1337072979,), (1337073004,), (1337073125,), (1337073128,), (1337073131,), (1337073134,), (1337073136,), (1337073189,), (1337073194,), (1337073198,), (1337073201,), (1337073213,), (1337073236,), (1337073238,), (1337073245,), (1337073248,), (1337073251,), (1337073254,), (1337073283,), (1337073302,), (1337073342,), (1337073408,), (1337073414,), (1337073418,), (1337073420,), (1337073425,), (1337073443,), (1337073656,), (1337073659,), (1337073661,), (1337073664,), (1337073667,), (1337073676,), (1337073679,), (1337073683,), (1337073687,), (1337073721,), (1337075913,), (1337075846,), (1337075848,), (1337076093,), (1337076095,), (1337076104,), (1337076318,), (1337076459,), (1337076470,), (1337076507,), (1337076508,), (1337076510,), (1337076544,), (1337076546,), (1337076550,), (1337076551,), (1337076574,), (1337076578,), (1337076582,), (1337076617,), (1337076620,), (1337076622,), (1337076643,), (1337076648,), (1337076652,), (1337076658,), (1337076666,), (1337076687,), (1337076688,), (1337076690,), (1337076696,), (1337076697,), (1337076702,), (1337076758,), (1337076764,), (1337076768,), (1337076781,), (1337076786,), (1337076792,), (1337076810,), (1337076814,), (1337076822,), (1337076828,), (1337076830,), (1337076836,), (1337076995,), (1337077045,), (1337077052,), (1337077072,), (1337077076,), (1337076869,), (1337076875,), (1337076931,), (1337076957,), (1337076961,), (1337077034,), (1337077037,), (1337077039,), (1337077043,), (1337077130,), (1337077132,), (1337077152,), (1337077210,), (1337077277,), (1337078032,), (1337078115,), (1337078168,), (1337078241,), (1337078287,), (1337078396,), (1337078397,), (1337078400,), (1337078401,), (1337078404,), (1337078676,), (1337078720,), (1337078771,), (1337078827,), (1337078830,), (1337078832,), (1337078875,), (1337078911,), (1337078917,), (1337078923,), (1337078936,), (1337078947,), (1337078962,), (1337078991,), (1337079074,), (1337079137,), (1337079138,), (1337079158,), (1337079162,), (1337079164,), (1337079165,), (1337079166,), (1337079168,), (1337079173,), (1337079175,), (1337079183,), (1337079187,), (1337079197,), (1337079250,), (1337079373,), (1337079403,), (1337079471,), (1337079522,), (1337079525,), (1337079528,), (1337079561,), (1337079566,), (1337079606,), (1337079609,), (1337079619,), (1337079621,), (1337079623,), (1337079624,), (1337079644,), (1337079646,), (1337079647,), (1337079669,), (1337079671,), (1337079697,), (1337079698,), (1337079700,), (1337079702,), (1337080140,), (1337080239,), (1337080235,), (1337080340,), (1337080347,), (1337080350,), (1337080353,), (1337080356,), (1337080403,), (1337080406,), (1337080409,), (1337080461,), (1337080465,), (1337080469,), (1337080471,), (1337080474,), (1337080476,), (1337080766,), (1337081045,), (1337081108,), (1337081111,), (1337081119,), (1337081339,), (1337081355,), (1337081359,), (1337081403,), (1337081434,), (1337081458,), (1337081482,), (1337081500,), (1337081502,), (1337081609,), (1337081616,), (1337081622,), (1337081626,), (1337081629,), (1337081693,), (1337081695,), (1337081704,), (1337081710,), (1337081812,), (1337081813,), (1337081815,), (1337081817,), (1337081823,), (1337081831,), (1337081866,), (1337081868,), (1337081871,), (1337081874,), (1337083261,), (1337102652,), (1337102663,), (1337102745,), (1337103075,), (1337103383,), (1337103385,), (1337103390,), (1337103395,), (1337103399,), (1337103416,), (1337103418,), (1337103421,), (1337103425,), (1337103432,), (1337103579,), (1337104149,), (1337104151,), (1337104154,), (1337104717,), (1337104723,), (1337104726,), (1337104731,), (1337104737,), (1337104877,), (1337104878,), (1337104882,), (1337104883,), (1337104966,), (1337107149,), (1337107485,), (1337107490,), (1337107493,), (1337107574,), (1337107673,), (1337107771,), (1337107805,), (1337107880,), (1337107889,), (1337107893,), (1337107897,), (1337107901,), (1337107907,), (1337108007,), (1337108010,), (1337108015,), (1337108019,), (1337108024,), (1337108047,), (1337108051,), (1337108056,), (1337108060,), (1337108102,), (1337108107,), (1337108111,), (1337108113,), (1337108117,), (1337108119,), (1337108154,), (1337108156,), (1337108159,), (1337108161,), (1337108165,), (1337108173,), (1337108209,), (1337108212,), (1337108217,), (1337108220,), (1337108246,), (1337108249,), (1337108253,), (1337108261,), (1337108272,), (1337108277,), (1337108295,), (1337108297,), (1337108302,), (1337108305,), (1337108307,), (1337108314,), (1337108375,), (1337108363,), (1337108365,), (1337108368,), (1337108572,), (1337108574,), (1337108588,), (1337108591,), (1337108599,), (1337108650,), (1337108651,), (1337108653,), (1337108655,), (1337108656,), (1337108727,), (1337108729,), (1337108732,), (1337108735,), (1337108739,), (1337108741,), (1337108811,), (1337108813,), (1337108814,), (1337108845,), (1337108846,), (1337108983,), (1337108993,), (1337108996,), (1337109000,), (1337109196,), (1337109283,), (1337109371,), (1337109463,), (1337109550,), (1337109638,), (1337110001,), (1337110003,), (1337110013,), (1337110016,), (1337110310,), (1337110401,), (1337110410,), (1337110424,), (1337110427,), (1337110428,), (1337110651,), (1337110652,), (1337110653,), (1337110654,), (1337110659,), (1337113991,), (1337113976,), (1337114073,), (1337114074,), (1337114077,), (1337114080,), (1337114087,), (1337114092,), (1337116445,), (1337125561,), (1337125748,), (1337126274,), (1337126281,), (1337126290,), (1337126312,), (1337126322,), (1337126336,), (1337126380,), (1337126384,), (1337126388,), (1337127247,), (1337126424,), (1337126571,), (1337126850,), (1337127065,), (1337127106,), (1337127282,), (1337127285,), (1337127297,), (1337127299,), (1337127745,), (1337127747,), (1337127783,), (1337127786,), (1337127790,), (1337127822,), (1337127824,), (1337127834,), (1337127837,), (1337127839,), (1337127945,), (1337127947,), (1337127952,), (1337127957,), (1337127990,), (1337127992,), (1337127995,), (1337127999,), (1337128001,), (1337128006,), (1337128567,), (1337128685,), (1337128692,), (1337128696,), (1337128701,), (1337128708,), (1337128876,), (1337129674,), (1337129931,), (1337129935,), (1337130029,), (1337130031,), (1337130035,), (1337130150,), (1337130249,), (1337130256,), (1337130633,), (1337130694,), (1337130774,), (1337130781,), (1337130867,), (1337130869,), (1337130872,), (1337130875,), (1337130878,), (1337130889,), (1337130928,), (1337130931,), (1337130934,), (1337130937,), (1337130940,), (1337130943,), (1337130960,), (1337130962,), (1337130965,), (1337130971,), (1337131066,), (1337131068,), (1337131071,), (1337131092,), (1337131101,), (1337131428,), (1337131421,), (1337131489,), (1337131500,), (1337133743,), (1337133856,), (1337133897,), (1337133899,), (1337133901,), (1337133961,), (1337133964,), (1337133966,), (1337133968,), (1337134004,), (1337133995,), (1337133996,), (1337133998,), (1337134000,), (1337134002,), (1337134020,), (1337134024,), (1337134028,), (1337134031,), (1337134043,), (1337134091,), (1337134093,), (1337134095,), (1337134197,), (1337134198,), (1337134200,), (1337134202,), (1337134205,), (1337134310,), (1337134312,), (1337134317,), (1337134319,), (1337134324,), (1337134373,), (1337134978,), (1337135097,), (1337135100,), (1337135773,), (1337135822,), (1337135931,), (1337136016,), (1337136097,), (1337136187,), (1337136191,), (1337136195,), (1337136198,), (1337136202,), (1337136461,), (1337136463,), (1337136472,), (1337136474,), (1337136485,), (1337136526,), (1337136530,), (1337136534,), (1337136542,), (1337136552,), (1337136555,), (1337136581,), (1337136583,), (1337136585,), (1337136588,), (1337136643,), (1337136645,), (1337136648,), (1337136654,), (1337136658,), (1337136662,), (1337136733,), (1337136798,), (1337136819,), (1337136875,), (1337136926,), (1337136969,), (1337137115,), (1337137131,), (1337137134,), (1337137137,), (1337137290,), (1337137293,), (1337137297,), (1337137309,), (1337137314,), (1337137318,), (1337137370,), (1337137359,), (1337137360,), (1337137362,), (1337137368,), (1337137412,), (1337137414,), (1337137421,), (1337137425,), (1337137428,), (1337137628,), (1337137629,), (1337137630,), (1337137676,), (1337137836,), (1337137863,), (1337137865,), (1337137868,), (1337137990,), (1337137993,), (1337137995,), (1337137996,), (1337137999,), (1337138002,), (1337138104,), (1337138176,), (1337138530,), (1337138600,), (1337138704,), (1337138943,), (1337138945,), (1337138946,), (1337138954,), (1337138963,), (1337139173,), (1337139238,), (1337139325,), (1337139332,), (1337139337,), (1337139346,), (1337139381,), (1337139394,), (1337139401,), (1337139440,), (1337139817,), (1337139818,), (1337139822,), (1337139845,), (1337139849,), (1337139854,), (1337139949,), (1337139951,), (1337139954,), (1337139957,), (1337139984,), (1337139990,), (1337140029,), (1337140030,), (1337140187,), (1337140319,), (1337140512,), (1337140513,), (1337140563,), (1337140565,), (1337140569,), (1337140571,), (1337140662,), (1337140669,), (1337140674,), (1337140679,), (1337140685,), (1337140696,), (1337140697,), (1337140701,), (1337140706,), (1337140754,), (1337140734,), (1337140739,), (1337140743,), (1337140747,), (1337140751,), (1337140770,), (1337140773,), (1337140777,), (1337140784,), (1337140787,), (1337141032,), (1337141086,), (1337141089,), (1337141093,), (1337141119,), (1337141192,), (1337141195,), (1337141198,), (1337141201,), (1337141203,), (1337141207,), (1337141289,), (1337141291,), (1337141294,), (1337141395,), (1337141403,), (1337141406,), (1337141408,), (1337141411,), (1337142194,), (1337142196,), (1337142714,), (1337142716,), (1337142740,), (1337142785,), (1337142818,), (1337142987,), (1337142989,), (1337143045,), (1337143050,), (1337143056,), (1337143058,), (1337143063,), (1337143141,), (1337143146,), (1337143152,), (1337143154,), (1337143158,), (1337143162,), (1337143184,), (1337143194,), (1337143197,), (1337143201,), (1337143206,), (1337143243,), (1337143245,), (1337143248,), (1337143251,), (1337143253,), (1337143256,), (1337143285,), (1337143288,), (1337143291,), (1337143294,), (1337143298,), (1337143300,), (1337143365,), (1337143372,), (1337143376,), (1337143378,), (1337143383,), (1337143933,), (1337143519,), (1337143587,), (1337143665,), (1337143719,), (1337143880,), (1337144081,), (1337144082,), (1337144089,), (1337144145,), (1337144575,), (1337144577,), (1337144579,), (1337144581,), (1337144611,), (1337144665,), (1337144868,), (1337144869,), (1337144880,), (1337144882,), (1337144884,), (1337145170,), (1337145171,), (1337145173,), (1337145177,), (1337145183,), (1337145209,), (1337145210,), (1337145212,), (1337145214,), (1337145217,), (1337145366,), (1337145378,), (1337145380,), (1337145383,), (1337145399,), (1337145404,), (1337146026,), (1337146028,), (1337146030,), (1337146033,), (1337146249,), (1337146252,), (1337146260,), (1337146263,), (1337146267,), (1337146300,), (1337146364,), (1337146365,), (1337146367,), (1337146369,), (1337146370,), (1337146373,), (1337146407,), (1337146409,), (1337146411,), (1337146412,), (1337146607,), (1337146621,), (1337146636,), (1337146648,), (1337146738,), (1337146845,), (1337147746,), (1337147748,), (1337147750,), (1337147778,), (1337147785,), (1337148020,), (1337148031,), (1337148034,), (1337148075,), (1337148165,), (1337148176,), (1337148183,), (1337148185,), (1337148231,), (1337153894,), (1337153898,), (1337153901,), (1337153905,), (1337153960,), (1337153964,), (1337154031,), (1337154035,), (1337154071,), (1337154249,), (1337154253,), (1337154258,), (1337154261,), (1337154266,), (1337154268,), (1337154296,), (1337154300,), (1337154305,), (1337154309,), (1337154312,), (1337154317,), (1337154355,), (1337154362,), (1337154365,), (1337154410,), (1337154414,), (1337154416,), (1337154421,), (1337154423,), (1337154455,), (1337154458,), (1337154460,), (1337154461,), (1337154465,), (1337154466,), (1337154495,), (1337154498,), (1337154501,), (1337154504,), (1337154749,), (1337154762,), (1337154789,), (1337154815,), (1337154818,), (1337155002,), (1337155006,), (1337155013,), (1337155017,), (1337155021,), (1337155024,), (1337155092,), (1337155094,), (1337155097,), (1337155100,), (1337155169,), (1337155149,), (1337155157,), (1337155158,), (1337155161,), (1337155164,), (1337155191,), (1337155194,), (1337155197,), (1337155201,), (1337155207,), (1337155254,), (1337155258,), (1337155261,), (1337155262,), (1337155670,), (1337155734,), (1337155761,), (1337155785,), (1337155801,), (1337155826,), (1337155828,), (1337155831,), (1337155836,), (1337155890,), (1337155898,), (1337155902,), (1337155907,), (1337155914,), (1337155919,), (1337156085,), (1337156138,), (1337156226,), (1337156566,), (1337156568,), (1337156571,), (1337156573,), (1337156609,), (1337156654,), (1337156668,), (1337156672,), (1337156676,), (1337156686,), (1337156692,), (1337156703,), (1337156705,), (1337156708,), (1337156711,), (1337156714,), (1337156716,), (1337156755,), (1337156764,), (1337156769,), (1337156772,), (1337156775,), (1337156778,), (1337156934,), (1337156947,), (1337157080,), (1337157139,), (1337157200,), (1337157203,), (1337157207,), (1337157224,), (1337157234,), (1337157238,), (1337157305,), (1337157308,), (1337157312,), (1337157318,), (1337157329,), (1337158238,), (1337158092,), (1337158231,), (1337158232,), (1337158234,), (1337158235,), (1337158267,), (1337158268,), (1337158347,), (1337158421,), (1337158501,), (1337158695,), (1337158705,), (1337158708,), (1337158714,), (1337158820,), (1337158827,), (1337158939,), (1337159003,), (1337159005,), (1337159009,), (1337159043,), (1337159046,), (1337159050,), (1337159054,), (1337159057,), (1337159083,), (1337159087,), (1337159092,), (1337159095,), (1337159100,), (1337159122,), (1337159142,), (1337159148,), (1337159152,), (1337159175,), (1337159179,), (1337159184,), (1337159187,), (1337159192,), (1337159366,), (1337159371,), (1337159376,), (1337159380,), (1337159384,), (1337159402,), (1337159430,), (1337159428,), (1337159602,), (1337159622,), (1337159664,), (1337159758,), (1337159761,), (1337159939,), (1337159941,), (1337159943,), (1337159945,), (1337159951,), (1337159960,), (1337159992,), (1337159993,), (1337159995,), (1337160048,), (1337160050,), (1337160056,), (1337160060,), (1337160062,), (1337160066,), (1337160124,), (1337160128,), (1337160140,), (1337160148,), (1337160155,), (1337160197,), (1337160204,), (1337160239,), (1337160243,), (1337160251,), (1337160289,), (1337160296,), (1337160299,), (1337160302,), (1337160304,), (1337160332,), (1337160334,), (1337160337,), (1337160339,), (1337160340,), (1337160382,), (1337160383,), (1337160385,), (1337160387,), (1337160424,), (1337160427,), (1337160431,), (1337160434,), (1337160439,), (1337160443,), (1337160484,), (1337160485,), (1337160490,), (1337160497,), (1337160520,), (1337160523,), (1337160527,), (1337160602,), (1337160607,), (1337160614,), (1337160648,), (1337160654,), (1337160991,), (1337160901,), (1337160905,), (1337160909,), (1337160926,), (1337161414,), (1337161498,), (1337161583,), (1337161657,), (1337161732,), (1337161810,), (1337161905,), (1337161908,), (1337161911,), (1337161914,), (1337162614,), (1337162646,), (1337162669,), (1337162682,), (1337162686,), (1337162691,), (1337162831,), (1337162833,), (1337162836,), (1337162839,), (1337162841,), (1337162846,), (1337162881,), (1337162956,), (1337163037,), (1337163175,), (1337163206,), (1337163208,), (1337163211,), (1337163265,), (1337163771,), (1337164015,), (1337164017,), (1337164020,), (1337164023,), (1337164078,), (1337164158,), (1337164160,), (1337164162,), (1337164165,), (1337164168,), (1337164254,), (1337164257,), (1337164265,), (1337164268,), (1337164270,), (1337164273,), (1337164287,), (1337164289,), (1337164292,), (1337164295,), (1337164296,), (1337164300,), (1337164331,), (1337164333,), (1337164336,), (1337164339,), (1337164396,), (1337164398,), (1337164401,), (1337164404,), (1337164409,), (1337164442,), (1337164426,), (1337164428,), (1337164432,), (1337164438,), (1337164462,), (1337164465,), (1337164548,), (1337164686,), (1337164689,), (1337164693,), (1337164808,), (1337164816,), (1337164819,), (1337164825,), (1337164840,), (1337164842,), (1337164851,), (1337164909,), (1337164912,), (1337164975,), (1337164977,), (1337164980,), (1337164983,), (1337164989,), (1337164993,), (1337165005,), (1337165033,), (1337165085,), (1337165197,), (1337165199,), (1337165201,), (1337165204,), (1337165207,), (1337165225,), (1337165228,), (1337165237,), (1337165245,), (1337165263,), (1337165331,), (1337165335,), (1337165340,), (1337165342,), (1337165517,), (1337165520,), (1337165539,), (1337165543,), (1337165562,), (1337165565,), (1337165568,), (1337165572,), (1337165579,), (1337165613,), (1337165616,), (1337165620,), (1337165623,), (1337165626,), (1337165629,), (1337165645,), (1337165648,), (1337165652,), (1337165656,), (1337165690,), (1337165692,), (1337165695,), (1337165698,), (1337165700,), (1337165704,), (1337165727,), (1337165729,), (1337165731,), (1337165734,), (1337165848,), (1337165769,), (1337165771,), (1337165773,), (1337165811,), (1337165828,), (1337165922,), (1337165924,), (1337165931,), (1337165936,), (1337165962,), (1337165964,), (1337165968,), (1337165970,), (1337165998,), (1337166004,), (1337166185,), (1337166280,), (1337166366,), (1337166454,), (1337166661,), (1337166664,), (1337166682,), (1337166721,), (1337166724,), (1337166726,), (1337166980,), (1337166983,), (1337166995,), (1337167010,), (1337167014,), (1337167095,), (1337167098,), (1337167100,), (1337167206,), (1337167336,), (1337167442,), (1337167444,), (1337167480,), (1337167500,), (1337167502,), (1337167535,), (1337167694,), (1337167696,), (1337167699,), (1337167702,), (1337167704,), (1337167707,), (1337167757,), (1337167853,), (1337167908,), (1337167964,), (1337167971,), (1337167976,), (1337167980,), (1337167982,), (1337167984,), (1337167997,), (1337168000,), (1337168005,), (1337168051,), (1337168053,), (1337168062,), (1337168069,), (1337168086,), (1337168091,), (1337168186,), (1337168188,), (1337168191,), (1337168225,), (1337168227,), (1337168230,), (1337168233,), (1337168288,), (1337168290,), (1337168385,), (1337168365,), (1337168369,), (1337168371,), (1337168379,), (1337168568,), (1337168571,), (1337168574,), (1337168576,), (1337168599,), (1337168620,), (1337168645,), (1337168646,), (1337168652,), (1337168694,), (1337168696,), (1337168698,), (1337168699,), (1337168701,), (1337168726,), (1337168727,), (1337168729,), (1337168731,), (1337168733,), (1337168735,), (1337168770,), (1337168773,), (1337168775,), (1337168777,), (1337168805,), (1337168809,), (1337168811,), (1337168813,), (1337168925,), (1337168927,), (1337168952,), (1337168953,), (1337168955,), (1337168956,), (1337168958,), (1337168961,), (1337169089,), (1337169092,), (1337169102,), (1337169115,), (1337169213,), (1337169214,), (1337169216,), (1337169218,), (1337169219,), (1337169273,), (1337169274,), (1337169276,), (1337169278,), (1337169280,), (1337169282,), (1337169328,), (1337169330,), (1337169332,), (1337169334,), (1337169335,), (1337169439,), (1337169441,), (1337169443,), (1337169445,), (1337169452,), (1337169458,), (1337169519,), (1337169524,), (1337169527,), (1337169530,), (1337170207,), (1337170123,), (1337170161,), (1337170167,), (1337170196,), (1337170242,), (1337170244,), (1337170514,), (1337171211,), (1337171214,), (1337171217,), (1337171231,), (1337171233,), (1337171282,), (1337171284,), (1337171287,), (1337171290,), (1337171353,), (1337171356,), (1337171359,), (1337171363,), (1337171566,), (1337171568,), (1337171574,), (1337171617,), (1337171622,), (1337171642,), (1337171644,), (1337171649,), (1337171727,), (1337171731,), (1337171741,), (1337171755,), (1337171758,), (1337171831,), (1337171835,), (1337171917,), (1337171901,), (1337171903,), (1337171907,), (1337171946,), (1337171948,), (1337171952,), (1337172065,), (1337172071,), (1337172085,), (1337172088,), (1337172124,), (1337172127,), (1337172131,), (1337172615,), (1337172799,), (1337172804,), (1337172808,), (1337172817,), (1337172823,), (1337172991,), (1337172996,), (1337173025,), (1337173033,), (1337173204,), (1337173206,), (1337173210,), (1337173275,), (1337173284,), (1337173385,), (1337173387,), (1337173390,), (1337173519,), (1337173521,), (1337173524,), (1337173527,), (1337173530,), (1337173595,), (1337173601,), (1337173604,), (1337173607,), (1337173609,), (1337173641,), (1337173645,), (1337173650,), (1337173653,), (1337173683,), (1337173686,), (1337173690,), (1337173694,), (1337173713,), (1337173716,), (1337173720,), (1337173724,), (1337173729,), (1337173733,), (1337173751,), (1337173754,), (1337173758,), (1337173762,), (1337173782,), (1337173785,), (1337173789,), (1337173794,), (1337173801,), (1337173848,), (1337173826,), (1337173829,), (1337173835,), (1337173842,), (1337173845,), (1337173863,), (1337173865,), (1337173869,), (1337173882,), (1337174116,), (1337174170,), (1337174255,), (1337174328,), (1337174405,), (1337174481,), (1337175265,), (1337175358,), (1337175466,), (1337176027,), (1337176036,), (1337176080,), (1337176155,), (1337176206,), (1337176209,), (1337176390,), (1337176394,), (1337176396,), (1337176405,), (1337176469,), (1337176577,), (1337176580,), (1337176584,), (1337176586,), (1337176627,), (1337176631,), (1337176636,), (1337176639,), (1337176654,), (1337176661,), (1337176681,), (1337176685,), (1337176687,), (1337176695,), (1337176706,), (1337176713,), (1337176736,), (1337176739,), (1337176743,), (1337176758,), (1337176777,), (1337176785,), (1337176788,), (1337176792,), (1337176795,), (1337180472,), (1337184384,), (1337184439,), (1337184993,), (1337185700,), (1337185776,), (1337186300,), (1337186604,), (1337186868,), (1337187354,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12022025': {'nb_upload': 10, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20464482]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] map_info['map_portfolio_photo'] : {20464482: [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198]} final : True mtd_id 4302 list_pids : [1336952021, 1336950427, 1336950424, 1336950027, 1336949973, 1336949909, 1336949847, 1336948918, 1336948914, 1336947198] Looping around the photos to save general results len do output : 1 /20464482Didn'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, '2581430') ('4302', '20464482', '1336952021', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430') ('4302', None, None, None, None, None, None, None, '2581430') ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20464482', 'None', None, None, None, None, '2581430'), ('4302', '20464482', '1336952021', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950427', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950424', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336950027', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949973', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949909', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336949847', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336948918', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336948914', None, None, None, None, None, '2581430'), ('4302', '20464482', '1336947198', None, None, None, None, None, '2581430')] time used for this insertion : 0.01891922950744629 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.3678059577941895 time spend to save output : 0.019207000732421875 total time spend for step 5 : 4.387012958526611 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 (2581430) 2.51user 1.82system 0:14.71elapsed 29%CPU (0avgtext+0avgdata 160920maxresident)k 3160inputs+8776outputs (31major+77146minor)pagefaults 0swaps