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 : 3446267 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 (2671881) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2671881) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458129 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2671881'] with mtr_portfolio_ids : ['21458129'] and first list_photo_ids : [] new path : /proc/3446267/ Name: python3 Umask: 0002 State: R (running) Tgid: 3446267 Ngid: 0 Pid: 3446267 PPid: 3446266 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3446267 NSpid: 3446267 NSpgid: 3431628 NSsid: 3431628 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98656 kB VmRSS: 98656 kB RssAnon: 59764 kB RssFile: 38892 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 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: 71 nonvoluntary_ctxt_switches: 123 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3446267', 'Ngid': '0', 'Pid': '3446267', 'PPid': '3446266', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3446267', 'NSpid': '3446267', 'NSpgid': '3431628', 'NSsid': '3431628', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98656 kB', 'VmRSS': '98656 kB', 'RssAnon': '59764 kB', 'RssFile': '38892 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '71', 'nonvoluntary_ctxt_switches': '123'} ('datou_batch_current', '3446267', '1106844', '0', '1106844', '865596', '98656', b'', 'marlene', '2671881') 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 (21458129) 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 (2671881 ) ) 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 (21458129) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344366437, 'portfolio_id': 21458129}, {'photo_id': 1344365963, 'portfolio_id': 21458129}, {'photo_id': 1344365960, 'portfolio_id': 21458129}, {'photo_id': 1344365587, 'portfolio_id': 21458129}, {'photo_id': 1344365567, 'portfolio_id': 21458129}, {'photo_id': 1344365257, 'portfolio_id': 21458129}, {'photo_id': 1344364272, 'portfolio_id': 21458129}, {'photo_id': 1344363903, 'portfolio_id': 21458129}, {'photo_id': 1344363671, 'portfolio_id': 21458129}, {'photo_id': 1344363596, 'portfolio_id': 21458129}, {'photo_id': 1344363005, 'portfolio_id': 21458129}] map_portfolio_id_photo_id: {21458129: [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005]} ##### 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.034744977951049805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Sat Mar 15 06:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21458129) 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 : 21458129 get user id for portfolio 21458129 get sub ptf for main ptf 21458129, type 3726 and hashtags ['plastique', 'environnement', 'kraft', 'papier', 'mal_croppe', 'cartonnette', 'Carton_brun', 'autre_refus', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'flou'] 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`=21458129 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','kraft','papier','mal_croppe','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','flou')) 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`=21458129 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','kraft','papier','mal_croppe','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21458129, 'sub_port_id': 21458130, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026700, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'Carton_brun': {'main_port_id': 21458129, 'sub_port_id': 21458131, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026701, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'autre_refus': {'main_port_id': 21458129, 'sub_port_id': 21458132, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026702, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'metal': {'main_port_id': 21458129, 'sub_port_id': 21458133, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026703, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'papier': {'main_port_id': 21458129, 'sub_port_id': 21458134, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026704, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21458129, 'sub_port_id': 21458135, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026705, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'plastique': {'main_port_id': 21458129, 'sub_port_id': 21458136, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026706, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'flou': {'main_port_id': 21458129, 'sub_port_id': 21458137, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026707, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'environnement': {'main_port_id': 21458129, 'sub_port_id': 21458138, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026708, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'mal_croppe': {'main_port_id': 21458129, 'sub_port_id': 21458139, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026709, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'kraft': {'main_port_id': 21458129, 'sub_port_id': 21458140, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026710, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}, 'cartonnette': {'main_port_id': 21458129, 'sub_port_id': 21458141, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026711, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 43, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21458130 , 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=21458129 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 (21458130) result : ((1344366238,), (1344366488,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458131 , 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=21458129 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 (21458131) result : ((1344366243,), (1344366489,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458132 , 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=21458129 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 (21458132) result : ((1344366487,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458133 , 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=21458129 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 (21458133) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458134 , 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=21458129 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 (21458134) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458135 , 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=21458129 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 (21458135) result : ((1344366231,), (1344366232,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458136 , 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=21458129 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 (21458136) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458137 , 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=21458129 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 (21458137) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458138 , 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=21458129 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 (21458138) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458139 , 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=21458129 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 (21458139) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458140 , 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=21458129 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 (21458140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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 21458141 , 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=21458129 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 (21458141) result : ((1344364418,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21458129) result : ((1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,)) 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`=21458129 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','kraft','papier','mal_croppe','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','flou')) 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`=21458129 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','environnement','kraft','papier','mal_croppe','cartonnette','Carton_brun','autre_refus','Carton_gris','Teint_Dans_La_Masse','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21458129, 'sub_port_id': 21458142, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026712, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'Carton_brun': {'main_port_id': 21458129, 'sub_port_id': 21458143, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026713, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'autre_refus': {'main_port_id': 21458129, 'sub_port_id': 21458144, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026714, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'metal': {'main_port_id': 21458129, 'sub_port_id': 21458145, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026715, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'papier': {'main_port_id': 21458129, 'sub_port_id': 21458146, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026716, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'Teint_Dans_La_Masse': {'main_port_id': 21458129, 'sub_port_id': 21458147, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026717, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'plastique': {'main_port_id': 21458129, 'sub_port_id': 21458148, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026718, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'flou': {'main_port_id': 21458129, 'sub_port_id': 21458149, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026719, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'environnement': {'main_port_id': 21458129, 'sub_port_id': 21458150, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026720, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'mal_croppe': {'main_port_id': 21458129, 'sub_port_id': 21458151, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026721, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'kraft': {'main_port_id': 21458129, 'sub_port_id': 21458152, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026722, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 44), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}, 'cartonnette': {'main_port_id': 21458129, 'sub_port_id': 21458153, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14026723, 'last_updated_at': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 23, 44)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458142,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458130 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458144,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458132 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458145,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458134 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21458153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21458141 lien utilise dans velours : https://www.fotonower.com/velours/21458142,21458143,21458144,21458145,21458146,21458147,21458148,21458149,21458150,21458151,21458152,21458153?tags=Carton_gris,Carton_brun,autre_refus,metal,papier,Teint_Dans_La_Masse,plastique,flou,environnement,mal_croppe,kraft,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21458129]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] map_info['map_portfolio_photo'] : {21458129: [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005]} final : False mtd_id 4302 list_pids : [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] Looping around the photos to save general results len do output : 1 /21458129. 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, '2671881') ('4302', '21458129', '1344366437', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21458129', "{'Carton_gris': 21458130, 'Carton_brun': 21458131, 'autre_refus': 21458132, 'metal': 21458133, 'papier': 21458134, 'Teint_Dans_La_Masse': 21458135, 'plastique': 21458136, 'flou': 21458137, 'environnement': 21458138, 'mal_croppe': 21458139, 'kraft': 21458140, 'cartonnette': 21458141}", None, None, None, None, '2671881'), ('4302', '21458129', '1344366437', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881')] time used for this insertion : 0.20980501174926758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4794013500213623 time spend to save output : 0.21010255813598633 total time spend for step 1 : 1.6895039081573486 step2:final Sat Mar 15 06:01:00 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 (21458129) 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 21458129 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344363005,1344363671,1344363596,1344363903,1344364272,1344365257,1344365587,1344365567,1344365963,1344365960,1344366437); 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([21458129]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} new output for save of step final : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] map_info['map_portfolio_photo'] : {21458129: [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005]} final : False mtd_id 4302 list_pids : [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] Looping around the photos to save general results len do output : 11 /1344366437.Didn't retrieve data . /1344365963.Didn't retrieve data . /1344365960.Didn't retrieve data . /1344365587.Didn't retrieve data . /1344365567.Didn't retrieve data . /1344365257.Didn't retrieve data . /1344364272.Didn't retrieve data . /1344363903.Didn't retrieve data . /1344363671.Didn't retrieve data . /1344363596.Didn't retrieve data . /1344363005.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, '2671881') ('4302', '21458129', '1344366437', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21458129', '1344366437', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344365963', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344365960', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344365587', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344365567', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344365257', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344364272', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344363903', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344363671', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344363596', '0.05144637356950585', None, None, None, None, '2671881'), ('4302', '21458129', '1344363005', '0.05144637356950585', None, None, None, None, '2671881')] time used for this insertion : 0.2667205333709717 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.19056224822998047 time spend to save output : 0.2673201560974121 total time spend for step 2 : 0.4578824043273926 step3:velours_tree Sat Mar 15 06:01:00 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 : {21458129: [{'Carton_gris': 21458130, 'Carton_brun': 21458131, 'autre_refus': 21458132, 'metal': 21458133, 'papier': 21458134, 'Teint_Dans_La_Masse': 21458135, 'plastique': 21458136, 'flou': 21458137, 'environnement': 21458138, 'mal_croppe': 21458139, 'kraft': 21458140, 'cartonnette': 21458141}]} input_args_next_step : {21458129: ()} output_args : {21458129: [{'Carton_gris': 21458130, 'Carton_brun': 21458131, 'autre_refus': 21458132, 'metal': 21458133, 'papier': 21458134, 'Teint_Dans_La_Masse': 21458135, 'plastique': 21458136, 'flou': 21458137, 'environnement': 21458138, 'mal_croppe': 21458139, 'kraft': 21458140, 'cartonnette': 21458141}]} args : 21458129 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21458130, 'Carton_brun': 21458131, 'autre_refus': 21458132, 'metal': 21458133, 'papier': 21458134, 'Teint_Dans_La_Masse': 21458135, 'plastique': 21458136, 'flou': 21458137, 'environnement': 21458138, 'mal_croppe': 21458139, 'kraft': 21458140, 'cartonnette': 21458141},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21458129) 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([21458129]) 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.3389313220977783 time spend to save output : 7.05718994140625e-05 total time spend for step 3 : 0.3390018939971924 step4:send_mail_cod Sat Mar 15 06:01:01 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 : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} input_args_next_step : {1344366437: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344366437 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344365963 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344365960 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344365587 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344365567 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344365257 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344364272 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344363903 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344363671 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344363596 depend.output_id : 0 input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ()} output_args : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',)} args : 1344363005 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 : {21458129: [{'Carton_gris': 21458130, 'Carton_brun': 21458131, 'autre_refus': 21458132, 'metal': 21458133, 'papier': 21458134, 'Teint_Dans_La_Masse': 21458135, 'plastique': 21458136, 'flou': 21458137, 'environnement': 21458138, 'mal_croppe': 21458139, 'kraft': 21458140, 'cartonnette': 21458141}]} input_args_next_step : {1344366437: ('0.05144637356950585',), 1344365963: ('0.05144637356950585',), 1344365960: ('0.05144637356950585',), 1344365587: ('0.05144637356950585',), 1344365567: ('0.05144637356950585',), 1344365257: ('0.05144637356950585',), 1344364272: ('0.05144637356950585',), 1344363903: ('0.05144637356950585',), 1344363671: ('0.05144637356950585',), 1344363596: ('0.05144637356950585',), 1344363005: ('0.05144637356950585',), 21458129: ()} output_args : {21458129: [{'Carton_gris': 21458130, 'Carton_brun': 21458131, 'autre_refus': 21458132, 'metal': 21458133, 'papier': 21458134, 'Teint_Dans_La_Masse': 21458135, 'plastique': 21458136, 'flou': 21458137, 'environnement': 21458138, 'mal_croppe': 21458139, 'kraft': 21458140, 'cartonnette': 21458141}]} args : 21458129 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 :12, first value : ('0.05144637356950585',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21458129) 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 (1344366437,1344365963,1344365960,1344365587,1344365567,1344365257,1344364272,1344363903,1344363671,1344363596,1344363005) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344363005 begin to download photo : 1344363903 begin to download photo : 1344365567 begin to download photo : 1344365963 download finish for photo 1344363903 begin to download photo : 1344364272 download finish for photo 1344365567 begin to download photo : 1344365587 download finish for photo 1344365963 begin to download photo : 1344366437 download finish for photo 1344363005 begin to download photo : 1344363596 download finish for photo 1344365587 begin to download photo : 1344365960 download finish for photo 1344364272 begin to download photo : 1344365257 download finish for photo 1344366437 download finish for photo 1344363596 begin to download photo : 1344363671 download finish for photo 1344365960 download finish for photo 1344365257 download finish for photo 1344363671 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21458129_15-03-2025_06_01_01.pdf 21458132 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=21458132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344366487: '1741992472_1266713_1344366437_da1b3138cdd06c21e35852e2c6612ce1_rle_crop_3713464697_0.png'} change filename to text .imagette214581321742014861/ imagette214581321742014861/1741992472_1266713_1344366437_da1b3138cdd06c21e35852e2c6612ce1_rle_crop_3713464697_0.png.png imagette214581331742014861/ imagette214581361742014861/ imagette214581371742014861/ imagette214581391742014861/ imagette214581401742014861/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9da8453079889ef60018a1417444cc44_98240229.png imagette214581321742014861 21458133 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=21458133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214581331742014861 21458136 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=21458136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214581361742014861 21458137 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=21458137 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214581371742014861 21458139 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=21458139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214581391742014861 21458140 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=21458140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214581401742014861 21458141 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=21458141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344364418: '1741991870_1263618_1344363903_35843774a67d32de8c447899fcc3cc06_rle_crop_3713462152_0.png'} change filename to text .imagette214581411742014861/ imagette214581411742014861/1741991870_1263618_1344363903_35843774a67d32de8c447899fcc3cc06_rle_crop_3713462152_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/09348289523cf87068f7776701f29eb0_70810184.png imagette214581411742014861 21458130 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=21458130 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344366238: '1741992352_1265984_1344365567_9369e6922ded0dfb3d6c59b0d26b2339_rle_crop_3713463893_0.png', 1344366488: '1741992472_1266713_1344365960_882512413d3582bc4d053bbf465b7d13_rle_crop_3713464720_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/baf293a909adbdad54845c2741d68b39_36804904.png change filename to text .imagette214581301742014862/ imagette214581301742014862/1741992472_1266713_1344365960_882512413d3582bc4d053bbf465b7d13_rle_crop_3713464720_0.png.png imagette214581301742014862/1741992352_1265984_1344365567_9369e6922ded0dfb3d6c59b0d26b2339_rle_crop_3713463893_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/88571e91abfe31fac81aa52f420e4b0c_64829203.png imagette214581301742014862 21458131 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=21458131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344366243: '1741992352_1265984_1344365963_1ce3c75af22b2b72a0e31fc90d1ef74c_rle_crop_3713463888_0.png', 1344366489: '1741992472_1266713_1344366437_da1b3138cdd06c21e35852e2c6612ce1_rle_crop_3713464707_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/915dc7d7c9fa76ab7ddd573e0ebfea24_69236249.png change filename to text .imagette214581311742014862/ imagette214581311742014862/1741992352_1265984_1344365963_1ce3c75af22b2b72a0e31fc90d1ef74c_rle_crop_3713463888_0.png.png imagette214581311742014862/1741992472_1266713_1344366437_da1b3138cdd06c21e35852e2c6612ce1_rle_crop_3713464707_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/36c838b5c5236e9bdcdb89ffe9cb589e_24746702.png imagette214581311742014862 21458135 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=21458135 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344366231: '1741992352_1265984_1344365567_9369e6922ded0dfb3d6c59b0d26b2339_rle_crop_3713463898_0.png', 1344366232: '1741992352_1265984_1344365567_9369e6922ded0dfb3d6c59b0d26b2339_rle_crop_3713463904_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c22565b94aa83f0ffa741c8278b588d0_67091076.png change filename to text .imagette214581351742014862/ imagette214581351742014862/1741992352_1265984_1344365567_9369e6922ded0dfb3d6c59b0d26b2339_rle_crop_3713463904_0.png.png imagette214581351742014862/1741992352_1265984_1344365567_9369e6922ded0dfb3d6c59b0d26b2339_rle_crop_3713463898_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f523eece0d698adc4d0c7f684ec77016_47175773.png imagette214581351742014862 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21458129 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21458142,21458143,21458144,21458145,21458146,21458147,21458148,21458149,21458150,21458151,21458152,21458153?tags=Carton_gris,Carton_brun,autre_refus,metal,papier,Teint_Dans_La_Masse,plastique,flou,environnement,mal_croppe,kraft,cartonnette your option no_mail is active, we will not send the real mail to your client args[1344366437] : ('0.05144637356950585',) no score found for photo 1344366437 We are sending mail with results at report@fotonower.com args[1344365963] : ('0.05144637356950585',) no score found for photo 1344365963 We are sending mail with results at report@fotonower.com args[1344365960] : ('0.05144637356950585',) no score found for photo 1344365960 We are sending mail with results at report@fotonower.com args[1344365587] : ('0.05144637356950585',) no score found for photo 1344365587 We are sending mail with results at report@fotonower.com args[1344365567] : ('0.05144637356950585',) no score found for photo 1344365567 We are sending mail with results at report@fotonower.com args[1344365257] : ('0.05144637356950585',) no score found for photo 1344365257 We are sending mail with results at report@fotonower.com args[1344364272] : ('0.05144637356950585',) no score found for photo 1344364272 We are sending mail with results at report@fotonower.com args[1344363903] : ('0.05144637356950585',) no score found for photo 1344363903 We are sending mail with results at report@fotonower.com args[1344363671] : ('0.05144637356950585',) no score found for photo 1344363671 We are sending mail with results at report@fotonower.com args[1344363596] : ('0.05144637356950585',) no score found for photo 1344363596 We are sending mail with results at report@fotonower.com args[1344363005] : ('0.05144637356950585',) no score found for photo 1344363005 We are sending mail with results at report@fotonower.com refus_total : 0.05144637356950585 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=21458129 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_P21458129_15-03-2025_06_01_01.pdf results_Auto_P21458129_15-03-2025_06_01_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21458129_15-03-2025_06_01_01.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','21458129','results_Auto_P21458129_15-03-2025_06_01_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21458129_15-03-2025_06_01_01.pdf','pdf','','0.13','0.05144637356950585') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21458129]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] map_info['map_portfolio_photo'] : {21458129: [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005]} final : False mtd_id 4302 list_pids : [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] 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, '2671881') ('4302', '21458129', '1344366437', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881') 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', '21458129', '1344366437', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881')] time used for this insertion : 0.13936090469360352 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8208134174346924 time spend to save output : 0.1396923065185547 total time spend for step 4 : 2.960505723953247 step5:split_time_score Sat Mar 15 06:01:04 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 : ['21458129'] 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 : [('21458129',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21458129) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344365963: {'path': 'temp/1742014861_3446267_1344365963_1ce3c75af22b2b72a0e31fc90d1ef74c.jpg', 'extension': 'jpg'}, 1344366437: {'path': 'temp/1742014861_3446267_1344366437_da1b3138cdd06c21e35852e2c6612ce1.jpg', 'extension': 'jpg'}, 1344365567: {'path': 'temp/1742014861_3446267_1344365567_9369e6922ded0dfb3d6c59b0d26b2339.jpg', 'extension': 'jpg'}, 1344365587: {'path': 'temp/1742014861_3446267_1344365587_e4df9e985caa01e2b6c03e14276e8821.jpg', 'extension': 'jpg'}, 1344365960: {'path': 'temp/1742014861_3446267_1344365960_882512413d3582bc4d053bbf465b7d13.jpg', 'extension': 'jpg'}, 1344363903: {'path': 'temp/1742014861_3446267_1344363903_35843774a67d32de8c447899fcc3cc06.jpg', 'extension': 'jpg'}, 1344364272: {'path': 'temp/1742014861_3446267_1344364272_2ba5161759165ac8b35e0694f26ad6c3.jpg', 'extension': 'jpg'}, 1344365257: {'path': 'temp/1742014861_3446267_1344365257_31a9c2a2aa2977deb0e78727788aeff2.jpg', 'extension': 'jpg'}, 1344363005: {'path': 'temp/1742014861_3446267_1344363005_1581b4444f7b5cd5ee0f9a39e2038672.jpg', 'extension': 'jpg'}, 1344363596: {'path': 'temp/1742014861_3446267_1344363596_ffbd31a7e523374065ebd43407327598.jpg', 'extension': 'jpg'}, 1344363671: {'path': 'temp/1742014861_3446267_1344363671_380184342fa469237844780c333c1ca8.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 = 21458129; (('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 = 21458129 group by h (('23', 11),) 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=21458129 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 (21458129) 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 (21458129) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21458129 Nombre de photos uploadées : 11 / 23040 (0%) 14032025 21458129 Nombre de photos taguées (types de déchets): 0 / 11 (0%) 14032025 21458129 Nombre de photos taguées (volume) : 0 / 11 (0%) [{'photo_id': 1344363005, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/1581b4444f7b5cd5ee0f9a39e2038672.jpg', 'username': None, 'uploaded_at': 1741991566, 'text': 'image_14032025_23_30_03_9141.jpg'}, {'photo_id': 1344363671, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/380184342fa469237844780c333c1ca8.jpg', 'username': None, 'uploaded_at': 1741991687, 'text': 'image_14032025_23_31_34_10140.jpg'}, {'photo_id': 1344363596, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/ffbd31a7e523374065ebd43407327598.jpg', 'username': None, 'uploaded_at': 1741991687, 'text': 'image_14032025_23_33_14_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344363903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/35843774a67d32de8c447899fcc3cc06.jpg', 'username': None, 'uploaded_at': 1741991747, 'text': 'image_14032025_23_33_24_010139m0.jpg 2e-05 for time 1, id_amount 2 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 6.67572021484375e-06 ??????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006647109985351562 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21458129, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.04135012626647949 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21407147, 'dashboard_result_id': 9475282, '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_P21407147_15-03-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407160, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21407623, 'dashboard_result_id': 9475283, '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_P21407623_15-03-2025_05_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407635, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21408005, 'dashboard_result_id': 9475284, '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_P21408005_15-03-2025_05_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21408030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21408031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21408032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21408033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21408034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21408035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21408036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21408037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21408038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21408039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21408040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21408041, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21408505, 'dashboard_result_id': 9475285, '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_P21408505_15-03-2025_05_36_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21408554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21408555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21408556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21408557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21408558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21408559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21408560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21408561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21408562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21408563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21408564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21408565, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21408973, 'dashboard_result_id': 9475286, '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_P21408973_15-03-2025_05_36_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21409003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21409004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21409005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21409006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21409007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21409008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21409009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21409010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21409011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21409012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21409013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21409014, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21409757, 'dashboard_result_id': 9475287, '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_P21409757_15-03-2025_05_36_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21409770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21409771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21409772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21409773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21409774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21409775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21409776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21409777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21409778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21409779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21409780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21409781, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21410163, 'dashboard_result_id': 9475288, '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_P21410163_15-03-2025_05_37_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21410188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21410189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21410190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21410191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21410192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21410193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21410194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21410195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21410196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21410197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21410198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21410199, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21410769, 'dashboard_result_id': 9475289, '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_P21410769_15-03-2025_05_37_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21410773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21410774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21410775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21410776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21410777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21410778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21410779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21410780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21410781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21410782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21410783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21410784, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21411388, 'dashboard_result_id': 9475290, '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_P21411388_15-03-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21411428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21411429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21411430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21411431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21411432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21411433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21411434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21411435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21411436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21411437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21411438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21411439, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21412312, 'dashboard_result_id': 9475291, '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_P21412312_14-03-2025_07_44_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21412362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21412363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21412364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21412365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21412366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21412367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21412369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21412370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21412371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21412372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21412373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21412374, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21412913, 'dashboard_result_id': 9475292, '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_P21412913_15-03-2025_05_38_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21412938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21412939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21412940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21412941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21412942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21412943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21412944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21412945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21412946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21412947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21412948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21412949, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21413546, 'dashboard_result_id': 9475293, '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_P21413546_15-03-2025_05_39_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21413557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21413558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21413559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21413560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21413561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21413562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21413563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21413564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21413565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21413566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21413567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21413568, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21414337, 'dashboard_result_id': 9475294, '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_P21414337_15-03-2025_05_39_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21414363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21414364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21414365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21414366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21414367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21414368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21414369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21414370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21414371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21414372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21414373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21414374, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21415228, 'dashboard_result_id': 9475295, '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_P21415228_15-03-2025_05_40_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21415229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415240, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21415593, 'dashboard_result_id': 9475296, '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_P21415593_15-03-2025_05_40_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21415629, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21417119, 'dashboard_result_id': 9475297, '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_P21417119_15-03-2025_05_40_48.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21417582, 'dashboard_result_id': 9475298, '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_P21417582_15-03-2025_05_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417621, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21417994, 'dashboard_result_id': 9475299, '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_P21417994_15-03-2025_05_41_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418050, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21418677, 'dashboard_result_id': 9475300, '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_P21418677_15-03-2025_05_42_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418769, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21419246, 'dashboard_result_id': 9475301, '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_P21419246_15-03-2025_05_42_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21419349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21419350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21419351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21419352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21419353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21419354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21419355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21419356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21419357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21419358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21419359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21419360, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21419925, 'dashboard_result_id': 9475302, '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_P21419925_15-03-2025_05_42_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21419975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21419976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21419977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21419978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21419979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21419980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21419981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21419982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21419983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21419984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21419985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21419986, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21420543, 'dashboard_result_id': 9475303, '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_P21420543_15-03-2025_05_43_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21420568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21420569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21420570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21420571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21420572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21420573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21420574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21420575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21420576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21420577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21420578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21420579, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21421291, 'dashboard_result_id': 9475304, '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_P21421291_15-03-2025_05_43_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21421295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21421296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21421297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21421298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21421299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21421300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21421301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21421302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21421303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21421304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21421305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21421306, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21422015, 'dashboard_result_id': 9475305, '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_P21422015_15-03-2025_05_44_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21422016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21422017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21422018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21422019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21422020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21422021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21422022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21422023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21422024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21422025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21422026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21422027, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21422620, 'dashboard_result_id': 9475306, '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_P21422620_15-03-2025_05_44_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21422622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21422623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21422624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21422625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21422626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21422627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21422628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21422629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21422630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21422631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21422632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21422633, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21423525, 'dashboard_result_id': 9475307, '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_P21423525_15-03-2025_05_45_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21423532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21423533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21423534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21423535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21423536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21423537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21423538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21423539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21423540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21423541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21423542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21423543, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21424132, 'dashboard_result_id': 9475308, '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_P21424132_15-03-2025_05_45_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21424136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21424137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21424138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21424139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21424140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21424141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21424142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21424143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21424144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21424145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21424146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21424147, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21424672, 'dashboard_result_id': 9475309, '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_P21424672_15-03-2025_05_45_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21424673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21424674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21424675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21424676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21424677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21424678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21424679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21424680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21424681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21424682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21424683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21424684, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21426032, 'dashboard_result_id': 9475310, '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_P21426032_15-03-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21426036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21426037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21426038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21426039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21426040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21426041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21426042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21426043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21426044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21426045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21426046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21426047, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21426451, 'dashboard_result_id': 9475311, '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_P21426451_15-03-2025_05_46_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21426455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21426456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21426457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21426458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21426459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21426460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21426461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21426462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21426463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21426464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21426465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21426466, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21427188, 'dashboard_result_id': 9475312, '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_P21427188_15-03-2025_05_46_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21427190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21427191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21427192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21427193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21427194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21427195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21427196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21427197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21427198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21427199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21427200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21427201, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21427593, 'dashboard_result_id': 9475313, '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_P21427593_15-03-2025_05_46_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21427594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21427595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21427596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21427597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21427599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21427600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21427601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21427602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21427603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21427604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21427605, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21428187, 'dashboard_result_id': 9475314, '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_P21428187_15-03-2025_05_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21428251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21428252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21428253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21428254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21428255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21428256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21428257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21428258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21428259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21428260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21428261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21428262, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21429235, 'dashboard_result_id': 9475315, '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_P21429235_15-03-2025_05_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21429241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429249, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21429848, 'dashboard_result_id': 9475316, '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_P21429848_15-03-2025_05_48_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21429905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429920, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21430871, 'dashboard_result_id': 9475317, '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_P21430871_15-03-2025_05_48_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21430896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21430897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21430898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21430899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21430900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21430901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21430902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21430903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21430904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21430905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21430906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21430907, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21431516, 'dashboard_result_id': 9475318, '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_P21431516_15-03-2025_05_48_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21432602, 'dashboard_result_id': 9475319, '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_P21432602_15-03-2025_05_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21433508, 'dashboard_result_id': 9475320, '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_P21433508_15-03-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21433509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21433510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21433511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21433512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21433513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21433514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21433515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21433516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21433517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21433518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21433519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21433520, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21434857, 'dashboard_result_id': 9475321, '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_P21434857_15-03-2025_05_50_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21434916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21434917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21434918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21434919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21434920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21434921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21434922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21434923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21434924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21434925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21434926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21434927, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21435460, 'dashboard_result_id': 9475322, '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_P21435460_15-03-2025_05_50_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21435547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21435548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21435549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21435550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21435551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21435552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21435553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21435554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21435555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21435556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21435557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21435558, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21436426, 'dashboard_result_id': 9475323, '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_P21436426_15-03-2025_05_50_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21436441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21436442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21436443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21436444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21436445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21436446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21436447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21436448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21436449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21436450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21436451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21436452, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21437446, 'dashboard_result_id': 9475324, '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_P21437446_15-03-2025_05_50_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21437465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21437466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21437467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21437468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21437469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21437470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21437471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21437472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21437473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21437474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21437475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21437476, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21438173, 'dashboard_result_id': 9475325, '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_P21438173_15-03-2025_05_51_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438262, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21438916, 'dashboard_result_id': 9475326, '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_P21438916_15-03-2025_05_51_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438952, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21439897, 'dashboard_result_id': 9475327, '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_P21439897_15-03-2025_05_52_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21439898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21439899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21439900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21439901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21439902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21439903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21439904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21439905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21439906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21439907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21439908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21439909, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21441656, 'dashboard_result_id': 9475328, '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_P21441656_15-03-2025_05_52_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21441699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21441700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21441701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21441702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21441703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21441704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21441705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21441706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21441707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21441708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21441709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21441710, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21442634, 'dashboard_result_id': 9475329, '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_P21442634_15-03-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21442654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21442655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21442656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21442657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21442658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21442659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21442660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21442661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21442662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21442663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21442664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21442665, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21443447, 'dashboard_result_id': 9475330, '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_P21443447_15-03-2025_05_53_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21443466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21443467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21443468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21443469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21443470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21443471, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21443472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21443473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21443474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21443475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21443476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21443477, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21444057, 'dashboard_result_id': 9475331, '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_P21444057_15-03-2025_05_54_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21444141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21444142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21444143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21444144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21444145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21444146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21444147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21444148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21444149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21444150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21444151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21444152, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21444770, 'dashboard_result_id': 9475332, '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_P21444770_15-03-2025_05_54_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21444855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21444856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21444857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21444858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21444859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21444860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21444861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21444862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21444863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21444864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21444865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21444866, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21446087, 'dashboard_result_id': 9475333, '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_P21446087_15-03-2025_05_54_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21446092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21446093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21446094, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21446095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21446096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21446097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21446098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21446099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21446100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21446101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21446102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21446103, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21446965, 'dashboard_result_id': 9475334, '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_P21446965_15-03-2025_05_55_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21446968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21446969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21446970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21446971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21446972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21446973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21446974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21446975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21446976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21446977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21446978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21446979, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21447649, 'dashboard_result_id': 9475335, '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_P21447649_15-03-2025_05_55_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21447650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21447651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21447652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21447653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21447654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21447655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21447656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21447657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21447658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21447659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21447660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21447661, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21448345, 'dashboard_result_id': 9475336, '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_P21448345_15-03-2025_05_55_45.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21448364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21448365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21448366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21448367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21448368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21448369, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21448370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21448371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21448372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21448373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21448374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21448375, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21449303, 'dashboard_result_id': 9475337, '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_P21449303_15-03-2025_05_56_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21449328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21449329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21449330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21449331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21449332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21449333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21449334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21449335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21449336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21449337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21449338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21449339, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21450201, 'dashboard_result_id': 9475338, '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_P21450201_15-03-2025_05_56_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21450204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21450205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21450206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21450207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21450208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21450209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21450210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21450211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21450212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21450213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21450214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21450215, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21451547, 'dashboard_result_id': 9475339, '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_P21451547_15-03-2025_05_57_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21451549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21451550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21451551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21451552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21451553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21451554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21451555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21451556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21451557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21451558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21451559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21451560, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21452180, 'dashboard_result_id': 9475340, '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_P21452180_15-03-2025_05_57_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21452207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21452208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21452209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21452210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21452211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21452212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21452213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21452214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21452215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21452216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21452217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21452218, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21452897, 'dashboard_result_id': 9475341, '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_P21452897_15-03-2025_05_58_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21452935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21452936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21452937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21452938, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21452939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21452940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21452941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21452942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21452943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21452944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21452945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21452946, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21453624, 'dashboard_result_id': 9475342, '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_P21453624_15-03-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21453649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21453650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21453651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21453652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21453653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21453654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21453655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21453656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21453657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21453658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21453659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21453660, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21454401, 'dashboard_result_id': 9475343, '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_P21454401_15-03-2025_05_58_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21454414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21454415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21454416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21454417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21454418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21454419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21454420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21454421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21454422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21454423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21454424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21454425, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21455399, 'dashboard_result_id': 9475344, '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_P21455399_15-03-2025_05_59_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21455475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21455478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21455480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21455482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21455484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21455487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21455489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21455491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21455493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21455496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21455497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21455498, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21455956, 'dashboard_result_id': 9475345, '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_P21455956_15-03-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21455958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21455959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21455960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21455961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21455962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21455963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21455964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21455965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21455966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21455967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21455968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21455969, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21456425, 'dashboard_result_id': 9475346, '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_P21456425_15-03-2025_06_00_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21456426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21456427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21456428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21456429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21456430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21456431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21456432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21456433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21456434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21456435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21456436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21456437, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21457085, 'dashboard_result_id': 9475347, '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_P21457085_15-03-2025_06_00_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21457087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21457088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21457089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21457090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21457091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21457092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21457093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21457095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21457096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21457097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21457099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21457100, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21457786, 'dashboard_result_id': 9475348, '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_P21457786_15-03-2025_06_00_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21457787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21457788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21457789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21457790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21457791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21457792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21457793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21457794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21457795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21457796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21457797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21457798, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21458129, 'dashboard_result_id': 9475349, '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_P21458129_14-03-2025_23_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21458130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21458131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21458132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21458133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21458134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21458135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21458136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21458137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21458138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21458139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21458140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21458141, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1678688, 'mtr_portfolio_id': 21458341, 'dashboard_result_id': 9475350, '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_P21458341_15-03-2025_00_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21458366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21458367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21458368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21458369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21458370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21458371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21458372, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21458373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21458374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21458375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21458376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21458377, '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 = 21407147 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': 2671814, 'mtr_portfolio_id': 21407147, 'created_at': datetime.datetime(2025, 3, 15, 5, 34, 29), 'result': '0.08346657352858299', 'result_long': None, 'result_double': None}] Qualite : 0.08346657352858299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21407147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_15-03-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21407147 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_P21407147_15-03-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407160, 'pht': 3726}}" where mtr_portfolio_id = 21407147 and dashboard_run_id = 1678688 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`=21407147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475282, 0.08346657352858299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407147_15-03-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407160, '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 = 21407623 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': 2671815, 'mtr_portfolio_id': 21407623, 'created_at': datetime.datetime(2025, 3, 15, 5, 35, 1), 'result': '0.08459215146773552', 'result_long': None, 'result_double': None}] Qualite : 0.08459215146773552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21407623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407623_15-03-2025_05_35_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21407623 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_P21407623_15-03-2025_05_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407635, 'pht': 3726}}" where mtr_portfolio_id = 21407623 and dashboard_run_id = 1678688 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`=21407623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475283, 0.08459215146773552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21407623_15-03-2025_05_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21407624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21407625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21407626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21407627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21407628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21407629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21407630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21407631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21407632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21407633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21407634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21407635, '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 = 21408005 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': 2671816, 'mtr_portfolio_id': 21408005, 'created_at': datetime.datetime(2025, 3, 15, 5, 35, 28), 'result': '0.08908514758427538', 'result_long': None, 'result_double': None}] Qualite : 0.08908514758427538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21408005 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408005_15-03-2025_05_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21408005 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_P21408005_15-03-2025_05_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21408030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21408031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21408032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21408033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21408034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21408035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21408036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21408037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21408038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21408039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21408040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21408041, 'pht': 3726}}" where mtr_portfolio_id = 21408005 and dashboard_run_id = 1678688 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`=21408005 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475284, 0.08908514758427538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408005_15-03-2025_05_35_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21408030, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21408031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21408032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21408033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21408034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21408035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21408036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21408037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21408038, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21408039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21408040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21408041, '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 = 21408505 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': 2671817, 'mtr_portfolio_id': 21408505, 'created_at': datetime.datetime(2025, 3, 15, 5, 35, 58), 'result': '0.07336943881178368', 'result_long': None, 'result_double': None}] Qualite : 0.07336943881178368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21408505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408505_15-03-2025_05_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21408505 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_P21408505_15-03-2025_05_36_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21408554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21408555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21408556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21408557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21408558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21408559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21408560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21408561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21408562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21408563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21408564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21408565, 'pht': 3726}}" where mtr_portfolio_id = 21408505 and dashboard_run_id = 1678688 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`=21408505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475285, 0.07336943881178368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408505_15-03-2025_05_36_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21408554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21408555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21408556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21408557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21408558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21408559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21408560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21408561, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21408562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21408563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21408564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21408565, '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 = 21408973 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': 2671818, 'mtr_portfolio_id': 21408973, 'created_at': datetime.datetime(2025, 3, 15, 5, 36, 29), 'result': '0.07953245770948995', 'result_long': None, 'result_double': None}] Qualite : 0.07953245770948995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21408973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408973_15-03-2025_05_36_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21408973 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_P21408973_15-03-2025_05_36_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21409003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21409004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21409005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21409006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21409007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21409008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21409009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21409010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21409011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21409012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21409013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21409014, 'pht': 3726}}" where mtr_portfolio_id = 21408973 and dashboard_run_id = 1678688 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`=21408973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475286, 0.07953245770948995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21408973_15-03-2025_05_36_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21409003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21409004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21409005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21409006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21409007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21409008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21409009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21409010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21409011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21409012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21409013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21409014, '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 = 21409757 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': 2671819, 'mtr_portfolio_id': 21409757, 'created_at': datetime.datetime(2025, 3, 15, 5, 36, 34), 'result': '0.07988278928695554', 'result_long': None, 'result_double': None}] Qualite : 0.07988278928695554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21409757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21409757_15-03-2025_05_36_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21409757 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_P21409757_15-03-2025_05_36_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21409770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21409771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21409772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21409773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21409774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21409775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21409776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21409777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21409778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21409779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21409780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21409781, 'pht': 3726}}" where mtr_portfolio_id = 21409757 and dashboard_run_id = 1678688 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`=21409757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475287, 0.07988278928695554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21409757_15-03-2025_05_36_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21409770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21409771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21409772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21409773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21409774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21409775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21409776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21409777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21409778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21409779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21409780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21409781, '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 = 21410163 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': 2671820, 'mtr_portfolio_id': 21410163, 'created_at': datetime.datetime(2025, 3, 15, 5, 37, 1), 'result': '0.06836549961956073', 'result_long': None, 'result_double': None}] Qualite : 0.06836549961956073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21410163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21410163_15-03-2025_05_37_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21410163 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_P21410163_15-03-2025_05_37_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21410188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21410189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21410190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21410191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21410192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21410193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21410194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21410195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21410196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21410197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21410198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21410199, 'pht': 3726}}" where mtr_portfolio_id = 21410163 and dashboard_run_id = 1678688 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`=21410163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475288, 0.06836549961956073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21410163_15-03-2025_05_37_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21410188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21410189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21410190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21410191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21410192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21410193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21410194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21410195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21410196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21410197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21410198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21410199, '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 = 21410769 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': 2671821, 'mtr_portfolio_id': 21410769, 'created_at': datetime.datetime(2025, 3, 15, 5, 37, 30), 'result': '0.07675172663857151', 'result_long': None, 'result_double': None}] Qualite : 0.07675172663857151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21410769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21410769_15-03-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21410769 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_P21410769_15-03-2025_05_37_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21410773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21410774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21410775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21410776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21410777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21410778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21410779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21410780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21410781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21410782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21410783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21410784, 'pht': 3726}}" where mtr_portfolio_id = 21410769 and dashboard_run_id = 1678688 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`=21410769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475289, 0.07675172663857151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21410769_15-03-2025_05_37_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21410773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21410774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21410775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21410776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21410777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21410778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21410779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21410780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21410781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21410782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21410783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21410784, '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 = 21411388 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': 2671822, 'mtr_portfolio_id': 21411388, 'created_at': datetime.datetime(2025, 3, 15, 5, 37, 58), 'result': '0.06820956824387671', 'result_long': None, 'result_double': None}] Qualite : 0.06820956824387671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21411388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21411388_15-03-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21411388 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_P21411388_15-03-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21411428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21411429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21411430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21411431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21411432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21411433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21411434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21411435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21411436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21411437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21411438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21411439, 'pht': 3726}}" where mtr_portfolio_id = 21411388 and dashboard_run_id = 1678688 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`=21411388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475290, 0.06820956824387671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21411388_15-03-2025_05_38_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21411428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21411429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21411430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21411431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21411432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21411433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21411434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21411435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21411436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21411437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21411438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21411439, '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 = 21412312 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': 2671823, 'mtr_portfolio_id': 21412312, 'created_at': datetime.datetime(2025, 3, 15, 5, 38, 32), 'result': '0.07924506072528016', 'result_long': None, 'result_double': None}] Qualite : 0.07924506072528016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21412312 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412312_14-03-2025_07_44_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21412312 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_P21412312_14-03-2025_07_44_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21412362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21412363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21412364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21412365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21412366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21412367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21412369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21412370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21412371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21412372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21412373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21412374, 'pht': 3726}}" where mtr_portfolio_id = 21412312 and dashboard_run_id = 1678688 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`=21412312 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475291, 0.07924506072528016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412312_14-03-2025_07_44_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21412362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21412363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21412364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21412365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21412366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21412367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21412369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21412370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21412371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21412372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21412373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21412374, '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 = 21412913 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': 2671824, 'mtr_portfolio_id': 21412913, 'created_at': datetime.datetime(2025, 3, 15, 5, 38, 30), 'result': '0.07033904925643508', 'result_long': None, 'result_double': None}] Qualite : 0.07033904925643508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21412913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412913_15-03-2025_05_38_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21412913 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_P21412913_15-03-2025_05_38_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21412938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21412939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21412940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21412941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21412942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21412943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21412944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21412945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21412946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21412947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21412948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21412949, 'pht': 3726}}" where mtr_portfolio_id = 21412913 and dashboard_run_id = 1678688 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`=21412913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475292, 0.07033904925643508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412913_15-03-2025_05_38_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21412938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21412939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21412940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21412941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21412942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21412943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21412944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21412945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21412946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21412947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21412948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21412949, '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 = 21413546 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': 2671825, 'mtr_portfolio_id': 21413546, 'created_at': datetime.datetime(2025, 3, 15, 5, 39, 1), 'result': '0.08274144967304538', 'result_long': None, 'result_double': None}] Qualite : 0.08274144967304538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21413546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21413546_15-03-2025_05_39_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21413546 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_P21413546_15-03-2025_05_39_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21413557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21413558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21413559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21413560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21413561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21413562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21413563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21413564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21413565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21413566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21413567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21413568, 'pht': 3726}}" where mtr_portfolio_id = 21413546 and dashboard_run_id = 1678688 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`=21413546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475293, 0.08274144967304538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21413546_15-03-2025_05_39_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21413557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21413558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21413559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21413560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21413561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21413562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21413563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21413564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21413565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21413566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21413567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21413568, '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 = 21414337 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': 2671826, 'mtr_portfolio_id': 21414337, 'created_at': datetime.datetime(2025, 3, 15, 5, 39, 30), 'result': '0.07339155885554594', 'result_long': None, 'result_double': None}] Qualite : 0.07339155885554594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21414337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21414337_15-03-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21414337 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_P21414337_15-03-2025_05_39_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21414363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21414364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21414365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21414366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21414367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21414368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21414369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21414370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21414371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21414372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21414373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21414374, 'pht': 3726}}" where mtr_portfolio_id = 21414337 and dashboard_run_id = 1678688 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`=21414337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475294, 0.07339155885554594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21414337_15-03-2025_05_39_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21414363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21414364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21414365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21414366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21414367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21414368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21414369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21414370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21414371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21414372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21414373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21414374, '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 = 21415228 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': 2671827, 'mtr_portfolio_id': 21415228, 'created_at': datetime.datetime(2025, 3, 15, 5, 39, 58), 'result': '0.0699604749360379', 'result_long': None, 'result_double': None}] Qualite : 0.0699604749360379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21415228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21415228_15-03-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21415228 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_P21415228_15-03-2025_05_40_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21415229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415240, 'pht': 3726}}" where mtr_portfolio_id = 21415228 and dashboard_run_id = 1678688 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`=21415228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475295, 0.0699604749360379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21415228_15-03-2025_05_40_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21415229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415240, '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 = 21415593 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': 2671828, 'mtr_portfolio_id': 21415593, 'created_at': datetime.datetime(2025, 3, 15, 5, 40, 32), 'result': '0.06840062133937358', 'result_long': None, 'result_double': None}] Qualite : 0.06840062133937358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21415593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21415593_15-03-2025_05_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21415593 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_P21415593_15-03-2025_05_40_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21415629, 'pht': 3726}}" where mtr_portfolio_id = 21415593 and dashboard_run_id = 1678688 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`=21415593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475296, 0.06840062133937358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21415593_15-03-2025_05_40_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21415618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21415619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21415620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21415621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21415622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21415623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21415624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21415625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21415626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21415627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21415628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21415629, '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 = 21417119 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': 2671829, 'mtr_portfolio_id': 21417119, 'created_at': datetime.datetime(2025, 3, 15, 5, 40, 43), 'result': '0.08363482505283094', 'result_long': None, 'result_double': None}] Qualite : 0.08363482505283094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_15-03-2025_05_40_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417119 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_P21417119_15-03-2025_05_40_48.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, 'pht': 3726}}" where mtr_portfolio_id = 21417119 and dashboard_run_id = 1678688 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`=21417119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475297, 0.08363482505283094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417119_15-03-2025_05_40_48.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417151, '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 = 21417582 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': 2671830, 'mtr_portfolio_id': 21417582, 'created_at': datetime.datetime(2025, 3, 15, 5, 40, 58), 'result': '0.06902162735238368', 'result_long': None, 'result_double': None}] Qualite : 0.06902162735238368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417582_15-03-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417582 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_P21417582_15-03-2025_05_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417621, 'pht': 3726}}" where mtr_portfolio_id = 21417582 and dashboard_run_id = 1678688 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`=21417582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475298, 0.06902162735238368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417582_15-03-2025_05_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21417610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21417611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21417612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21417613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21417614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21417615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21417616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21417617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21417618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21417619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21417620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21417621, '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 = 21417994 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': 2671831, 'mtr_portfolio_id': 21417994, 'created_at': datetime.datetime(2025, 3, 15, 5, 41, 30), 'result': '0.08986188197019615', 'result_long': None, 'result_double': None}] Qualite : 0.08986188197019615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21417994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417994_15-03-2025_05_41_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21417994 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_P21417994_15-03-2025_05_41_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418050, 'pht': 3726}}" where mtr_portfolio_id = 21417994 and dashboard_run_id = 1678688 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`=21417994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475299, 0.08986188197019615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21417994_15-03-2025_05_41_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418050, '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 = 21418677 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': 2671832, 'mtr_portfolio_id': 21418677, 'created_at': datetime.datetime(2025, 3, 15, 5, 42), 'result': '0.07300192785938414', 'result_long': None, 'result_double': None}] Qualite : 0.07300192785938414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21418677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21418677_15-03-2025_05_42_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21418677 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_P21418677_15-03-2025_05_42_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418769, 'pht': 3726}}" where mtr_portfolio_id = 21418677 and dashboard_run_id = 1678688 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`=21418677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475300, 0.07300192785938414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21418677_15-03-2025_05_42_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21418758, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21418759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21418760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21418761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21418762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21418763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21418764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21418765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21418766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21418767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21418768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21418769, '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 = 21419246 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': 2671833, 'mtr_portfolio_id': 21419246, 'created_at': datetime.datetime(2025, 3, 15, 5, 42, 33), 'result': '0.07113102827465925', 'result_long': None, 'result_double': None}] Qualite : 0.07113102827465925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21419246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21419246_15-03-2025_05_42_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21419246 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_P21419246_15-03-2025_05_42_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21419349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21419350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21419351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21419352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21419353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21419354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21419355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21419356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21419357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21419358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21419359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21419360, 'pht': 3726}}" where mtr_portfolio_id = 21419246 and dashboard_run_id = 1678688 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`=21419246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475301, 0.07113102827465925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21419246_15-03-2025_05_42_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21419349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21419350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21419351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21419352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21419353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21419354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21419355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21419356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21419357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21419358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21419359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21419360, '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 = 21419925 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': 2671834, 'mtr_portfolio_id': 21419925, 'created_at': datetime.datetime(2025, 3, 15, 5, 42, 29), 'result': '0.0758834085005206', 'result_long': None, 'result_double': None}] Qualite : 0.0758834085005206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21419925 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21419925_15-03-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21419925 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_P21419925_15-03-2025_05_42_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21419975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21419976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21419977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21419978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21419979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21419980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21419981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21419982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21419983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21419984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21419985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21419986, 'pht': 3726}}" where mtr_portfolio_id = 21419925 and dashboard_run_id = 1678688 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`=21419925 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475302, 0.0758834085005206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21419925_15-03-2025_05_42_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21419975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21419976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21419977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21419978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21419979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21419980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21419981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21419982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21419983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21419984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21419985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21419986, '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 = 21420543 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': 2671835, 'mtr_portfolio_id': 21420543, 'created_at': datetime.datetime(2025, 3, 15, 5, 43), 'result': '0.06270132095202144', 'result_long': None, 'result_double': None}] Qualite : 0.06270132095202144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21420543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21420543_15-03-2025_05_43_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21420543 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_P21420543_15-03-2025_05_43_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21420568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21420569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21420570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21420571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21420572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21420573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21420574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21420575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21420576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21420577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21420578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21420579, 'pht': 3726}}" where mtr_portfolio_id = 21420543 and dashboard_run_id = 1678688 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`=21420543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475303, 0.06270132095202144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21420543_15-03-2025_05_43_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21420568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21420569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21420570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21420571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21420572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21420573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21420574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21420575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21420576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21420577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21420578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21420579, '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 = 21421291 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': 2671836, 'mtr_portfolio_id': 21421291, 'created_at': datetime.datetime(2025, 3, 15, 5, 43, 28), 'result': '0.06674306446099842', 'result_long': None, 'result_double': None}] Qualite : 0.06674306446099842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21421291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21421291_15-03-2025_05_43_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21421291 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_P21421291_15-03-2025_05_43_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21421295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21421296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21421297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21421298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21421299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21421300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21421301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21421302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21421303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21421304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21421305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21421306, 'pht': 3726}}" where mtr_portfolio_id = 21421291 and dashboard_run_id = 1678688 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`=21421291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475304, 0.06674306446099842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21421291_15-03-2025_05_43_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21421295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21421296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21421297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21421298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21421299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21421300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21421301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21421302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21421303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21421304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21421305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21421306, '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 = 21422015 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': 2671837, 'mtr_portfolio_id': 21422015, 'created_at': datetime.datetime(2025, 3, 15, 5, 44, 2), 'result': '0.07528935587725517', 'result_long': None, 'result_double': None}] Qualite : 0.07528935587725517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21422015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21422015_15-03-2025_05_44_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21422015 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_P21422015_15-03-2025_05_44_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21422016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21422017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21422018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21422019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21422020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21422021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21422022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21422023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21422024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21422025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21422026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21422027, 'pht': 3726}}" where mtr_portfolio_id = 21422015 and dashboard_run_id = 1678688 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`=21422015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475305, 0.07528935587725517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21422015_15-03-2025_05_44_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21422016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21422017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21422018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21422019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21422020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21422021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21422022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21422023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21422024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21422025, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21422026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21422027, '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 = 21422620 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': 2671838, 'mtr_portfolio_id': 21422620, 'created_at': datetime.datetime(2025, 3, 15, 5, 44, 28), 'result': '0.07699549930613418', 'result_long': None, 'result_double': None}] Qualite : 0.07699549930613418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21422620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21422620_15-03-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21422620 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_P21422620_15-03-2025_05_44_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21422622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21422623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21422624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21422625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21422626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21422627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21422628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21422629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21422630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21422631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21422632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21422633, 'pht': 3726}}" where mtr_portfolio_id = 21422620 and dashboard_run_id = 1678688 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`=21422620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475306, 0.07699549930613418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21422620_15-03-2025_05_44_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21422622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21422623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21422624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21422625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21422626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21422627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21422628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21422629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21422630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21422631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21422632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21422633, '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 = 21423525 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': 2671839, 'mtr_portfolio_id': 21423525, 'created_at': datetime.datetime(2025, 3, 15, 5, 44, 59), 'result': '0.06078527370686028', 'result_long': None, 'result_double': None}] Qualite : 0.06078527370686028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21423525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21423525_15-03-2025_05_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21423525 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_P21423525_15-03-2025_05_45_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21423532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21423533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21423534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21423535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21423536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21423537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21423538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21423539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21423540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21423541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21423542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21423543, 'pht': 3726}}" where mtr_portfolio_id = 21423525 and dashboard_run_id = 1678688 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`=21423525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475307, 0.06078527370686028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21423525_15-03-2025_05_45_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21423532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21423533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21423534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21423535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21423536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21423537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21423538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21423539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21423540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21423541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21423542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21423543, '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 = 21424132 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': 2671840, 'mtr_portfolio_id': 21424132, 'created_at': datetime.datetime(2025, 3, 15, 5, 45, 30), 'result': '0.048206767485037084', 'result_long': None, 'result_double': None}] Qualite : 0.048206767485037084 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21424132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21424132_15-03-2025_05_45_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21424132 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_P21424132_15-03-2025_05_45_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21424136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21424137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21424138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21424139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21424140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21424141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21424142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21424143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21424144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21424145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21424146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21424147, 'pht': 3726}}" where mtr_portfolio_id = 21424132 and dashboard_run_id = 1678688 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`=21424132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475308, 0.048206767485037084, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21424132_15-03-2025_05_45_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21424136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21424137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21424138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21424139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21424140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21424141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21424142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21424143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21424144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21424145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21424146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21424147, '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 = 21424672 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': 2671841, 'mtr_portfolio_id': 21424672, 'created_at': datetime.datetime(2025, 3, 15, 5, 45, 38), 'result': '0.07106448404282488', 'result_long': None, 'result_double': None}] Qualite : 0.07106448404282488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21424672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21424672_15-03-2025_05_45_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21424672 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_P21424672_15-03-2025_05_45_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21424673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21424674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21424675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21424676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21424677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21424678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21424679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21424680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21424681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21424682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21424683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21424684, 'pht': 3726}}" where mtr_portfolio_id = 21424672 and dashboard_run_id = 1678688 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`=21424672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475309, 0.07106448404282488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21424672_15-03-2025_05_45_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21424673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21424674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21424675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21424676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21424677, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21424678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21424679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21424680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21424681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21424682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21424683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21424684, '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 = 21426032 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': 2671842, 'mtr_portfolio_id': 21426032, 'created_at': datetime.datetime(2025, 3, 15, 5, 45, 59), 'result': '0.07698561825323905', 'result_long': None, 'result_double': None}] Qualite : 0.07698561825323905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21426032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21426032_15-03-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21426032 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_P21426032_15-03-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21426036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21426037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21426038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21426039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21426040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21426041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21426042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21426043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21426044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21426045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21426046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21426047, 'pht': 3726}}" where mtr_portfolio_id = 21426032 and dashboard_run_id = 1678688 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`=21426032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475310, 0.07698561825323905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21426032_15-03-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21426036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21426037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21426038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21426039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21426040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21426041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21426042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21426043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21426044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21426045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21426046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21426047, '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 = 21426451 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': 2671843, 'mtr_portfolio_id': 21426451, 'created_at': datetime.datetime(2025, 3, 15, 5, 46, 31), 'result': '0.056634560668332536', 'result_long': None, 'result_double': None}] Qualite : 0.056634560668332536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21426451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21426451_15-03-2025_05_46_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21426451 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_P21426451_15-03-2025_05_46_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21426455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21426456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21426457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21426458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21426459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21426460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21426461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21426462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21426463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21426464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21426465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21426466, 'pht': 3726}}" where mtr_portfolio_id = 21426451 and dashboard_run_id = 1678688 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`=21426451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475311, 0.056634560668332536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21426451_15-03-2025_05_46_37.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21426455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21426456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21426457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21426458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21426459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21426460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21426461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21426462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21426463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21426464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21426465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21426466, '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 = 21427188 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': 2671844, 'mtr_portfolio_id': 21427188, 'created_at': datetime.datetime(2025, 3, 15, 5, 46, 33), 'result': '0.0625368467865176', 'result_long': None, 'result_double': None}] Qualite : 0.0625368467865176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21427188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21427188_15-03-2025_05_46_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21427188 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_P21427188_15-03-2025_05_46_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21427190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21427191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21427192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21427193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21427194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21427195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21427196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21427197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21427198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21427199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21427200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21427201, 'pht': 3726}}" where mtr_portfolio_id = 21427188 and dashboard_run_id = 1678688 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`=21427188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475312, 0.0625368467865176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21427188_15-03-2025_05_46_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21427190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21427191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21427192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21427193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21427194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21427195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21427196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21427197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21427198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21427199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21427200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21427201, '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 = 21427593 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': 2671845, 'mtr_portfolio_id': 21427593, 'created_at': datetime.datetime(2025, 3, 15, 5, 46, 29), 'result': '0.0555511306533987', 'result_long': None, 'result_double': None}] Qualite : 0.0555511306533987 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21427593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21427593_15-03-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21427593 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_P21427593_15-03-2025_05_46_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21427594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21427595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21427596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21427597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21427599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21427600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21427601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21427602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21427603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21427604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21427605, 'pht': 3726}}" where mtr_portfolio_id = 21427593 and dashboard_run_id = 1678688 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`=21427593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475313, 0.0555511306533987, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21427593_15-03-2025_05_46_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21427594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21427595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21427596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21427597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21427599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21427600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21427601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21427602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21427603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21427604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21427605, '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 = 21428187 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': 2671846, 'mtr_portfolio_id': 21428187, 'created_at': datetime.datetime(2025, 3, 15, 5, 47), 'result': '0.06315725101337888', 'result_long': None, 'result_double': None}] Qualite : 0.06315725101337888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21428187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21428187_15-03-2025_05_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21428187 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_P21428187_15-03-2025_05_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21428251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21428252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21428253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21428254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21428255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21428256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21428257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21428258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21428259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21428260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21428261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21428262, 'pht': 3726}}" where mtr_portfolio_id = 21428187 and dashboard_run_id = 1678688 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`=21428187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475314, 0.06315725101337888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21428187_15-03-2025_05_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21428251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21428252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21428253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21428254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21428255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21428256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21428257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21428258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21428259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21428260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21428261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21428262, '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 = 21429235 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': 2671847, 'mtr_portfolio_id': 21429235, 'created_at': datetime.datetime(2025, 3, 15, 5, 47, 29), 'result': '0.05319540196420804', 'result_long': None, 'result_double': None}] Qualite : 0.05319540196420804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21429235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21429235_15-03-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21429235 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_P21429235_15-03-2025_05_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21429241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429249, 'pht': 3726}}" where mtr_portfolio_id = 21429235 and dashboard_run_id = 1678688 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`=21429235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475315, 0.05319540196420804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21429235_15-03-2025_05_47_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21429241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429249, '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 = 21429848 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': 2671848, 'mtr_portfolio_id': 21429848, 'created_at': datetime.datetime(2025, 3, 15, 5, 47, 59), 'result': '0.05747460928843177', 'result_long': None, 'result_double': None}] Qualite : 0.05747460928843177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21429848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21429848_15-03-2025_05_48_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21429848 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_P21429848_15-03-2025_05_48_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21429905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429920, 'pht': 3726}}" where mtr_portfolio_id = 21429848 and dashboard_run_id = 1678688 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`=21429848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475316, 0.05747460928843177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21429848_15-03-2025_05_48_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21429905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21429907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21429908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21429909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21429911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21429912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21429913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21429915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21429916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21429917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21429919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21429920, '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 = 21430871 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': 2671849, 'mtr_portfolio_id': 21430871, 'created_at': datetime.datetime(2025, 3, 15, 5, 48, 29), 'result': '0.06969422909060376', 'result_long': None, 'result_double': None}] Qualite : 0.06969422909060376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21430871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21430871_15-03-2025_05_48_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21430871 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_P21430871_15-03-2025_05_48_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21430896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21430897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21430898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21430899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21430900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21430901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21430902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21430903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21430904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21430905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21430906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21430907, 'pht': 3726}}" where mtr_portfolio_id = 21430871 and dashboard_run_id = 1678688 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`=21430871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475317, 0.06969422909060376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21430871_15-03-2025_05_48_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21430896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21430897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21430898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21430899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21430900, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21430901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21430902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21430903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21430904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21430905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21430906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21430907, '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 = 21431516 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': 2671850, 'mtr_portfolio_id': 21431516, 'created_at': datetime.datetime(2025, 3, 15, 5, 48, 31), 'result': '0.0598766922074388', 'result_long': None, 'result_double': None}] Qualite : 0.0598766922074388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21431516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21431516_15-03-2025_05_48_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21431516 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_P21431516_15-03-2025_05_48_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, 'pht': 3726}}" where mtr_portfolio_id = 21431516 and dashboard_run_id = 1678688 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`=21431516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475318, 0.0598766922074388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21431516_15-03-2025_05_48_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21431529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21431530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21431531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21431532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21431533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21431534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21431535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21431536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21431537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21431538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21431539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21431540, '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 = 21432602 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': 2671851, 'mtr_portfolio_id': 21432602, 'created_at': datetime.datetime(2025, 3, 15, 5, 48, 59), 'result': '0.06756047813748725', 'result_long': None, 'result_double': None}] Qualite : 0.06756047813748725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21432602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_15-03-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21432602 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_P21432602_15-03-2025_05_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, 'pht': 3726}}" where mtr_portfolio_id = 21432602 and dashboard_run_id = 1678688 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`=21432602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475319, 0.06756047813748725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21432602_15-03-2025_05_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21432700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21432701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21432702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21432703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21432704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21432705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21432706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21432707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21432708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21432709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21432710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21432711, '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 = 21433508 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': 2671852, 'mtr_portfolio_id': 21433508, 'created_at': datetime.datetime(2025, 3, 15, 5, 49, 29), 'result': '0.07147724910420605', 'result_long': None, 'result_double': None}] Qualite : 0.07147724910420605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21433508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21433508_15-03-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21433508 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_P21433508_15-03-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21433509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21433510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21433511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21433512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21433513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21433514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21433515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21433516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21433517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21433518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21433519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21433520, 'pht': 3726}}" where mtr_portfolio_id = 21433508 and dashboard_run_id = 1678688 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`=21433508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475320, 0.07147724910420605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21433508_15-03-2025_05_49_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21433509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21433510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21433511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21433512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21433513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21433514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21433515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21433516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21433517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21433518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21433519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21433520, '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 = 21434857 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': 2671853, 'mtr_portfolio_id': 21434857, 'created_at': datetime.datetime(2025, 3, 15, 5, 50, 5), 'result': '0.07198486453198591', 'result_long': None, 'result_double': None}] Qualite : 0.07198486453198591 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21434857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21434857_15-03-2025_05_50_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21434857 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_P21434857_15-03-2025_05_50_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21434916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21434917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21434918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21434919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21434920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21434921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21434922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21434923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21434924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21434925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21434926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21434927, 'pht': 3726}}" where mtr_portfolio_id = 21434857 and dashboard_run_id = 1678688 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`=21434857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475321, 0.07198486453198591, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21434857_15-03-2025_05_50_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21434916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21434917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21434918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21434919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21434920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21434921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21434922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21434923, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21434924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21434925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21434926, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21434927, '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 = 21435460 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': 2671854, 'mtr_portfolio_id': 21435460, 'created_at': datetime.datetime(2025, 3, 15, 5, 50, 38), 'result': '0.05639435738797907', 'result_long': None, 'result_double': None}] Qualite : 0.05639435738797907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21435460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21435460_15-03-2025_05_50_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21435460 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_P21435460_15-03-2025_05_50_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21435547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21435548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21435549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21435550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21435551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21435552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21435553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21435554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21435555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21435556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21435557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21435558, 'pht': 3726}}" where mtr_portfolio_id = 21435460 and dashboard_run_id = 1678688 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`=21435460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475322, 0.05639435738797907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21435460_15-03-2025_05_50_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21435547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21435548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21435549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21435550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21435551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21435552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21435553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21435554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21435555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21435556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21435557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21435558, '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 = 21436426 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': 2671855, 'mtr_portfolio_id': 21436426, 'created_at': datetime.datetime(2025, 3, 15, 5, 50, 37), 'result': '0.062180044629355925', 'result_long': None, 'result_double': None}] Qualite : 0.062180044629355925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21436426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21436426_15-03-2025_05_50_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21436426 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_P21436426_15-03-2025_05_50_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21436441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21436442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21436443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21436444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21436445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21436446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21436447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21436448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21436449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21436450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21436451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21436452, 'pht': 3726}}" where mtr_portfolio_id = 21436426 and dashboard_run_id = 1678688 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`=21436426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475323, 0.062180044629355925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21436426_15-03-2025_05_50_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21436441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21436442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21436443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21436444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21436445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21436446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21436447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21436448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21436449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21436450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21436451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21436452, '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 = 21437446 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': 2671856, 'mtr_portfolio_id': 21437446, 'created_at': datetime.datetime(2025, 3, 15, 5, 50, 53), 'result': '0.06663428696062226', 'result_long': None, 'result_double': None}] Qualite : 0.06663428696062226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21437446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21437446_15-03-2025_05_50_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21437446 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_P21437446_15-03-2025_05_50_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21437465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21437466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21437467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21437468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21437469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21437470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21437471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21437472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21437473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21437474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21437475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21437476, 'pht': 3726}}" where mtr_portfolio_id = 21437446 and dashboard_run_id = 1678688 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`=21437446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475324, 0.06663428696062226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21437446_15-03-2025_05_50_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21437465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21437466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21437467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21437468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21437469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21437470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21437471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21437472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21437473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21437474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21437475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21437476, '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 = 21438173 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': 2671857, 'mtr_portfolio_id': 21438173, 'created_at': datetime.datetime(2025, 3, 15, 5, 50, 59), 'result': '0.05994031979622119', 'result_long': None, 'result_double': None}] Qualite : 0.05994031979622119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21438173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438173_15-03-2025_05_51_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21438173 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_P21438173_15-03-2025_05_51_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438262, 'pht': 3726}}" where mtr_portfolio_id = 21438173 and dashboard_run_id = 1678688 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`=21438173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475325, 0.05994031979622119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438173_15-03-2025_05_51_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438262, '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 = 21438916 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': 2671858, 'mtr_portfolio_id': 21438916, 'created_at': datetime.datetime(2025, 3, 15, 5, 51, 30), 'result': '0.05693728431451922', 'result_long': None, 'result_double': None}] Qualite : 0.05693728431451922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21438916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438916_15-03-2025_05_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21438916 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_P21438916_15-03-2025_05_51_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438952, 'pht': 3726}}" where mtr_portfolio_id = 21438916 and dashboard_run_id = 1678688 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`=21438916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475326, 0.05693728431451922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438916_15-03-2025_05_51_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438952, '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 = 21439897 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': 2671859, 'mtr_portfolio_id': 21439897, 'created_at': datetime.datetime(2025, 3, 15, 5, 52, 1), 'result': '0.05235132694937651', 'result_long': None, 'result_double': None}] Qualite : 0.05235132694937651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21439897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21439897_15-03-2025_05_52_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21439897 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_P21439897_15-03-2025_05_52_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21439898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21439899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21439900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21439901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21439902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21439903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21439904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21439905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21439906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21439907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21439908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21439909, 'pht': 3726}}" where mtr_portfolio_id = 21439897 and dashboard_run_id = 1678688 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`=21439897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475327, 0.05235132694937651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21439897_15-03-2025_05_52_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21439898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21439899, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21439900, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21439901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21439902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21439903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21439904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21439905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21439906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21439907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21439908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21439909, '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 = 21441656 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': 2671860, 'mtr_portfolio_id': 21441656, 'created_at': datetime.datetime(2025, 3, 15, 5, 52, 32), 'result': '0.05635825645553743', 'result_long': None, 'result_double': None}] Qualite : 0.05635825645553743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21441656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21441656_15-03-2025_05_52_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21441656 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_P21441656_15-03-2025_05_52_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21441699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21441700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21441701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21441702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21441703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21441704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21441705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21441706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21441707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21441708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21441709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21441710, 'pht': 3726}}" where mtr_portfolio_id = 21441656 and dashboard_run_id = 1678688 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`=21441656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475328, 0.05635825645553743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21441656_15-03-2025_05_52_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21441699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21441700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21441701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21441702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21441703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21441704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21441705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21441706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21441707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21441708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21441709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21441710, '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 = 21442634 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': 2671861, 'mtr_portfolio_id': 21442634, 'created_at': datetime.datetime(2025, 3, 15, 5, 52, 59), 'result': '0.06816069764115408', 'result_long': None, 'result_double': None}] Qualite : 0.06816069764115408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21442634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21442634_15-03-2025_05_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21442634 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_P21442634_15-03-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21442654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21442655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21442656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21442657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21442658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21442659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21442660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21442661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21442662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21442663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21442664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21442665, 'pht': 3726}}" where mtr_portfolio_id = 21442634 and dashboard_run_id = 1678688 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`=21442634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475329, 0.06816069764115408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21442634_15-03-2025_05_53_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21442654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21442655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21442656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21442657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21442658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21442659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21442660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21442661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21442662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21442663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21442664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21442665, '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 = 21443447 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': 2671862, 'mtr_portfolio_id': 21443447, 'created_at': datetime.datetime(2025, 3, 15, 5, 53, 31), 'result': '0.049307481661766565', 'result_long': None, 'result_double': None}] Qualite : 0.049307481661766565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21443447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21443447_15-03-2025_05_53_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21443447 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_P21443447_15-03-2025_05_53_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21443466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21443467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21443468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21443469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21443470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21443471, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21443472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21443473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21443474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21443475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21443476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21443477, 'pht': 3726}}" where mtr_portfolio_id = 21443447 and dashboard_run_id = 1678688 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`=21443447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475330, 0.049307481661766565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21443447_15-03-2025_05_53_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21443466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21443467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21443468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21443469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21443470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21443471, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21443472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21443473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21443474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21443475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21443476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21443477, '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 = 21444057 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': 2671863, 'mtr_portfolio_id': 21444057, 'created_at': datetime.datetime(2025, 3, 15, 5, 53, 59), 'result': '0.04084864670509629', 'result_long': None, 'result_double': None}] Qualite : 0.04084864670509629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21444057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21444057_15-03-2025_05_54_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21444057 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_P21444057_15-03-2025_05_54_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21444141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21444142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21444143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21444144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21444145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21444146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21444147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21444148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21444149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21444150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21444151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21444152, 'pht': 3726}}" where mtr_portfolio_id = 21444057 and dashboard_run_id = 1678688 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`=21444057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475331, 0.04084864670509629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21444057_15-03-2025_05_54_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21444141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21444142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21444143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21444144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21444145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21444146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21444147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21444148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21444149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21444150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21444151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21444152, '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 = 21444770 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': 2671864, 'mtr_portfolio_id': 21444770, 'created_at': datetime.datetime(2025, 3, 15, 5, 54, 28), 'result': '0.055694292176820565', 'result_long': None, 'result_double': None}] Qualite : 0.055694292176820565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21444770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21444770_15-03-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21444770 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_P21444770_15-03-2025_05_54_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21444855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21444856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21444857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21444858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21444859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21444860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21444861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21444862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21444863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21444864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21444865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21444866, 'pht': 3726}}" where mtr_portfolio_id = 21444770 and dashboard_run_id = 1678688 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`=21444770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475332, 0.055694292176820565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21444770_15-03-2025_05_54_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21444855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21444856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21444857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21444858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21444859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21444860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21444861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21444862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21444863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21444864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21444865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21444866, '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 = 21446087 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': 2671865, 'mtr_portfolio_id': 21446087, 'created_at': datetime.datetime(2025, 3, 15, 5, 54, 31), 'result': '0.06950172281143925', 'result_long': None, 'result_double': None}] Qualite : 0.06950172281143925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21446087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21446087_15-03-2025_05_54_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21446087 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_P21446087_15-03-2025_05_54_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21446092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21446093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21446094, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21446095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21446096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21446097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21446098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21446099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21446100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21446101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21446102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21446103, 'pht': 3726}}" where mtr_portfolio_id = 21446087 and dashboard_run_id = 1678688 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`=21446087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475333, 0.06950172281143925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21446087_15-03-2025_05_54_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21446092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21446093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21446094, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21446095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21446096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21446097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21446098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21446099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21446100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21446101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21446102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21446103, '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 = 21446965 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': 2671866, 'mtr_portfolio_id': 21446965, 'created_at': datetime.datetime(2025, 3, 15, 5, 55), 'result': '0.06622213908956165', 'result_long': None, 'result_double': None}] Qualite : 0.06622213908956165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21446965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21446965_15-03-2025_05_55_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21446965 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_P21446965_15-03-2025_05_55_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21446968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21446969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21446970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21446971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21446972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21446973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21446974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21446975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21446976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21446977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21446978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21446979, 'pht': 3726}}" where mtr_portfolio_id = 21446965 and dashboard_run_id = 1678688 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`=21446965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475334, 0.06622213908956165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21446965_15-03-2025_05_55_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21446968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21446969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21446970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21446971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21446972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21446973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21446974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21446975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21446976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21446977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21446978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21446979, '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 = 21447649 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': 2671867, 'mtr_portfolio_id': 21447649, 'created_at': datetime.datetime(2025, 3, 15, 5, 55, 30), 'result': '0.04428502691515276', 'result_long': None, 'result_double': None}] Qualite : 0.04428502691515276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21447649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21447649_15-03-2025_05_55_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21447649 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_P21447649_15-03-2025_05_55_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21447650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21447651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21447652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21447653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21447654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21447655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21447656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21447657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21447658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21447659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21447660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21447661, 'pht': 3726}}" where mtr_portfolio_id = 21447649 and dashboard_run_id = 1678688 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`=21447649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475335, 0.04428502691515276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21447649_15-03-2025_05_55_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21447650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21447651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21447652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21447653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21447654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21447655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21447656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21447657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21447658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21447659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21447660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21447661, '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 = 21448345 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': 2671868, 'mtr_portfolio_id': 21448345, 'created_at': datetime.datetime(2025, 3, 15, 5, 55, 42), 'result': '0.058390599000332236', 'result_long': None, 'result_double': None}] Qualite : 0.058390599000332236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21448345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21448345_15-03-2025_05_55_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21448345 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_P21448345_15-03-2025_05_55_45.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21448364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21448365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21448366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21448367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21448368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21448369, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21448370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21448371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21448372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21448373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21448374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21448375, 'pht': 3726}}" where mtr_portfolio_id = 21448345 and dashboard_run_id = 1678688 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`=21448345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475336, 0.058390599000332236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21448345_15-03-2025_05_55_45.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21448364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21448365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21448366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21448367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21448368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21448369, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21448370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21448371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21448372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21448373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21448374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21448375, '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 = 21449303 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': 2671869, 'mtr_portfolio_id': 21449303, 'created_at': datetime.datetime(2025, 3, 15, 5, 56, 5), 'result': '0.04436638863919435', 'result_long': None, 'result_double': None}] Qualite : 0.04436638863919435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21449303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21449303_15-03-2025_05_56_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21449303 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_P21449303_15-03-2025_05_56_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21449328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21449329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21449330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21449331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21449332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21449333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21449334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21449335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21449336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21449337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21449338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21449339, 'pht': 3726}}" where mtr_portfolio_id = 21449303 and dashboard_run_id = 1678688 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`=21449303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475337, 0.04436638863919435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21449303_15-03-2025_05_56_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21449328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21449329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21449330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21449331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21449332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21449333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21449334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21449335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21449336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21449337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21449338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21449339, '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 = 21450201 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': 2671870, 'mtr_portfolio_id': 21450201, 'created_at': datetime.datetime(2025, 3, 15, 5, 56, 30), 'result': '0.043415156379729904', 'result_long': None, 'result_double': None}] Qualite : 0.043415156379729904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21450201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21450201_15-03-2025_05_56_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21450201 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_P21450201_15-03-2025_05_56_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21450204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21450205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21450206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21450207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21450208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21450209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21450210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21450211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21450212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21450213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21450214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21450215, 'pht': 3726}}" where mtr_portfolio_id = 21450201 and dashboard_run_id = 1678688 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`=21450201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475338, 0.043415156379729904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21450201_15-03-2025_05_56_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21450204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21450205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21450206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21450207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21450208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21450209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21450210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21450211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21450212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21450213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21450214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21450215, '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 = 21451547 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': 2671871, 'mtr_portfolio_id': 21451547, 'created_at': datetime.datetime(2025, 3, 15, 5, 57, 1), 'result': '0.059733004848924', 'result_long': None, 'result_double': None}] Qualite : 0.059733004848924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21451547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21451547_15-03-2025_05_57_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21451547 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_P21451547_15-03-2025_05_57_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21451549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21451550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21451551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21451552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21451553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21451554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21451555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21451556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21451557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21451558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21451559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21451560, 'pht': 3726}}" where mtr_portfolio_id = 21451547 and dashboard_run_id = 1678688 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`=21451547 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475339, 0.059733004848924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21451547_15-03-2025_05_57_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21451549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21451550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21451551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21451552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21451553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21451554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21451555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21451556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21451557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21451558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21451559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21451560, '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 = 21452180 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': 2671872, 'mtr_portfolio_id': 21452180, 'created_at': datetime.datetime(2025, 3, 15, 5, 57, 35), 'result': '0.05854471986498778', 'result_long': None, 'result_double': None}] Qualite : 0.05854471986498778 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21452180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21452180_15-03-2025_05_57_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21452180 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_P21452180_15-03-2025_05_57_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21452207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21452208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21452209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21452210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21452211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21452212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21452213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21452214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21452215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21452216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21452217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21452218, 'pht': 3726}}" where mtr_portfolio_id = 21452180 and dashboard_run_id = 1678688 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`=21452180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475340, 0.05854471986498778, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21452180_15-03-2025_05_57_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21452207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21452208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21452209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21452210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21452211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21452212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21452213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21452214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21452215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21452216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21452217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21452218, '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 = 21452897 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': 2671873, 'mtr_portfolio_id': 21452897, 'created_at': datetime.datetime(2025, 3, 15, 5, 57, 59), 'result': '0.04917859006397912', 'result_long': None, 'result_double': None}] Qualite : 0.04917859006397912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21452897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21452897_15-03-2025_05_58_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21452897 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_P21452897_15-03-2025_05_58_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21452935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21452936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21452937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21452938, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21452939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21452940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21452941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21452942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21452943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21452944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21452945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21452946, 'pht': 3726}}" where mtr_portfolio_id = 21452897 and dashboard_run_id = 1678688 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`=21452897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475341, 0.04917859006397912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21452897_15-03-2025_05_58_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21452935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21452936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21452937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21452938, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21452939, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21452940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21452941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21452942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21452943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21452944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21452945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21452946, '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 = 21453624 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': 2671874, 'mtr_portfolio_id': 21453624, 'created_at': datetime.datetime(2025, 3, 15, 5, 58, 30), 'result': '0.059571651624377525', 'result_long': None, 'result_double': None}] Qualite : 0.059571651624377525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21453624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21453624_15-03-2025_05_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21453624 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_P21453624_15-03-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21453649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21453650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21453651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21453652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21453653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21453654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21453655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21453656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21453657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21453658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21453659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21453660, 'pht': 3726}}" where mtr_portfolio_id = 21453624 and dashboard_run_id = 1678688 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`=21453624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475342, 0.059571651624377525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21453624_15-03-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21453649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21453650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21453651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21453652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21453653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21453654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21453655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21453656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21453657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21453658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21453659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21453660, '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 = 21454401 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': 2671875, 'mtr_portfolio_id': 21454401, 'created_at': datetime.datetime(2025, 3, 15, 5, 58, 34), 'result': '0.05961122688316364', 'result_long': None, 'result_double': None}] Qualite : 0.05961122688316364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21454401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21454401_15-03-2025_05_58_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21454401 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_P21454401_15-03-2025_05_58_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21454414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21454415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21454416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21454417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21454418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21454419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21454420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21454421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21454422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21454423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21454424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21454425, 'pht': 3726}}" where mtr_portfolio_id = 21454401 and dashboard_run_id = 1678688 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`=21454401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475343, 0.05961122688316364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21454401_15-03-2025_05_58_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21454414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21454415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21454416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21454417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21454418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21454419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21454420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21454421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21454422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21454423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21454424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21454425, '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 = 21455399 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': 2671876, 'mtr_portfolio_id': 21455399, 'created_at': datetime.datetime(2025, 3, 15, 5, 58, 59), 'result': '0.07356360873974212', 'result_long': None, 'result_double': None}] Qualite : 0.07356360873974212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21455399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21455399_15-03-2025_05_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21455399 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_P21455399_15-03-2025_05_59_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21455475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21455478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21455480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21455482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21455484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21455487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21455489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21455491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21455493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21455496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21455497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21455498, 'pht': 3726}}" where mtr_portfolio_id = 21455399 and dashboard_run_id = 1678688 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`=21455399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475344, 0.07356360873974212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21455399_15-03-2025_05_59_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21455475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21455478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21455480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21455482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21455484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21455487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21455489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21455491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21455493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21455496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21455497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21455498, '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 = 21455956 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': 2671877, 'mtr_portfolio_id': 21455956, 'created_at': datetime.datetime(2025, 3, 15, 5, 59, 30), 'result': '0.05089834183015885', 'result_long': None, 'result_double': None}] Qualite : 0.05089834183015885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21455956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21455956_15-03-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21455956 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_P21455956_15-03-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21455958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21455959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21455960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21455961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21455962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21455963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21455964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21455965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21455966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21455967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21455968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21455969, 'pht': 3726}}" where mtr_portfolio_id = 21455956 and dashboard_run_id = 1678688 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`=21455956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475345, 0.05089834183015885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21455956_15-03-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21455958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21455959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21455960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21455961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21455962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21455963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21455964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21455965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21455966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21455967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21455968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21455969, '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 = 21456425 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': 2671878, 'mtr_portfolio_id': 21456425, 'created_at': datetime.datetime(2025, 3, 15, 6, 0, 1), 'result': '0.09913482907467518', 'result_long': None, 'result_double': None}] Qualite : 0.09913482907467518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21456425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21456425_15-03-2025_06_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21456425 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_P21456425_15-03-2025_06_00_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21456426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21456427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21456428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21456429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21456430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21456431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21456432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21456433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21456434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21456435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21456436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21456437, 'pht': 3726}}" where mtr_portfolio_id = 21456425 and dashboard_run_id = 1678688 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`=21456425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475346, 0.09913482907467518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21456425_15-03-2025_06_00_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21456426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21456427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21456428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21456429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21456430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21456431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21456432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21456433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21456434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21456435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21456436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21456437, '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 = 21457085 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': 2671879, 'mtr_portfolio_id': 21457085, 'created_at': datetime.datetime(2025, 3, 15, 6, 0, 32), 'result': '0.03035622990416602', 'result_long': None, 'result_double': None}] Qualite : 0.03035622990416602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21457085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21457085_15-03-2025_06_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21457085 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_P21457085_15-03-2025_06_00_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21457087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21457088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21457089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21457090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21457091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21457092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21457093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21457095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21457096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21457097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21457099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21457100, 'pht': 3726}}" where mtr_portfolio_id = 21457085 and dashboard_run_id = 1678688 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`=21457085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475347, 0.03035622990416602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21457085_15-03-2025_06_00_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21457087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21457088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21457089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21457090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21457091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21457092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21457093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21457095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21457096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21457097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21457099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21457100, '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 = 21457786 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': 2671880, 'mtr_portfolio_id': 21457786, 'created_at': datetime.datetime(2025, 3, 15, 6, 0, 38), 'result': '0.06941607770191674', 'result_long': None, 'result_double': None}] Qualite : 0.06941607770191674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21457786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21457786_15-03-2025_06_00_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21457786 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_P21457786_15-03-2025_06_00_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21457787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21457788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21457789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21457790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21457791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21457792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21457793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21457794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21457795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21457796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21457797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21457798, 'pht': 3726}}" where mtr_portfolio_id = 21457786 and dashboard_run_id = 1678688 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`=21457786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475348, 0.06941607770191674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21457786_15-03-2025_06_00_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21457787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21457788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21457789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21457790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21457791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21457792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21457793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21457794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21457795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21457796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21457797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21457798, '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 = 21458129 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': 2671881, 'mtr_portfolio_id': 21458129, 'created_at': datetime.datetime(2025, 3, 15, 6, 1), 'result': '0.05144637356950585', 'result_long': None, 'result_double': None}] Qualite : 0.05144637356950585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21458129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21458129_15-03-2025_06_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21458129 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_P21458129_15-03-2025_06_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21458130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21458131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21458132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21458133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21458134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21458135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21458136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21458137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21458138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21458139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21458140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21458141, 'pht': 3726}}" where mtr_portfolio_id = 21458129 and dashboard_run_id = 1678688 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`=21458129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475349, 0.05144637356950585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21458129_15-03-2025_06_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21458130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21458131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21458132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21458133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21458134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21458135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21458136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21458137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21458138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21458139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21458140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21458141, '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 = 21458341 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': 2671309, 'mtr_portfolio_id': 21458341, 'created_at': datetime.datetime(2025, 3, 15, 0, 8, 31), 'result': '0.019947598464677616', 'result_long': None, 'result_double': None}] Qualite : 0.019947598464677616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21458341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21458341_15-03-2025_00_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21458341 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_P21458341_15-03-2025_00_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21458366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21458367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21458368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21458369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21458370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21458371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21458372, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21458373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21458374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21458375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21458376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21458377, 'pht': 3726}}" where mtr_portfolio_id = 21458341 and dashboard_run_id = 1678688 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`=21458341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9475350, 0.019947598464677616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21458341_15-03-2025_00_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21458366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21458367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21458368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21458369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21458370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21458371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21458372, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21458373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21458374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21458375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21458376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21458377, '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 (21407147,21407623,21408005,21408505,21408973,21409757,21410163,21410769,21411388,21412312,21412913,21413546,21414337,21415228,21415593,21417119,21417582,21417994,21418677,21419246,21419925,21420543,21421291,21422015,21422620,21423525,21424132,21424672,21426032,21426451,21427188,21427593,21428187,21429235,21429848,21430871,21431516,21432602,21433508,21434857,21435460,21436426,21437446,21438173,21438916,21439897,21441656,21442634,21443447,21444057,21444770,21446087,21446965,21447649,21448345,21449303,21450201,21451547,21452180,21452897,21453624,21454401,21455399,21455956,21456425,21457085,21457786,21458129,21458341) result : ((1344069604,), (1344069608,), (1344069610,), (1344069634,), (1344069638,), (1344069651,), (1344069655,), (1344069656,), (1344069659,), (1344069724,), (1344069726,), (1344069728,), (1344069731,), (1344069766,), (1344069781,), (1344069797,), (1344069798,), (1344069799,), (1344069821,), (1344069827,), (1344069830,), (1344069831,), (1344069832,), (1344069836,), (1344069840,), (1344069854,), (1344069857,), (1344069859,), (1344069862,), (1344069868,), (1344069885,), (1344069886,), (1344069890,), (1344069898,), (1344069971,), (1344069974,), (1344069978,), (1344069983,), (1344069989,), (1344069995,), (1344070055,), (1344070061,), (1344070066,), (1344070069,), (1344070133,), (1344070136,), (1344070138,), (1344070141,), (1344070145,), (1344070175,), (1344070177,), (1344070179,), (1344070181,), (1344070198,), (1344070204,), (1344070219,), (1344070223,), (1344070227,), (1344070229,), (1344070259,), (1344070273,), (1344070277,), (1344070288,), (1344070300,), (1344070304,), (1344070327,), (1344070332,), (1344070335,), (1344070337,), (1344070339,), (1344070380,), (1344070388,), (1344070399,), (1344070401,), (1344070402,), (1344070406,), (1344070439,), (1344070430,), (1344070433,), (1344070436,), (1344070499,), (1344070503,), (1344070507,), (1344070510,), (1344070513,), (1344070516,), (1344070539,), (1344070581,), (1344070585,), (1344070587,), (1344070589,), (1344070592,), (1344070594,), (1344070601,), (1344070604,), (1344070609,), (1344070622,), (1344070679,), (1344070680,), (1344070681,), (1344070682,), (1344070684,), (1344070685,), (1344070687,), (1344070689,), (1344070700,), (1344070709,), (1344070710,), (1344070712,), (1344070716,), (1344070723,), (1344070726,), (1344070728,), (1344070731,), (1344070734,), (1344070736,), (1344070738,), (1344070740,), (1344070773,), (1344070776,), (1344070789,), (1344070799,), (1344070812,), (1344070817,), (1344070838,), (1344070840,), (1344070843,), (1344070848,), (1344070850,), (1344070853,), (1344070855,), (1344070872,), (1344070879,), (1344070888,), (1344070891,), (1344070893,), (1344070965,), (1344070969,), (1344070974,), (1344070978,), (1344070980,), (1344070982,), (1344071033,), (1344071069,), (1344071072,), (1344071073,), (1344071100,), (1344071104,), (1344071107,), (1344071112,), (1344071113,), (1344071116,), (1344071140,), (1344071146,), (1344071150,), (1344071155,), (1344071156,), (1344071202,), (1344071205,), (1344071246,), (1344071255,), (1344071257,), (1344071258,), (1344071353,), (1344071356,), (1344071413,), (1344071428,), (1344071444,), (1344071447,), (1344071450,), (1344071453,), (1344071456,), (1344071519,), (1344071571,), (1344071230,), (1344071231,), (1344071233,), (1344071240,), (1344071252,), (1344071299,), (1344071343,), (1344071346,), (1344071349,), (1344071372,), (1344071373,), (1344071375,), (1344071377,), (1344071378,), (1344071380,), (1344071381,), (1344071383,), (1344071386,), (1344071387,), (1344071389,), (1344071390,), (1344071401,), (1344071404,), (1344071409,), (1344071412,), (1344071486,), (1344071490,), (1344071492,), (1344071499,), (1344071502,), (1344071505,), (1344071508,), (1344071510,), (1344071512,), (1344071516,), (1344071538,), (1344071542,), (1344071547,), (1344071550,), (1344071554,), (1344071561,), (1344071606,), (1344071615,), (1344071619,), (1344071628,), (1344071635,), (1344071662,), (1344071665,), (1344071667,), (1344071671,), (1344071682,), (1344071687,), (1344071740,), (1344071743,), (1344071746,), (1344071747,), (1344071770,), (1344071773,), (1344071873,), (1344071912,), (1344071945,), (1344071969,), (1344072063,), (1344072067,), (1344072068,), (1344072080,), (1344072106,), (1344072127,), (1344072172,), (1344072176,), (1344072179,), (1344072182,), (1344072187,), (1344072189,), (1344072191,), (1344072194,), (1344072198,), (1344072202,), (1344072616,), (1344072619,), (1344072650,), (1344072718,), (1344072738,), (1344072759,), (1344072785,), (1344072793,), (1344072816,), (1344072807,), (1344072813,), (1344072815,), (1344072870,), (1344072882,), (1344072885,), (1344072887,), (1344073088,), (1344073161,), (1344073219,), (1344073227,), (1344073283,), (1344073295,), (1344073359,), (1344073432,), (1344073705,), (1344073780,), (1344073782,), (1344073784,), (1344073791,), (1344073795,), (1344073799,), (1344073806,), (1344073809,), (1344073814,), (1344073824,), (1344073826,), (1344073829,), (1344073831,), (1344073963,), (1344073991,), (1344074018,), (1344074047,), (1344074073,), (1344074100,), (1344074466,), (1344074493,), (1344074527,), (1344074553,), (1344074808,), (1344074811,), (1344074815,), (1344074824,), (1344074831,), (1344074836,), (1344074888,), (1344074902,), (1344074932,), (1344074957,), (1344074981,), (1344075251,), (1344075257,), (1344075260,), (1344075296,), (1344075319,), (1344075332,), (1344075431,), (1344075453,), (1344075464,), (1344075467,), (1344075483,), (1344075487,), (1344075496,), (1344075513,), (1344075515,), (1344075517,), (1344075533,), (1344075537,), (1344075542,), (1344075544,), (1344075564,), (1344075568,), (1344075571,), (1344075574,), (1344075575,), (1344075603,), (1344075606,), (1344075608,), (1344075609,), (1344075610,), (1344075613,), (1344075650,), (1344075639,), (1344075641,), (1344075644,), (1344075689,), (1344075692,), (1344075694,), (1344075697,), (1344075699,), (1344075704,), (1344075779,), (1344075795,), (1344075800,), (1344075803,), (1344075810,), (1344075814,), (1344075913,), (1344075918,), (1344075921,), (1344075924,), (1344076050,), (1344076062,), (1344076064,), (1344076066,), (1344076067,), (1344076128,), (1344076131,), (1344076134,), (1344076137,), (1344076201,), (1344076203,), (1344076212,), (1344076217,), (1344076221,), (1344076226,), (1344076273,), (1344076277,), (1344076281,), (1344076286,), (1344076291,), (1344076330,), (1344076332,), (1344076335,), (1344076338,), (1344076339,), (1344076379,), (1344076382,), (1344076384,), (1344076386,), (1344076387,), (1344076428,), (1344076430,), (1344076431,), (1344076432,), (1344076436,), (1344076501,), (1344076503,), (1344076504,), (1344076506,), (1344076508,), (1344076537,), (1344076540,), (1344076546,), (1344076556,), (1344076557,), (1344076604,), (1344076614,), (1344076628,), (1344076631,), (1344076660,), (1344076663,), (1344076665,), (1344076672,), (1344076676,), (1344076687,), (1344076692,), (1344076701,), (1344076728,), (1344076809,), (1344076811,), (1344076813,), (1344076815,), (1344077075,), (1344077182,), (1344077210,), (1344077215,), (1344077218,), (1344077220,), (1344077242,), (1344077267,), (1344077269,), (1344076801,), (1344076858,), (1344076862,), (1344076866,), (1344076872,), (1344076952,), (1344076963,), (1344076966,), (1344076988,), (1344076991,), (1344076996,), (1344077014,), (1344077015,), (1344077019,), (1344077021,), (1344077029,), (1344077046,), (1344077048,), (1344077064,), (1344077069,), (1344077074,), (1344077083,), (1344077086,), (1344077091,), (1344077095,), (1344077099,), (1344077102,), (1344077129,), (1344077130,), (1344077132,), (1344077135,), (1344077136,), (1344077139,), (1344077152,), (1344077159,), (1344077169,), (1344077171,), (1344077173,), (1344077175,), (1344077179,), (1344077192,), (1344077194,), (1344077196,), (1344077199,), (1344077201,), (1344077204,), (1344077205,), (1344077212,), (1344077228,), (1344077230,), (1344077232,), (1344077233,), (1344077237,), (1344077282,), (1344077292,), (1344077294,), (1344077298,), (1344077301,), (1344077348,), (1344077361,), (1344077364,), (1344077367,), (1344077397,), (1344077414,), (1344077420,), (1344077431,), (1344077448,), (1344077451,), (1344077453,), (1344077462,), (1344077465,), (1344077494,), (1344077504,), (1344077510,), (1344077512,), (1344077516,), (1344077517,), (1344077518,), (1344077519,), (1344077520,), (1344077521,), (1344077522,), (1344077523,), (1344077526,), (1344077527,), (1344077530,), (1344077531,), (1344077546,), (1344077551,), (1344077556,), (1344077560,), (1344077561,), (1344077562,), (1344077563,), (1344077564,), (1344077566,), (1344077586,), (1344077645,), (1344077648,), (1344077650,), (1344077651,), (1344077653,), (1344077655,), (1344077678,), (1344077681,), (1344077685,), (1344077689,), (1344077751,), (1344077796,), (1344077799,), (1344077802,), (1344077805,), (1344077809,), (1344077698,), (1344077700,), (1344077703,), (1344077722,), (1344077737,), (1344077790,), (1344077793,), (1344077797,), (1344077800,), (1344077801,), (1344077849,), (1344077861,), (1344077863,), (1344077864,), (1344077870,), (1344077986,), (1344077988,), (1344077989,), (1344077991,), (1344078004,), (1344078014,), (1344078095,), (1344078156,), (1344078188,), (1344078290,), (1344078303,), (1344078314,), (1344078316,), (1344078318,), (1344078322,), (1344078381,), (1344078384,), (1344078386,), (1344078388,), (1344078442,), (1344078446,), (1344078449,), (1344078450,), (1344078453,), (1344078458,), (1344078511,), (1344078514,), (1344078517,), (1344078544,), (1344078581,), (1344078582,), (1344078585,), (1344078586,), (1344078590,), (1344078591,), (1344078593,), (1344078594,), (1344078596,), (1344078599,), (1344078602,), (1344078623,), (1344078632,), (1344078646,), (1344078650,), (1344078663,), (1344078677,), (1344078717,), (1344078771,), (1344078797,), (1344078991,), (1344079038,), (1344079060,), (1344079118,), (1344079351,), (1344079398,), (1344079745,), (1344079758,), (1344079764,), (1344079766,), (1344079768,), (1344079770,), (1344079783,), (1344079785,), (1344079789,), (1344079793,), (1344079797,), (1344079801,), (1344079870,), (1344079963,), (1344079974,), (1344079977,), (1344079989,), (1344079813,), (1344079815,), (1344079819,), (1344079824,), (1344079846,), (1344080079,), (1344080119,), (1344080171,), (1344080203,), (1344080450,), (1344080478,), (1344080502,), (1344080510,), (1344080518,), (1344080525,), (1344080577,), (1344080581,), (1344080585,), (1344080587,), (1344080642,), (1344080646,), (1344080649,), (1344080652,), (1344080967,), (1344080996,), (1344081011,), (1344081015,), (1344081016,), (1344081018,), (1344081057,), (1344081062,), (1344081065,), (1344081066,), (1344081067,), (1344081068,), (1344081069,), (1344081070,), (1344081073,), (1344081085,), (1344081087,), (1344081090,), (1344081100,), (1344081103,), (1344081107,), (1344081121,), (1344081129,), (1344081136,), (1344081143,), (1344081152,), (1344081162,), (1344081173,), (1344081191,), (1344081192,), (1344081194,), (1344081195,), (1344081197,), (1344081201,), (1344081221,), (1344081229,), (1344081242,), (1344081265,), (1344081273,), (1344081304,), (1344081375,), (1344081285,), (1344081286,), (1344081289,), (1344081292,), (1344081294,), (1344081296,), (1344081298,), (1344081301,), (1344081349,), (1344081353,), (1344081357,), (1344081363,), (1344081367,), (1344081380,), (1344081382,), (1344081391,), (1344081477,), (1344081481,), (1344081484,), (1344081486,), (1344081492,), (1344081509,), (1344081573,), (1344081589,), (1344081610,), (1344081634,), (1344081739,), (1344081743,), (1344081748,), (1344081752,), (1344081754,), (1344081874,), (1344081879,), (1344081883,), (1344081884,), (1344081917,), (1344081963,), (1344082057,), (1344082060,), (1344082063,), (1344082066,), (1344082072,), (1344082127,), (1344082132,), (1344082134,), (1344082141,), (1344082142,), (1344082144,), (1344082184,), (1344082186,), (1344082188,), (1344082191,), (1344082192,), (1344082253,), (1344082263,), (1344082274,), (1344082327,), (1344082330,), (1344082333,), (1344082336,), (1344082337,), (1344082341,), (1344082389,), (1344082398,), (1344082410,), (1344082424,), (1344082446,), (1344082449,), (1344082453,), (1344082457,), (1344082459,), (1344082462,), (1344082500,), (1344082511,), (1344082513,), (1344082517,), (1344082522,), (1344082539,), (1344083131,), (1344084101,), (1344082609,), (1344082660,), (1344083112,), (1344083117,), (1344083122,), (1344083137,), (1344083153,), (1344083156,), (1344083227,), (1344083235,), (1344083248,), (1344083249,), (1344083260,), (1344083262,), (1344083274,), (1344083275,), (1344083279,), (1344083282,), (1344083283,), (1344083292,), (1344083295,), (1344083303,), (1344083310,), (1344083315,), (1344083320,), (1344083321,), (1344083325,), (1344083328,), (1344083335,), (1344083336,), (1344083338,), (1344083349,), (1344083351,), (1344083352,), (1344083353,), (1344083358,), (1344083359,), (1344083363,), (1344083366,), (1344083372,), (1344083420,), (1344083439,), (1344083554,), (1344083650,), (1344083656,), (1344083664,), (1344083724,), (1344083766,), (1344083801,), (1344083824,), (1344083851,), (1344083891,), (1344084686,), (1344084733,), (1344084745,), (1344084755,), (1344084871,), (1344084878,), (1344084911,), (1344084920,), (1344084925,), (1344084928,), (1344085037,), (1344085054,), (1344085061,), (1344085065,), (1344085073,), (1344085077,), (1344085145,), (1344085148,), (1344085151,), (1344085206,), (1344085210,), (1344085226,), (1344085230,), (1344085233,), (1344085236,), (1344085281,), (1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,), (1344086236,), (1344086239,), (1344086269,), (1344086274,), (1344086276,), (1344086345,), (1344086348,), (1344086350,), (1344086353,), (1344086358,), (1344086363,), (1344086379,), (1344086382,), (1344086386,), (1344086422,), (1344086426,), (1344086433,), (1344086437,), (1344086444,), (1344086447,), (1344086532,), (1344086537,), (1344086541,), (1344086543,), (1344086595,), (1344086607,), (1344086619,), (1344086623,), (1344086627,), (1344086631,), (1344086635,), (1344086638,), (1344086649,), (1344086655,), (1344086660,), (1344086669,), (1344086670,), (1344086673,), (1344086675,), (1344086678,), (1344086679,), (1344086690,), (1344086925,), (1344086945,), (1344086971,), (1344086981,), (1344086984,), (1344087029,), (1344087078,), (1344087110,), (1344087132,), (1344087151,), (1344087193,), (1344087221,), (1344087226,), (1344087363,), (1344087450,), (1344087454,), (1344087465,), (1344087468,), (1344087487,), (1344087493,), (1344087501,), (1344087798,), (1344087855,), (1344087928,), (1344088197,), (1344089428,), (1344087428,), (1344087431,), (1344087434,), (1344087442,), (1344087578,), (1344087592,), (1344087606,), (1344087609,), (1344088002,), (1344088052,), (1344088107,), (1344088128,), (1344088173,), (1344088223,), (1344088336,), (1344088372,), (1344088418,), (1344088473,), (1344088514,), (1344088567,), (1344088817,), (1344089096,), (1344089122,), (1344089135,), (1344089159,), (1344089227,), (1344089252,), (1344089280,), (1344089304,), (1344089331,), (1344089355,), (1344089464,), (1344089472,), (1344089485,), (1344089487,), (1344089623,), (1344089634,), (1344089638,), (1344089644,), (1344089655,), (1344089678,), (1344089895,), (1344090004,), (1344090058,), (1344090085,), (1344090116,), (1344090280,), (1344090298,), (1344090319,), (1344090389,), (1344090394,), (1344090398,), (1344090401,), (1344090404,), (1344090408,), (1344090512,), (1344090517,), (1344090525,), (1344090530,), (1344090601,), (1344090604,), (1344090625,), (1344090657,), (1344090666,), (1344090671,), (1344090704,), (1344090734,), (1344090764,), (1344090787,), (1344090807,), (1344090876,), (1344090880,), (1344090947,), (1344091007,), (1344091010,), (1344091085,), (1344091044,), (1344091047,), (1344091049,), (1344091052,), (1344091066,), (1344091133,), (1344091139,), (1344091142,), (1344091152,), (1344091251,), (1344091257,), (1344091260,), (1344091265,), (1344091273,), (1344091278,), (1344091321,), (1344091348,), (1344091372,), (1344091380,), (1344091416,), (1344091439,), (1344091444,), (1344091446,), (1344091451,), (1344091456,), (1344091510,), (1344091514,), (1344091518,), (1344091524,), (1344091531,), (1344091535,), (1344091550,), (1344091555,), (1344091557,), (1344091560,), (1344091564,), (1344091567,), (1344091579,), (1344091583,), (1344091587,), (1344091593,), (1344091609,), (1344091611,), (1344091621,), (1344091630,), (1344091635,), (1344091681,), (1344091686,), (1344091689,), (1344091693,), (1344091775,), (1344091793,), (1344091804,), (1344091805,), (1344091807,), (1344091810,), (1344091811,), (1344091816,), (1344091821,), (1344091824,), (1344091828,), (1344091830,), (1344091835,), (1344091837,), (1344091839,), (1344091844,), (1344091856,), (1344091858,), (1344091894,), (1344091915,), (1344091931,), (1344091941,), (1344091945,), (1344091947,), (1344091952,), (1344091968,), (1344091986,), (1344091999,), (1344092001,), (1344092006,), (1344092007,), (1344092033,), (1344092036,), (1344092037,), (1344092039,), (1344092040,), (1344092097,), (1344092106,), (1344092109,), (1344092111,), (1344092114,), (1344092115,), (1344092119,), (1344092122,), (1344092138,), (1344092141,), (1344092243,), (1344092245,), (1344092300,), (1344092303,), (1344092078,), (1344092079,), (1344092083,), (1344092087,), (1344092092,), (1344092189,), (1344092213,), (1344092219,), (1344092235,), (1344092283,), (1344092294,), (1344092298,), (1344092322,), (1344092345,), (1344092355,), (1344092359,), (1344092369,), (1344092398,), (1344092471,), (1344092482,), (1344092492,), (1344092496,), (1344092503,), (1344092550,), (1344092557,), (1344092611,), (1344092615,), (1344092620,), (1344092621,), (1344092623,), (1344092625,), (1344092663,), (1344092664,), (1344092671,), (1344092675,), (1344092684,), (1344092688,), (1344092696,), (1344092698,), (1344092700,), (1344092702,), (1344092706,), (1344092711,), (1344092739,), (1344092742,), (1344092748,), (1344092756,), (1344092758,), (1344092765,), (1344092773,), (1344092775,), (1344092777,), (1344092778,), (1344092780,), (1344092782,), (1344092783,), (1344092785,), (1344092810,), (1344092814,), (1344092819,), (1344092823,), (1344092824,), (1344092826,), (1344092835,), (1344092841,), (1344092847,), (1344092851,), (1344092855,), (1344092859,), (1344092870,), (1344092874,), (1344092880,), (1344092890,), (1344092892,), (1344092897,), (1344092906,), (1344092946,), (1344092949,), (1344092952,), (1344092953,), (1344092955,), (1344092963,), (1344093011,), (1344093023,), (1344093029,), (1344093134,), (1344093088,), (1344093092,), (1344093104,), (1344093110,), (1344093127,), (1344093210,), (1344093213,), (1344093214,), (1344093215,), (1344093275,), (1344093286,), (1344093289,), (1344093294,), (1344093302,), (1344093306,), (1344093331,), (1344093403,), (1344093406,), (1344093408,), (1344093411,), (1344093413,), (1344093416,), (1344093426,), (1344093429,), (1344093438,), (1344093449,), (1344093455,), (1344093462,), (1344093472,), (1344093476,), (1344093481,), (1344093531,), (1344093533,), (1344093536,), (1344093539,), (1344093540,), (1344093542,), (1344093546,), (1344093561,), (1344093576,), (1344093581,), (1344093585,), (1344093586,), (1344093589,), (1344093592,), (1344093611,), (1344093617,), (1344093629,), (1344093632,), (1344093635,), (1344093638,), (1344093639,), (1344093646,), (1344093655,), (1344093667,), (1344093670,), (1344093673,), (1344093677,), (1344093698,), (1344093709,), (1344093714,), (1344093732,), (1344093772,), (1344093821,), (1344093884,), (1344093888,), (1344093900,), (1344093911,), (1344093913,), (1344093914,), (1344093928,), (1344093930,), (1344093936,), (1344093948,), (1344093978,), (1344094004,), (1344094054,), (1344094087,), (1344094178,), (1344094244,), (1344094271,), (1344094321,), (1344094459,), (1344094480,), (1344094507,), (1344094779,), (1344094790,), (1344094819,), (1344094836,), (1344094868,), (1344100667,), (1344100760,), (1344100428,), (1344100529,), (1344100544,), (1344100549,), (1344100562,), (1344100580,), (1344100591,), (1344100612,), (1344100648,), (1344100672,), (1344100683,), (1344100691,), (1344100702,), (1344100726,), (1344100753,), (1344100757,), (1344100871,), (1344100916,), (1344100922,), (1344100929,), (1344100938,), (1344100955,), (1344100963,), (1344100980,), (1344100993,), (1344101005,), (1344101038,), (1344101090,), (1344101092,), (1344101097,), (1344101185,), (1344101192,), (1344101198,), (1344101202,), (1344101211,), (1344101213,), (1344101225,), (1344101228,), (1344101236,), (1344101238,), (1344101242,), (1344101252,), (1344101256,), (1344101261,), (1344101265,), (1344101268,), (1344101269,), (1344101323,), (1344101369,), (1344101376,), (1344101379,), (1344101390,), (1344101399,), (1344101400,), (1344101403,), (1344101404,), (1344101407,), (1344101409,), (1344101412,), (1344101453,), (1344101456,), (1344101458,), (1344101461,), (1344101462,), (1344101464,), (1344101467,), (1344101468,), (1344101472,), (1344101474,), (1344101476,), (1344101477,), (1344101494,), (1344101498,), (1344101502,), (1344101506,), (1344101509,), (1344101526,), (1344101530,), (1344101531,), (1344101534,), (1344101582,), (1344101583,), (1344101617,), (1344101618,), (1344101622,), (1344101630,), (1344101636,), (1344101638,), (1344101643,), (1344101645,), (1344101646,), (1344101647,), (1344101668,), (1344101685,), (1344101711,), (1344101712,), (1344101718,), (1344101722,), (1344101725,), (1344101728,), (1344101730,), (1344101746,), (1344101749,), (1344101756,), (1344101757,), (1344101761,), (1344101765,), (1344101771,), (1344101775,), (1344101778,), (1344101780,), (1344101783,), (1344101786,), (1344101983,), (1344101999,), (1344102184,), (1344102188,), (1344101657,), (1344101659,), (1344101660,), (1344101664,), (1344101736,), (1344101742,), (1344101811,), (1344101836,), (1344101841,), (1344101851,), (1344101855,), (1344101859,), (1344101930,), (1344101942,), (1344101956,), (1344101979,), (1344101994,), (1344102010,), (1344102030,), (1344102045,), (1344102056,), (1344102063,), (1344102103,), (1344102108,), (1344102114,), (1344102120,), (1344102125,), (1344102132,), (1344102142,), (1344102146,), (1344102149,), (1344102150,), (1344102161,), (1344102166,), (1344102244,), (1344102284,), (1344102318,), (1344102322,), (1344102357,), (1344102451,), (1344102467,), (1344102546,), (1344102554,), (1344102611,), (1344102738,), (1344102742,), (1344102746,), (1344102749,), (1344102752,), (1344102785,), (1344102788,), (1344102793,), (1344103075,), (1344103108,), (1344103186,), (1344103432,), (1344103371,), (1344103395,), (1344103416,), (1344103625,), (1344103680,), (1344103738,), (1344103782,), (1344103811,), (1344104367,), (1344104467,), (1344104499,), (1344104526,), (1344104896,), (1344104992,), (1344105029,), (1344105062,), (1344105104,), (1344105160,), (1344105202,), (1344105210,), (1344105225,), (1344105314,), (1344105396,), (1344105427,), (1344105505,), (1344105618,), (1344105719,), (1344105815,), (1344106074,), (1344106116,), (1344106128,), (1344106132,), (1344106161,), (1344106163,), (1344106167,), (1344106171,), (1344106176,), (1344106181,), (1344106199,), (1344106204,), (1344106209,), (1344106212,), (1344106266,), (1344106271,), (1344106283,), (1344106285,), (1344106288,), (1344106328,), (1344106406,), (1344106408,), (1344106410,), (1344106413,), (1344106414,), (1344106418,), (1344106426,), (1344106436,), (1344106454,), (1344106460,), (1344106463,), (1344106470,), (1344106513,), (1344106520,), (1344106533,), (1344106538,), (1344106539,), (1344106549,), (1344106551,), (1344106553,), (1344106556,), (1344106559,), (1344106572,), (1344106576,), (1344106578,), (1344106581,), (1344106583,), (1344106607,), (1344106611,), (1344106614,), (1344106617,), (1344106621,), (1344106630,), (1344106836,), (1344106863,), (1344106892,), (1344106924,), (1344107052,), (1344107375,), (1344107767,), (1344107183,), (1344107185,), (1344107187,), (1344107189,), (1344107210,), (1344107221,), (1344107239,), (1344107243,), (1344107261,), (1344107329,), (1344107349,), (1344107353,), (1344107397,), (1344107400,), (1344107412,), (1344107419,), (1344107631,), (1344107635,), (1344107656,), (1344107669,), (1344107695,), (1344107700,), (1344107706,), (1344107721,), (1344107729,), (1344107733,), (1344107739,), (1344107743,), (1344107752,), (1344107783,), (1344107785,), (1344107787,), (1344107790,), (1344107794,), (1344107810,), (1344107866,), (1344107918,), (1344107921,), (1344107923,), (1344107927,), (1344107929,), (1344107932,), (1344107938,), (1344107942,), (1344107978,), (1344107979,), (1344107982,), (1344107984,), (1344108033,), (1344108038,), (1344108046,), (1344108100,), (1344108108,), (1344108112,), (1344108121,), (1344108122,), (1344108133,), (1344108136,), (1344108141,), (1344108144,), (1344108148,), (1344108206,), (1344108236,), (1344108267,), (1344108295,), (1344108385,), (1344108389,), (1344108394,), (1344108402,), (1344108416,), (1344108426,), (1344108437,), (1344108442,), (1344108451,), (1344108456,), (1344108501,), (1344108505,), (1344108516,), (1344108519,), (1344108523,), (1344108527,), (1344108636,), (1344108644,), (1344108650,), (1344108671,), (1344108693,), (1344108827,), (1344108854,), (1344108896,), (1344108969,), (1344108974,), (1344109213,), (1344109166,), (1344109175,), (1344109188,), (1344109190,), (1344109192,), (1344109378,), (1344109425,), (1344109468,), (1344109510,), (1344109540,), (1344109659,), (1344109676,), (1344109680,), (1344109684,), (1344109689,), (1344109792,), (1344109797,), (1344109802,), (1344109805,), (1344109813,), (1344109818,), (1344109851,), (1344109857,), (1344109862,), (1344109867,), (1344109896,), (1344109899,), (1344109950,), (1344109954,), (1344109959,), (1344109974,), (1344109984,), (1344110034,), (1344110043,), (1344110048,), (1344110051,), (1344110056,), (1344110059,), (1344110093,), (1344110102,), (1344110116,), (1344110136,), (1344110140,), (1344110264,), (1344110286,), (1344110292,), (1344110295,), (1344110296,), (1344110350,), (1344110367,), (1344110371,), (1344110377,), (1344110383,), (1344110388,), (1344110442,), (1344110445,), (1344110450,), (1344110474,), (1344110767,), (1344110771,), (1344110776,), (1344110781,), (1344110785,), (1344110789,), (1344110827,), (1344110833,), (1344110838,), (1344110841,), (1344110885,), (1344110888,), (1344110906,), (1344110909,), (1344110916,), (1344110974,), (1344110979,), (1344110982,), (1344110984,), (1344111051,), (1344111026,), (1344111031,), (1344111040,), (1344111044,), (1344111046,), (1344111104,), (1344111113,), (1344111118,), (1344111207,), (1344111215,), (1344111222,), (1344111228,), (1344111239,), (1344111244,), (1344111285,), (1344111293,), (1344111300,), (1344111305,), (1344111306,), (1344111409,), (1344111419,), (1344111457,), (1344111464,), (1344111476,), (1344111488,), (1344111548,), (1344111566,), (1344111574,), (1344111575,), (1344111645,), (1344111718,), (1344111730,), (1344111734,), (1344111759,), (1344111765,), (1344111798,), (1344111819,), (1344111822,), (1344111824,), (1344111825,), (1344111860,), (1344111867,), (1344111871,), (1344111879,), (1344111889,), (1344111893,), (1344111941,), (1344111949,), (1344111954,), (1344111957,), (1344111958,), (1344112047,), (1344112055,), (1344112062,), (1344112091,), (1344112100,), (1344112103,), (1344112253,), (1344112259,), (1344112268,), (1344112274,), (1344112311,), (1344112317,), (1344112321,), (1344112324,), (1344112327,), (1344112329,), (1344113451,), (1344113541,), (1344113665,), (1344114008,), (1344114071,), (1344114111,), (1344114146,), (1344114177,), (1344114573,), (1344114451,), (1344114506,), (1344114547,), (1344115151,), (1344115187,), (1344115188,), (1344115221,), (1344115226,), (1344115374,), (1344115404,), (1344115437,), (1344115481,), (1344115521,), (1344115597,), (1344115750,), (1344115766,), (1344115770,), (1344115782,), (1344115900,), (1344115920,), (1344115929,), (1344115945,), (1344115948,), (1344115970,), (1344116038,), (1344116063,), (1344116067,), (1344116074,), (1344116102,), (1344116183,), (1344116190,), (1344116195,), (1344116199,), (1344116202,), (1344116204,), (1344116236,), (1344116242,), (1344116248,), (1344116259,), (1344116314,), (1344116318,), (1344116323,), (1344116328,), (1344116333,), (1344116337,), (1344116379,), (1344116410,), (1344116423,), (1344116426,), (1344116472,), (1344116482,), (1344116488,), (1344116492,), (1344116494,), (1344116497,), (1344116527,), (1344116535,), (1344116540,), (1344116545,), (1344116547,), (1344116601,), (1344116617,), (1344116626,), (1344116632,), (1344116633,), (1344116639,), (1344116670,), (1344116675,), (1344116682,), (1344116689,), (1344116737,), (1344116749,), (1344116767,), (1344116771,), (1344116776,), (1344116783,), (1344116825,), (1344116812,), (1344116816,), (1344116818,), (1344116820,), (1344116893,), (1344116896,), (1344116897,), (1344116900,), (1344116947,), (1344116950,), (1344116955,), (1344116966,), (1344116988,), (1344117036,), (1344117040,), (1344117044,), (1344117048,), (1344117111,), (1344117149,), (1344117155,), (1344117159,), (1344117162,), (1344117165,), (1344117222,), (1344117233,), (1344117240,), (1344117244,), (1344117276,), (1344117290,), (1344117299,), (1344117308,), (1344117383,), (1344117390,), (1344117434,), (1344117440,), (1344117446,), (1344117557,), (1344117566,), (1344117576,), (1344117658,), (1344117665,), (1344117672,), (1344117679,), (1344117683,), (1344117688,), (1344117717,), (1344117723,), (1344117729,), (1344117799,), (1344117817,), (1344117908,), (1344117896,), (1344117901,), (1344117987,), (1344117993,), (1344118001,), (1344118006,), (1344118319,), (1344118354,), (1344118410,), (1344118419,), (1344118491,), (1344118494,), (1344118555,), (1344118615,), (1344118648,), (1344118822,), (1344118853,), (1344118882,), (1344118926,), (1344118954,), (1344118982,), (1344119205,), (1344119239,), (1344119268,), (1344119280,), (1344119304,), (1344119346,), (1344119566,), (1344119597,), (1344119611,), (1344119678,), (1344119683,), (1344119698,), (1344119706,), (1344119711,), (1344119716,), (1344119744,), (1344119750,), (1344119755,), (1344119759,), (1344119818,), (1344119876,), (1344119911,), (1344119932,), (1344119995,), (1344120066,), (1344120156,), (1344120162,), (1344120165,), (1344120170,), (1344120173,), (1344120239,), (1344120244,), (1344120253,), (1344120255,), (1344120257,), (1344120258,), (1344120492,), (1344120499,), (1344120513,), (1344120521,), (1344120524,), (1344120568,), (1344120575,), (1344120579,), (1344120586,), (1344120597,), (1344120918,), (1344120941,), (1344120958,), (1344121021,), (1344121051,), (1344121074,), (1344121281,), (1344121187,), (1344121216,), (1344121253,), (1344121398,), (1344121406,), (1344121412,), (1344121426,), (1344121459,), (1344121483,), (1344121588,), (1344121593,), (1344121600,), (1344121604,), (1344121667,), (1344121683,), (1344121693,), (1344121703,), (1344121716,), (1344121721,), (1344121766,), (1344121772,), (1344121776,), (1344121789,), (1344121835,), (1344121845,), (1344121896,), (1344121914,), (1344121928,), (1344121934,), (1344121983,), (1344121986,), (1344121989,), (1344122060,), (1344122075,), (1344122082,), (1344122089,), (1344122097,), (1344122103,), (1344122123,), (1344122128,), (1344122142,), (1344122154,), (1344122196,), (1344122205,), (1344122214,), (1344122226,), (1344122235,), (1344122288,), (1344122296,), (1344122308,), (1344122316,), (1344122359,), (1344122367,), (1344122372,), (1344122373,), (1344122383,), (1344122392,), (1344122617,), (1344122644,), (1344122675,), (1344123088,), (1344123123,), (1344123129,), (1344123136,), (1344123142,), (1344123148,), (1344123401,), (1344123318,), (1344123344,), (1344123376,), (1344123716,), (1344123746,), (1344123776,), (1344123782,), (1344123786,), (1344123946,), (1344123948,), (1344123951,), (1344124145,), (1344124151,), (1344124156,), (1344124160,), (1344124386,), (1344124786,), (1344124842,), (1344124914,), (1344124954,), (1344125000,), (1344125324,), (1344125366,), (1344125400,), (1344125682,), (1344125708,), (1344125734,), (1344125759,), (1344125782,), (1344125835,), (1344125841,), (1344125845,), (1344125850,), (1344125852,), (1344125995,), (1344126173,), (1344126201,), (1344126229,), (1344126376,), (1344126403,), (1344126433,), (1344126448,), (1344126463,), (1344126466,), (1344126514,), (1344126517,), (1344126521,), (1344126524,), (1344126543,), (1344126600,), (1344126605,), (1344126609,), (1344126714,), (1344126726,), (1344126734,), (1344126737,), (1344126739,), (1344126744,), (1344126795,), (1344126822,), (1344126835,), (1344126842,), (1344126850,), (1344126936,), (1344126939,), (1344126942,), (1344126945,), (1344126947,), (1344127052,), (1344127030,), (1344127035,), (1344127041,), (1344127045,), (1344127048,), (1344127115,), (1344127132,), (1344127137,), (1344127140,), (1344127177,), (1344127182,), (1344127187,), (1344127201,), (1344127207,), (1344127212,), (1344127249,), (1344127255,), (1344127260,), (1344127265,), (1344127354,), (1344127360,), (1344127366,), (1344127369,), (1344127466,), (1344127623,), (1344127684,), (1344127690,), (1344127724,), (1344127738,), (1344127804,), (1344127810,), (1344127815,), (1344127818,), (1344127830,), (1344127868,), (1344127873,), (1344127881,), (1344127885,), (1344127888,), (1344127892,), (1344127929,), (1344127940,), (1344127942,), (1344127981,), (1344127985,), (1344127990,), (1344127995,), (1344128100,), (1344128105,), (1344128112,), (1344128113,), (1344128116,), (1344128155,), (1344128165,), (1344128172,), (1344128174,), (1344128221,), (1344128226,), (1344128229,), (1344128233,), (1344128234,), (1344128290,), (1344128310,), (1344128314,), (1344128325,), (1344128326,), (1344128329,), (1344128417,), (1344128366,), (1344128393,), (1344128782,), (1344128845,), (1344128852,), (1344128868,), (1344128873,), (1344128881,), (1344128901,), (1344128906,), (1344128910,), (1344128916,), (1344128980,), (1344128985,), (1344128992,), (1344129005,), (1344129010,), (1344129077,), (1344129091,), (1344129098,), (1344129102,), (1344129106,), (1344129142,), (1344129147,), (1344129151,), (1344129155,), (1344129158,), (1344129201,), (1344129213,), (1344129220,), (1344129222,), (1344129239,), (1344129247,), (1344129290,), (1344129303,), (1344129309,), (1344129337,), (1344129397,), (1344129404,), (1344129411,), (1344129421,), (1344129430,), (1344129438,), (1344129472,), (1344129488,), (1344129494,), (1344129500,), (1344129693,), (1344129723,), (1344130101,), (1344139482,), (1344134478,), (1344139445,), (1344139764,), (1344139789,), (1344139819,), (1344139868,), (1344140290,), (1344140370,), (1344140398,), (1344140529,), (1344140536,), (1344141068,), (1344141566,), (1344141589,), (1344141609,), (1344141643,), (1344141683,), (1344141730,), (1344142023,), (1344142173,), (1344142195,), (1344142221,), (1344142298,), (1344142311,), (1344142315,), (1344142317,), (1344142318,), (1344142609,), (1344142521,), (1344142558,), (1344142582,), (1344142595,), (1344142602,), (1344142623,), (1344142809,), (1344142843,), (1344142877,), (1344143046,), (1344143077,), (1344143486,), (1344143572,), (1344143641,), (1344143728,), (1344144176,), (1344144195,), (1344144250,), (1344144296,), (1344144337,), (1344144376,), (1344144741,), (1344144768,), (1344144775,), (1344144797,), (1344144810,), (1344145025,), (1344145030,), (1344145033,), (1344145036,), (1344145133,), (1344145145,), (1344145149,), (1344145163,), (1344145191,), (1344145360,), (1344145366,), (1344145372,), (1344145375,), (1344145378,), (1344145380,), (1344145414,), (1344145423,), (1344145431,), (1344145434,), (1344145439,), (1344145468,), (1344145473,), (1344145481,), (1344145494,), (1344145495,), (1344145496,), (1344145527,), (1344145532,), (1344145538,), (1344145542,), (1344145543,), (1344145851,), (1344145858,), (1344145865,), (1344145869,), (1344145872,), (1344145875,), (1344145905,), (1344145911,), (1344145916,), (1344145971,), (1344145978,), (1344145984,), (1344145986,), (1344145988,), (1344145990,), (1344146032,), (1344146051,), (1344146056,), (1344146058,), (1344146061,), (1344146129,), (1344146101,), (1344146117,), (1344146122,), (1344146125,), (1344146171,), (1344146177,), (1344146183,), (1344146187,), (1344146190,), (1344146242,), (1344146248,), (1344146251,), (1344146254,), (1344146375,), (1344146379,), (1344146383,), (1344146399,), (1344146418,), (1344146430,), (1344146463,), (1344146467,), (1344146472,), (1344146474,), (1344146513,), (1344146516,), (1344146519,), (1344146522,), (1344146539,), (1344146552,), (1344146587,), (1344146591,), (1344146594,), (1344146626,), (1344146630,), (1344146634,), (1344146651,), (1344146660,), (1344146666,), (1344146724,), (1344146730,), (1344146735,), (1344146737,), (1344146738,), (1344146739,), (1344146788,), (1344146798,), (1344146802,), (1344146849,), (1344146853,), (1344146858,), (1344146862,), (1344146865,), (1344146868,), (1344146917,), (1344146923,), (1344146927,), (1344146928,), (1344146976,), (1344146985,), (1344146988,), (1344146989,), (1344146993,), (1344146997,), (1344147041,), (1344147049,), (1344147058,), (1344147062,), (1344147141,), (1344147146,), (1344147150,), (1344147153,), (1344147157,), (1344147160,), (1344147213,), (1344147193,), (1344147197,), (1344147201,), (1344147205,), (1344147320,), (1344147474,), (1344147529,), (1344147537,), (1344147539,), (1344147542,), (1344147622,), (1344147638,), (1344147646,), (1344147653,), (1344147746,), (1344147759,), (1344147765,), (1344147769,), (1344147771,), (1344147807,), (1344147819,), (1344147823,), (1344147830,), (1344147838,), (1344147900,), (1344147916,), (1344148052,), (1344148059,), (1344148068,), (1344148100,), (1344148108,), (1344148124,), (1344148129,), (1344148133,), (1344148145,), (1344148221,), (1344148224,), (1344148228,), (1344148231,), (1344148340,), (1344148345,), (1344148349,), (1344148362,), (1344148365,), (1344148368,), (1344148566,), (1344148571,), (1344148575,), (1344148579,), (1344148582,), (1344148586,), (1344148615,), (1344148631,), (1344148644,), (1344148647,), (1344148651,), (1344148816,), (1344148896,), (1344148932,), (1344148974,), (1344149024,), (1344149073,), (1344149346,), (1344149378,), (1344149406,), (1344149844,), (1344149860,), (1344149874,), (1344149881,), (1344149883,), (1344149888,), (1344149947,), (1344149926,), (1344149932,), (1344149936,), (1344149942,), (1344150222,), (1344150289,), (1344150360,), (1344150408,), (1344150850,), (1344150917,), (1344151000,), (1344151044,), (1344151060,), (1344151081,), (1344151399,), (1344151416,), (1344151442,), (1344151466,), (1344151836,), (1344151917,), (1344151967,), (1344151996,), (1344152027,), (1344152068,), (1344152467,), (1344152518,), (1344152569,), (1344152596,), (1344152951,), (1344152984,), (1344153020,), (1344153045,), (1344153070,), (1344153109,), (1344153517,), (1344153589,), (1344153625,), (1344153687,), (1344154128,), (1344154166,), (1344154210,), (1344154237,), (1344154258,), (1344154287,), (1344154463,), (1344154468,), (1344154474,), (1344154479,), (1344154828,), (1344154868,), (1344154912,), (1344154933,), (1344154998,), (1344155029,), (1344155327,), (1344155340,), (1344155345,), (1344155350,), (1344155367,), (1344155394,), (1344155582,), (1344155587,), (1344155929,), (1344155981,), (1344156000,), (1344156006,), (1344156023,), (1344156028,), (1344156112,), (1344156115,), (1344156133,), (1344156136,), (1344156285,), (1344156238,), (1344156241,), (1344156243,), (1344156279,), (1344156335,), (1344156347,), (1344156361,), (1344156364,), (1344156366,), (1344156404,), (1344156415,), (1344156418,), (1344156420,), (1344156423,), (1344156523,), (1344156526,), (1344156537,), (1344156548,), (1344156552,), (1344156553,), (1344156612,), (1344156615,), (1344156621,), (1344156672,), (1344156681,), (1344156729,), (1344156736,), (1344156748,), (1344156795,), (1344156800,), (1344156804,), (1344156938,), (1344156961,), (1344156985,), (1344156999,), (1344157001,), (1344157005,), (1344157031,), (1344157036,), (1344157039,), (1344157043,), (1344157046,), (1344157050,), (1344157082,), (1344157085,), (1344157096,), (1344157108,), (1344157116,), (1344157418,), (1344157429,), (1344157433,), (1344157444,), (1344157474,), (1344157480,), (1344157574,), (1344157597,), (1344157607,), (1344157612,), (1344157645,), (1344157651,), (1344157658,), (1344157674,), (1344157683,), (1344157689,), (1344157716,), (1344157723,), (1344157730,), (1344157735,), (1344157738,), (1344157768,), (1344157772,), (1344157799,), (1344157820,), (1344158331,), (1344158078,), (1344158121,), (1344158172,), (1344158197,), (1344158266,), (1344158838,), (1344158865,), (1344158891,), (1344158922,), (1344159142,), (1344159165,), (1344159170,), (1344159174,), (1344159176,), (1344159179,), (1344159334,), (1344159362,), (1344159390,), (1344159702,), (1344159734,), (1344159744,), (1344159749,), (1344159753,), (1344159757,), (1344159872,), (1344159875,), (1344159882,), (1344159888,), (1344159983,), (1344160011,), (1344160048,), (1344160088,), (1344160140,), (1344160160,), (1344160487,), (1344160529,), (1344160602,), (1344160669,), (1344160698,), (1344160724,), (1344160809,), (1344160826,), (1344160831,), (1344160837,), (1344160922,), (1344160943,), (1344161004,), (1344161022,), (1344161046,), (1344161050,), (1344161051,), (1344161066,), (1344161340,), (1344161375,), (1344161411,), (1344161450,), (1344161477,), (1344161792,), (1344161831,), (1344161875,), (1344161897,), (1344161933,), (1344161960,), (1344162220,), (1344162226,), (1344162232,), (1344162284,), (1344162575,), (1344162603,), (1344162622,), (1344162628,), (1344162652,), (1344162654,), (1344162766,), (1344162729,), (1344162735,), (1344162754,), (1344162824,), (1344162856,), (1344162877,), (1344162917,), (1344162948,), (1344162971,), (1344163128,), (1344163149,), (1344163187,), (1344163213,), (1344163247,), (1344163261,), (1344163267,), (1344163271,), (1344163272,), (1344163275,), (1344163319,), (1344163324,), (1344163329,), (1344163342,), (1344163350,), (1344163389,), (1344163409,), (1344163414,), (1344163418,), (1344163423,), (1344163426,), (1344163453,), (1344163471,), (1344163478,), (1344163484,), (1344163487,), (1344163530,), (1344163538,), (1344163544,), (1344163548,), (1344163553,), (1344163605,), (1344163610,), (1344163634,), (1344163772,), (1344163979,), (1344163984,), (1344164004,), (1344164014,), (1344164018,), (1344164024,), (1344164058,), (1344164063,), (1344164071,), (1344164074,), (1344164261,), (1344164278,), (1344164294,), (1344164315,), (1344164338,), (1344164360,), (1344164584,), (1344164617,), (1344164633,), (1344164641,), (1344165072,), (1344165124,), (1344165147,), (1344165174,), (1344165200,), (1344165232,), (1344165355,), (1344165360,), (1344165364,), (1344165407,), (1344165381,), (1344165386,), (1344165389,), (1344165391,), (1344165394,), (1344165651,), (1344165655,), (1344165659,), (1344165662,), (1344165666,), (1344165802,), (1344165841,), (1344165867,), (1344165895,), (1344165915,), (1344166331,), (1344166360,), (1344166390,), (1344166461,), (1344166511,), (1344166556,), (1344166819,), (1344166867,), (1344167025,), (1344167671,), (1344167694,), (1344167722,), (1344167747,), (1344167766,), (1344167792,), (1344168030,), (1344168043,), (1344168045,), (1344168065,), (1344168091,), (1344168536,), (1344168568,), (1344168620,), (1344168660,), (1344168725,), (1344168787,), (1344168927,), (1344168937,), (1344168951,), (1344169098,), (1344169120,), (1344169131,), (1344169137,), (1344169141,), (1344169143,), (1344169360,), (1344169399,), (1344169444,), (1344169518,), (1344169691,), (1344169698,), (1344169702,), (1344169703,), (1344169706,), (1344169710,), (1344169792,), (1344169812,), (1344169822,), (1344169830,), (1344169933,), (1344169939,), (1344169942,), (1344169944,), (1344169948,), (1344169952,), (1344170009,), (1344170012,), (1344170016,), (1344170026,), (1344170371,), (1344170241,), (1344170292,), (1344170304,), (1344170329,), (1344170344,), (1344170589,), (1344170616,), (1344170620,), (1344170622,), (1344170624,), (1344170647,), (1344170651,), (1344170660,), (1344170673,), (1344170702,), (1344170729,), (1344170970,), (1344170996,), (1344171023,), (1344171097,), (1344171119,), (1344171436,), (1344171498,), (1344171539,), (1344171560,), (1344171584,), (1344171837,), (1344171843,), (1344171856,), (1344171858,), (1344171866,), (1344171880,), (1344171978,), (1344171983,), (1344171988,), (1344172001,), (1344172459,), (1344172517,), (1344172584,), (1344172642,), (1344172685,), (1344172736,), (1344173177,), (1344173196,), (1344173200,), (1344173221,), (1344173370,), (1344173380,), (1344173385,), (1344173388,), (1344173390,), (1344173393,), (1344173577,), (1344173622,), (1344173738,), (1344173851,), (1344174014,), (1344174464,), (1344174508,), (1344174557,), (1344174610,), (1344174685,), (1344174704,), (1344174926,), (1344174945,), (1344174959,), (1344174984,), (1344175320,), (1344175325,), (1344175344,), (1344175359,), (1344175360,), (1344175369,), (1344175512,), (1344175551,), (1344175578,), (1344175588,), (1344175746,), (1344175710,), (1344175714,), (1344175729,), (1344175742,), (1344175794,), (1344175800,), (1344175869,), (1344175954,), (1344175976,), (1344176277,), (1344176310,), (1344176365,), (1344176386,), (1344176389,), (1344176398,), (1344176674,), (1344176705,), (1344176726,), (1344176750,), (1344177215,), (1344177237,), (1344177265,), (1344177303,), (1344177355,), (1344177402,), (1344177518,), (1344177533,), (1344177598,), (1344177619,), (1344177641,), (1344178035,), (1344178070,), (1344178088,), (1344178114,), (1344178127,), (1344178148,), (1344178423,), (1344178463,), (1344178507,), (1344178528,), (1344178917,), (1344178923,), (1344178928,), (1344178929,), (1344178930,), (1344178933,), (1344178999,), (1344179034,), (1344179041,), (1344179051,), (1344179464,), (1344179484,), (1344179496,), (1344179536,), (1344179541,), (1344179558,), (1344179795,), (1344179866,), (1344179909,), (1344179920,), (1344180143,), (1344180169,), (1344180196,), (1344180226,), (1344180253,), (1344180281,), (1344180522,), (1344180551,), (1344180585,), (1344180612,), (1344180901,), (1344180972,), (1344180988,), (1344181026,), (1344181049,), (1344181883,), (1344181588,), (1344181642,), (1344181757,), (1344181811,), (1344181858,), (1344182152,), (1344182195,), (1344182225,), (1344182248,), (1344182504,), (1344182512,), (1344182550,), (1344182603,), (1344182647,), (1344182669,), (1344182763,), (1344182769,), (1344182778,), (1344182801,), (1344182930,), (1344182947,), (1344182972,), (1344182988,), (1344182992,), (1344182997,), (1344183052,), (1344183057,), (1344183061,), (1344183063,), (1344183125,), (1344183130,), (1344183136,), (1344183145,), (1344183149,), (1344183322,), (1344183337,), (1344183344,), (1344183349,), (1344183353,), (1344183355,), (1344183383,), (1344183392,), (1344183400,), (1344183406,), (1344183414,), (1344183623,), (1344183630,), (1344183635,), (1344183640,), (1344183645,), (1344183647,), (1344183719,), (1344183725,), (1344183735,), (1344183737,), (1344183738,), (1344183773,), (1344183782,), (1344183801,), (1344183805,), (1344183807,), (1344183824,), (1344183942,), (1344183990,), (1344184065,), (1344184093,), (1344184737,), (1344184777,), (1344184832,), (1344184855,), (1344185485,), (1344185391,), (1344185439,), (1344186034,), (1344186072,), (1344186115,), (1344186152,), (1344186202,), (1344186259,), (1344186486,), (1344186526,), (1344186550,), (1344186575,), (1344186955,), (1344186994,), (1344187038,), (1344187088,), (1344187132,), (1344187568,), (1344187585,), (1344187594,), (1344187596,), (1344187598,), (1344187831,), (1344187856,), (1344187877,), (1344187893,), (1344187912,), (1344188157,), (1344188163,), (1344188165,), (1344188166,), (1344188316,), (1344188318,), (1344188336,), (1344188351,), (1344188376,), (1344188504,), (1344188528,), (1344188537,), (1344188540,), (1344188542,), (1344188547,), (1344188612,), (1344188636,), (1344188684,), (1344188919,), (1344188938,), (1344188941,), (1344188990,), (1344188991,), (1344188994,), (1344189135,), (1344189164,), (1344189191,), (1344189216,), (1344189351,), (1344189372,), (1344189406,), (1344189435,), (1344189460,), (1344189472,), (1344189660,), (1344189684,), (1344189696,), (1344189699,), (1344189774,), (1344189779,), (1344189784,), (1344189788,), (1344189794,), (1344189797,), (1344189890,), (1344189836,), (1344189839,), (1344189842,), (1344189872,), (1344190503,), (1344190566,), (1344190619,), (1344190642,), (1344191167,), (1344191216,), (1344191256,), (1344191284,), (1344191330,), (1344191690,), (1344191715,), (1344191744,), (1344191771,), (1344192255,), (1344192329,), (1344192395,), (1344192437,), (1344192498,), (1344192565,), (1344192726,), (1344192783,), (1344192829,), (1344193318,), (1344193335,), (1344193341,), (1344193350,), (1344193355,), (1344193399,), (1344194004,), (1344194042,), (1344194068,), (1344194122,), (1344194564,), (1344194606,), (1344194612,), (1344194617,), (1344194619,), (1344194622,), (1344194745,), (1344194753,), (1344194756,), (1344194767,), (1344194930,), (1344194932,), (1344194955,), (1344194974,), (1344194976,), (1344194979,), (1344195153,), (1344195203,), (1344195232,), (1344195277,), (1344195324,), (1344195669,), (1344195684,), (1344195724,), (1344195755,), (1344195772,), (1344195907,), (1344195911,), (1344195914,), (1344195915,), (1344195917,), (1344195943,), (1344195947,), (1344195950,), (1344195952,), (1344195953,), (1344196281,), (1344196143,), (1344196191,), (1344196221,), (1344196246,), (1344196674,), (1344196824,), (1344196843,), (1344196874,), (1344196926,), (1344197154,), (1344197184,), (1344197221,), (1344197248,), (1344197274,), (1344197497,), (1344197515,), (1344197553,), (1344197576,), (1344197742,), (1344197760,), (1344197770,), (1344197788,), (1344197799,), (1344197811,), (1344197998,), (1344198015,), (1344198039,), (1344198067,), (1344198352,), (1344198356,), (1344198359,), (1344198361,), (1344198369,), (1344198394,), (1344198577,), (1344198612,), (1344198636,), (1344198667,), (1344199026,), (1344199072,), (1344199109,), (1344199136,), (1344199167,), (1344199177,), (1344199308,), (1344199351,), (1344199375,), (1344199404,), (1344199523,), (1344199641,), (1344199713,), (1344199770,), (1344199820,), (1344199866,), (1344200055,), (1344200092,), (1344200115,), (1344200145,), (1344200467,), (1344200518,), (1344200556,), (1344200582,), (1344200606,), (1344200633,), (1344200822,), (1344200829,), (1344200836,), (1344200839,), (1344200876,), (1344200886,), (1344200891,), (1344200894,), (1344200907,), (1344201235,), (1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,), (1344202978,), (1344202983,), (1344202988,), (1344202994,), (1344202996,), (1344203025,), (1344203172,), (1344203178,), (1344203181,), (1344203184,), (1344203217,), (1344203220,), (1344203223,), (1344203228,), (1344203235,), (1344203248,), (1344203537,), (1344203702,), (1344203744,), (1344203778,), (1344203811,), (1344203838,), (1344203860,), (1344203895,), (1344203935,), (1344204323,), (1344204066,), (1344204135,), (1344204202,), (1344204265,), (1344204937,), (1344205006,), (1344205034,), (1344205088,), (1344205146,), (1344205782,), (1344205862,), (1344205940,), (1344205998,), (1344206027,), (1344206094,), (1344206388,), (1344206428,), (1344206459,), (1344206997,), (1344207022,), (1344207062,), (1344207140,), (1344207212,), (1344207785,), (1344207858,), (1344207914,), (1344207977,), (1344208035,), (1344208777,), (1344208791,), (1344208864,), (1344208902,), (1344209612,), (1344209648,), (1344209722,), (1344209765,), (1344209812,), (1344209858,), (1344210064,), (1344210074,), (1344210105,), (1344210127,), (1344210142,), (1344210371,), (1344210418,), (1344210524,), (1344210550,), (1344210603,), (1344210606,), (1344210855,), (1344210941,), (1344210979,), (1344211004,), (1344211285,), (1344211301,), (1344211306,), (1344211315,), (1344211327,), (1344211358,), (1344211493,), (1344211498,), (1344211503,), (1344211505,), (1344212093,), (1344212184,), (1344212294,), (1344212370,), (1344212434,), (1344212504,), (1344212701,), (1344212723,), (1344212747,), (1344212770,), (1344213192,), (1344213136,), (1344213153,), (1344213158,), (1344213170,), (1344213174,), (1344213356,), (1344213360,), (1344213363,), (1344213367,), (1344213371,), (1344213511,), (1344213517,), (1344213523,), (1344213527,), (1344213529,), (1344213533,), (1344213555,), (1344213563,), (1344213567,), (1344213571,), (1344213632,), (1344213646,), (1344213650,), (1344213652,), (1344213656,), (1344213661,), (1344213898,), (1344213924,), (1344213953,), (1344214008,), (1344214158,), (1344214271,), (1344214501,), (1344214531,), (1344214559,), (1344214887,), (1344214916,), (1344214944,), (1344214964,), (1344214979,), (1344214984,), (1344215194,), (1344215199,), (1344215205,), (1344215214,), (1344215373,), (1344215403,), (1344215435,), (1344215468,), (1344215511,), (1344215621,), (1344215646,), (1344215674,), (1344215682,), (1344215701,), (1344215705,), (1344215733,), (1344215739,), (1344215749,), (1344215813,), (1344215818,), (1344215822,), (1344215824,), (1344215829,), (1344215857,), (1344215861,), (1344215863,), (1344215865,), (1344215867,), (1344215910,), (1344215924,), (1344215927,), (1344215931,), (1344215936,), (1344216548,), (1344220920,), (1344220955,), (1344221011,), (1344221404,), (1344221433,), (1344221460,), (1344221491,), (1344221517,), (1344221547,), (1344221853,), (1344221890,), (1344221946,), (1344222015,), (1344222040,), (1344222358,), (1344222382,), (1344222419,), (1344222453,), (1344222475,), (1344222486,), (1344222608,), (1344222637,), (1344222676,), (1344223146,), (1344223172,), (1344223216,), (1344223317,), (1344223380,), (1344223405,), (1344223824,), (1344223868,), (1344223915,), (1344224438,), (1344224465,), (1344224488,), (1344224494,), (1344224906,), (1344224928,), (1344224936,), (1344224940,), (1344224944,), (1344224964,), (1344225182,), (1344225375,), (1344225420,), (1344225451,), (1344226005,), (1344226019,), (1344226044,), (1344226083,), (1344226119,), (1344226138,), (1344226443,), (1344226522,), (1344226622,), (1344226742,), (1344226828,), (1344226895,), (1344227377,), (1344227416,), (1344227475,), (1344227508,), (1344227772,), (1344227813,), (1344227892,), (1344227967,), (1344227970,), (1344227976,), (1344228371,), (1344228302,), (1344228322,), (1344228685,), (1344228712,), (1344228723,), (1344228733,), (1344228743,), (1344228835,), (1344228839,), (1344228842,), (1344228852,), (1344228935,), (1344228947,), (1344228952,), (1344228953,), (1344228958,), (1344228960,), (1344229127,), (1344229169,), (1344229201,), (1344229211,), (1344229224,), (1344229235,), (1344229313,), (1344229316,), (1344229320,), (1344229324,), (1344229333,), (1344229359,), (1344229363,), (1344229366,), (1344229374,), (1344229384,), (1344229431,), (1344229437,), (1344229440,), (1344229442,), (1344229444,), (1344229604,), (1344229608,), (1344229614,), (1344229622,), (1344229624,), (1344229626,), (1344229668,), (1344229672,), (1344229679,), (1344229687,), (1344229763,), (1344229779,), (1344229788,), (1344229805,), (1344229825,), (1344229836,), (1344229947,), (1344229950,), (1344229955,), (1344229957,), (1344229989,), (1344229997,), (1344230009,), (1344230019,), (1344230028,), (1344230031,), (1344230097,), (1344230108,), (1344230125,), (1344230132,), (1344230137,), (1344230231,), (1344230253,), (1344230275,), (1344230279,), (1344230339,), (1344230327,), (1344230331,), (1344230334,), (1344230337,), (1344230367,), (1344230372,), (1344230374,), (1344230944,), (1344231384,), (1344231387,), (1344231395,), (1344231400,), (1344231424,), (1344231439,), (1344231452,), (1344231510,), (1344231560,), (1344231614,), (1344232142,), (1344232192,), (1344232249,), (1344232315,), (1344232401,), (1344232984,), (1344233028,), (1344233157,), (1344233182,), (1344233232,), (1344233453,), (1344233479,), (1344233529,), (1344233580,), (1344233604,), (1344233624,), (1344233922,), (1344233968,), (1344234004,), (1344234039,), (1344234052,), (1344234267,), (1344234273,), (1344234276,), (1344234284,), (1344234289,), (1344234315,), (1344234336,), (1344234345,), (1344234350,), (1344234355,), (1344234364,), (1344234370,), (1344234410,), (1344234416,), (1344234420,), (1344234424,), (1344234742,), (1344234762,), (1344234771,), (1344234773,), (1344234787,), (1344234808,), (1344234896,), (1344234898,), (1344234899,), (1344234904,), (1344235418,), (1344235220,), (1344235255,), (1344235293,), (1344235340,), (1344235387,), (1344235813,), (1344235845,), (1344235874,), (1344235904,), (1344236235,), (1344236296,), (1344236373,), (1344236453,), (1344236538,), (1344236603,), (1344237005,), (1344237027,), (1344237065,), (1344237109,), (1344237134,), (1344237481,), (1344237545,), (1344237559,), (1344237610,), (1344238076,), (1344238097,), (1344238124,), (1344238184,), (1344238247,), (1344238281,), (1344238709,), (1344238748,), (1344238802,), (1344238845,), (1344239184,), (1344239225,), (1344239232,), (1344239243,), (1344239246,), (1344239247,), (1344239739,), (1344239817,), (1344239863,), (1344239892,), (1344239925,), (1344240232,), (1344240267,), (1344240328,), (1344240378,), (1344240419,), (1344240596,), (1344240609,), (1344240613,), (1344240616,), (1344240642,), (1344240675,), (1344240837,), (1344240844,), (1344240849,), (1344240854,), (1344240993,), (1344241030,), (1344241049,), (1344241100,), (1344241136,), (1344241178,), (1344241807,), (1344241912,), (1344242001,), (1344242130,), (1344242159,), (1344242202,), (1344242337,), (1344242396,), (1344242820,), (1344242700,), (1344242739,), (1344242766,), (1344243215,), (1344243249,), (1344243289,), (1344243321,), (1344243354,), (1344243388,), (1344243619,), (1344243643,), (1344243667,), (1344243691,), (1344243712,), (1344243740,), (1344243774,), (1344243777,), (1344243799,), (1344244221,), (1344244238,), (1344244263,), (1344244284,), (1344244294,), (1344244299,), (1344244585,), (1344244620,), (1344244652,), (1344244683,), (1344245175,), (1344245262,), (1344245301,), (1344245352,), (1344245434,), (1344245471,), (1344245604,), (1344245608,), (1344245621,), (1344245626,), (1344245637,), (1344245644,), (1344245660,), (1344245682,), (1344245703,), (1344245725,), (1344246015,), (1344246055,), (1344246086,), (1344246107,), (1344246127,), (1344246144,), (1344246422,), (1344246467,), (1344246495,), (1344246539,), (1344247043,), (1344247100,), (1344247174,), (1344247219,), (1344247268,), (1344247352,), (1344247788,), (1344247827,), (1344247885,), (1344247936,), (1344247990,), (1344248371,), (1344248395,), (1344248430,), (1344248473,), (1344248508,), (1344248553,), (1344248867,), (1344248869,), (1344248884,), (1344248975,), (1344248988,), (1344248997,), (1344249031,), (1344248826,), (1344248835,), (1344248862,), (1344249133,), (1344249169,), (1344249200,), (1344249243,), (1344249250,), (1344249357,), (1344249363,), (1344249371,), (1344249382,), (1344249390,), (1344249444,), (1344249447,), (1344249448,), (1344249449,), (1344249453,), (1344249700,), (1344249730,), (1344249761,), (1344249789,), (1344249808,), (1344249981,), (1344250011,), (1344250067,), (1344250123,), (1344250184,), (1344250664,), (1344250667,), (1344250671,), (1344250954,), (1344250986,), (1344251034,), (1344251061,), (1344251093,), (1344251123,), (1344251441,), (1344251463,), (1344251467,), (1344251483,), (1344251497,), (1344251658,), (1344251665,), (1344251672,), (1344251679,), (1344251798,), (1344252065,), (1344252112,), (1344252115,), (1344252121,), (1344252260,), (1344252398,), (1344252416,), (1344252440,), (1344252449,), (1344252452,), (1344252571,), (1344252585,), (1344252591,), (1344252594,), (1344252598,), (1344252600,), (1344252751,), (1344252765,), (1344252778,), (1344252784,), (1344252909,), (1344252944,), (1344252960,), (1344252987,), (1344253007,), (1344253065,), (1344253348,), (1344253258,), (1344253285,), (1344253318,), (1344253655,), (1344253700,), (1344253739,), (1344253785,), (1344253822,), (1344253871,), (1344254132,), (1344254176,), (1344254221,), (1344254272,), (1344254497,), (1344254596,), (1344254635,), (1344254685,), (1344254736,), (1344254780,), (1344255002,), (1344255058,), (1344255118,), (1344255173,), (1344255219,), (1344255255,), (1344255574,), (1344255637,), (1344255677,), (1344255733,), (1344255929,), (1344255972,), (1344256021,), (1344256050,), (1344256115,), (1344256147,), (1344256436,), (1344256442,), (1344256451,), (1344256474,), (1344256482,), (1344256869,), (1344256912,), (1344256962,), (1344256998,), (1344257003,), (1344257078,), (1344257353,), (1344257367,), (1344257407,), (1344257433,), (1344257694,), (1344257722,), (1344257747,), (1344257812,), (1344257830,), (1344257857,), (1344257987,), (1344257996,), (1344258007,), (1344258012,), (1344258179,), (1344258264,), (1344258332,), (1344258396,), (1344258457,), (1344258506,), (1344258794,), (1344258852,), (1344258880,), (1344258911,), (1344258942,), (1344259039,), (1344259058,), (1344259083,), (1344259149,), (1344259152,), (1344259423,), (1344259324,), (1344259333,), (1344259345,), (1344259398,), (1344259671,), (1344259700,), (1344259711,), (1344259717,), (1344259719,), (1344259987,), (1344259994,), (1344259996,), (1344260006,), (1344260019,), (1344260051,), (1344260060,), (1344260067,), (1344260071,), (1344260075,), (1344260078,), (1344260133,), (1344260139,), (1344260154,), (1344260159,), (1344260338,), (1344260361,), (1344260382,), (1344260393,), (1344260414,), (1344260428,), (1344260596,), (1344260612,), (1344260647,), (1344260676,), (1344260859,), (1344260864,), (1344260905,), (1344260917,), (1344260938,), (1344260948,), (1344260992,), (1344260997,), (1344261005,), (1344261216,), (1344261242,), (1344261272,), (1344261300,), (1344261323,), (1344261343,), (1344261548,), (1344261557,), (1344261585,), (1344261600,), (1344261619,), (1344261621,), (1344261965,), (1344261983,), (1344261986,), (1344262226,), (1344262248,), (1344262299,), (1344262326,), (1344262354,), (1344262383,), (1344262837,), (1344262897,), (1344262962,), (1344263013,), (1344263135,), (1344263160,), (1344263185,), (1344263220,), (1344263243,), (1344263616,), (1344263471,), (1344263502,), (1344263555,), (1344263583,), (1344263858,), (1344263862,), (1344263865,), (1344264474,), (1344264526,), (1344264533,), (1344264589,), (1344264633,), (1344264657,), (1344264889,), (1344264910,), (1344264931,), (1344264950,), (1344264955,), (1344265108,), (1344265156,), (1344265197,), (1344265258,), (1344265333,), (1344265382,), (1344265684,), (1344265707,), (1344265716,), (1344265741,), (1344265749,), (1344265770,), (1344265880,), (1344265904,), (1344265913,), (1344265915,), (1344266044,), (1344266075,), (1344266108,), (1344266113,), (1344266120,), (1344266123,), (1344266169,), (1344266171,), (1344266174,), (1344266178,), (1344266245,), (1344266251,), (1344266266,), (1344266270,), (1344266275,), (1344266467,), (1344266506,), (1344266582,), (1344266618,), (1344266692,), (1344266775,), (1344266779,), (1344266820,), (1344266832,), (1344266885,), (1344266892,), (1344266897,), (1344266946,), (1344266963,), (1344267380,), (1344267406,), (1344267429,), (1344267445,), (1344267457,), (1344267499,), (1344267701,), (1344267725,), (1344267732,), (1344267754,), (1344268352,), (1344268128,), (1344268152,), (1344268243,), (1344268268,), (1344268307,), (1344268579,), (1344268593,), (1344268628,), (1344268651,), (1344268811,), (1344268816,), (1344268820,), (1344268824,), (1344268826,), (1344268832,), (1344269051,), (1344269066,), (1344269094,), (1344269124,), (1344269166,), (1344269193,), (1344269516,), (1344269540,), (1344269550,), (1344269556,), (1344269632,), (1344269650,), (1344269679,), (1344269697,), (1344269771,), (1344269791,), (1344269802,), (1344269810,), (1344269817,), (1344269845,), (1344269907,), (1344269977,), (1344270046,), (1344270114,), (1344270178,), (1344270187,), (1344270190,), (1344270296,), (1344270323,), (1344270355,), (1344270377,), (1344270407,), (1344270445,), (1344270524,), (1344270548,), (1344270571,), (1344270592,), (1344270595,), (1344270598,), (1344270611,), (1344270612,), (1344270617,), (1344270618,), (1344270621,), (1344270623,), (1344270632,), (1344270634,), (1344270653,), (1344270654,), (1344270682,), (1344270691,), (1344270771,), (1344270773,), (1344270774,), (1344270786,), (1344270803,), (1344270822,), (1344270859,), (1344270941,), (1344270960,), (1344270970,), (1344270985,), (1344271002,), (1344271014,), (1344271038,), (1344271043,), (1344271046,), (1344271048,), (1344271161,), (1344271183,), (1344271203,), (1344271214,), (1344271237,), (1344271245,), (1344271443,), (1344271479,), (1344271604,), (1344271613,), (1344271637,), (1344271949,), (1344271782,), (1344271826,), (1344271881,), (1344271927,), (1344272050,), (1344272064,), (1344272067,), (1344272071,), (1344272085,), (1344272133,), (1344272154,), (1344272190,), (1344272208,), (1344272245,), (1344272297,), (1344272582,), (1344272608,), (1344272624,), (1344272654,), (1344272864,), (1344272869,), (1344272872,), (1344272893,), (1344272909,), (1344273244,), (1344273293,), (1344273370,), (1344273457,), (1344274087,), (1344274123,), (1344274159,), (1344274194,), (1344274241,), (1344274610,), (1344274689,), (1344274711,), (1344274721,), (1344274724,), (1344274727,), (1344274879,), (1344274882,), (1344274885,), (1344274887,), (1344275029,), (1344275045,), (1344275077,), (1344275097,), (1344275099,), (1344275103,), (1344275352,), (1344285805,), (1344285800,), (1344286001,), (1344286007,), (1344286099,), (1344286102,), (1344286104,), (1344286598,), (1344286636,), (1344287026,), (1344287615,), (1344287653,), (1344287998,), (1344288048,), (1344288078,), (1344288124,), (1344288168,), (1344288196,), (1344288503,), (1344288523,), (1344288568,), (1344288609,), (1344288959,), (1344289008,), (1344289062,), (1344289145,), (1344289150,), (1344289342,), (1344289382,), (1344289405,), (1344289429,), (1344290030,), (1344290089,), (1344290138,), (1344290184,), (1344290245,), (1344290663,), (1344290682,), (1344290705,), (1344290726,), (1344290763,), (1344290786,), (1344291027,), (1344291055,), (1344291087,), (1344291100,), (1344291121,), (1344291933,), (1344291755,), (1344291822,), (1344291868,), (1344292738,), (1344292805,), (1344292878,), (1344292926,), (1344292984,), (1344293024,), (1344293224,), (1344293254,), (1344293282,), (1344293305,), (1344293619,), (1344293689,), (1344293745,), (1344293763,), (1344293806,), (1344293863,), (1344294211,), (1344294271,), (1344294304,), (1344294328,), (1344294545,), (1344294554,), (1344294576,), (1344294582,), (1344294603,), (1344294625,), (1344295005,), (1344295044,), (1344295073,), (1344295122,), (1344295163,), (1344295217,), (1344295606,), (1344295661,), (1344295691,), (1344295730,), (1344296341,), (1344296392,), (1344296472,), (1344296517,), (1344296567,), (1344296614,), (1344296683,), (1344296687,), (1344296690,), (1344296694,), (1344296709,), (1344296750,), (1344297074,), (1344297161,), (1344297277,), (1344297394,), (1344297484,), (1344297932,), (1344298086,), (1344298869,), (1344298920,), (1344298979,), (1344298998,), (1344299029,), (1344299075,), (1344299415,), (1344299478,), (1344299548,), (1344300222,), (1344300275,), (1344300309,), (1344300366,), (1344300431,), (1344300493,), (1344300907,), (1344300772,), (1344300809,), (1344300846,), (1344301666,), (1344301707,), (1344301777,), (1344301846,), (1344301911,), (1344301982,), (1344303005,), (1344303095,), (1344303166,), (1344303232,), (1344303320,), (1344303440,), (1344304534,), (1344306274,), (1344306737,), (1344308024,), (1344308028,), (1344308761,), (1344309087,), (1344309090,), (1344309241,), (1344309643,), (1344310102,), (1344310131,), (1344310155,), (1344310496,), (1344310525,), (1344311004,), (1344311267,), (1344311281,), (1344311284,), (1344311293,), (1344312175,), (1344312214,), (1344312426,), (1344312642,), (1344314486,), (1344314518,), (1344316506,), (1344316455,), (1344317257,), (1344318286,), (1344318355,), (1344319428,), (1344320589,), (1344320637,), (1344321575,), (1344321702,), (1344322061,), (1344322215,), (1344322650,), (1344322794,), (1344322804,), (1344322862,), (1344322867,), (1344322953,), (1344322979,), (1344323116,), (1344328041,), (1344329260,), (1344330206,), (1344330212,), (1344330767,), (1344330793,), (1344331333,), (1344331740,), (1344332556,), (1344332607,), (1344333086,), (1344333373,), (1344333381,), (1344333705,), (1344334107,), (1344334146,), (1344334212,), (1344334267,), (1344335120,), (1344335124,), (1344337159,), (1344336805,), (1344337124,), (1344338459,), (1344338798,), (1344339090,), (1344339120,), (1344341120,), (1344341673,), (1344342363,), (1344342425,), (1344345388,), (1344345379,), (1344345730,), (1344349143,), (1344349880,), (1344349920,), (1344350649,), (1344351348,), (1344351477,), (1344352414,), (1344352949,), (1344353443,), (1344353473,), (1344354085,), (1344354555,), (1344354562,), (1344356565,), (1344359672,), (1344361362,), (1344362373,), (1344363005,), (1344363596,), (1344363671,), (1344363903,), (1344364272,), (1344365257,), (1344365567,), (1344365587,), (1344365960,), (1344365963,), (1344366437,), (1344366779,), (1344366803,), (1344366874,), (1344366879,), (1344366975,), (1344367380,), (1344367388,), (1344367414,), (1344368221,), (1344368462,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 11, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21458129]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] map_info['map_portfolio_photo'] : {21458129: [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005]} final : True mtd_id 4302 list_pids : [1344366437, 1344365963, 1344365960, 1344365587, 1344365567, 1344365257, 1344364272, 1344363903, 1344363671, 1344363596, 1344363005] Looping around the photos to save general results len do output : 1 /21458129Didn'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, '2671881') ('4302', '21458129', '1344366437', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881') ('4302', None, None, None, None, None, None, None, '2671881') ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21458129', 'None', None, None, None, None, '2671881'), ('4302', '21458129', '1344366437', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365963', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365960', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365587', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365567', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344365257', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344364272', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363903', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363671', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363596', None, None, None, None, None, '2671881'), ('4302', '21458129', '1344363005', None, None, None, None, None, '2671881')] time used for this insertion : 0.12837934494018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.023066282272339 time spend to save output : 0.12859010696411133 total time spend for step 5 : 7.15165638923645 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 (2671881) 2.40user 2.40system 0:15.84elapsed 30%CPU (0avgtext+0avgdata 160224maxresident)k 1168inputs+9072outputs (21major+74760minor)pagefaults 0swaps