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 : 962503 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 (3226406) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3226406) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359170 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3226406'] with mtr_portfolio_ids : ['24359170'] and first list_photo_ids : [] new path : /proc/962503/ Name: python3 Umask: 0002 State: R (running) Tgid: 962503 Ngid: 0 Pid: 962503 PPid: 962500 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 962503 NSpid: 962503 NSpgid: 962122 NSsid: 962122 VmPeak: 1106876 kB VmSize: 1106876 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98724 kB VmRSS: 98724 kB RssAnon: 59852 kB RssFile: 38872 kB RssShmem: 0 kB VmData: 865628 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 9/63019 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: 53 nonvoluntary_ctxt_switches: 141 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '962503', 'Ngid': '0', 'Pid': '962503', 'PPid': '962500', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '962503', 'NSpid': '962503', 'NSpgid': '962122', 'NSsid': '962122', 'VmPeak': '1106876 kB', 'VmSize': '1106876 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98724 kB', 'VmRSS': '98724 kB', 'RssAnon': '59852 kB', 'RssFile': '38872 kB', 'RssShmem': '0 kB', 'VmData': '865628 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '9/63019', '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': '53', 'nonvoluntary_ctxt_switches': '141'} ('datou_batch_current', '962503', '1106876', '0', '1106876', '865628', '98724', b'', 'marlene', '3226406') 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 (24359170) 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 (3226406 ) ) 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 (24359170) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1368361099, 'portfolio_id': 24359170}, {'photo_id': 1368360805, 'portfolio_id': 24359170}] map_portfolio_id_photo_id: {24359170: [1368361099, 1368360805]} ##### 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.034506797790527344 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 2 15:55:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24359170) 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 : 24359170 get user id for portfolio 24359170 get sub ptf for main ptf 24359170, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'mal_croppe', 'papier', 'environnement', 'metal', 'flou', 'autre_refus', 'plastique', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24359170 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','mal_croppe','papier','environnement','metal','flou','autre_refus','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24359170 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','mal_croppe','papier','environnement','metal','flou','autre_refus','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 24359170, 'sub_port_id': 24359171, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288210, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'kraft': {'main_port_id': 24359170, 'sub_port_id': 24359172, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288211, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'mal_croppe': {'main_port_id': 24359170, 'sub_port_id': 24359173, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288212, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'Carton_gris': {'main_port_id': 24359170, 'sub_port_id': 24359174, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288213, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'autre_refus': {'main_port_id': 24359170, 'sub_port_id': 24359175, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288214, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'Carton_brun': {'main_port_id': 24359170, 'sub_port_id': 24359176, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288215, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'cartonnette': {'main_port_id': 24359170, 'sub_port_id': 24359177, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288216, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'metal': {'main_port_id': 24359170, 'sub_port_id': 24359178, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288217, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'plastique': {'main_port_id': 24359170, 'sub_port_id': 24359179, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288218, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24359170, 'sub_port_id': 24359180, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288219, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'papier': {'main_port_id': 24359170, 'sub_port_id': 24359181, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288220, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}, 'flou': {'main_port_id': 24359170, 'sub_port_id': 24359182, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288221, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24359171 , 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=24359170 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 (24359171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359172 , 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=24359170 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 (24359172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359173 , 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=24359170 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 (24359173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359174 , 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=24359170 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 (24359174) result : ((1369682062,), (1369682063,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359175 , 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=24359170 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 (24359175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359176 , 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=24359170 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 (24359176) result : ((1369682066,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359177 , 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=24359170 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 (24359177) result : ((1369682064,), (1369682065,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359178 , 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=24359170 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 (24359178) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359179 , 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=24359170 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 (24359179) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359180 , 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=24359170 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 (24359180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359181 , 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=24359170 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 (24359181) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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 24359182 , 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=24359170 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 (24359182) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24359170) result : ((1368360805,), (1368361099,)) 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`=24359170 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','mal_croppe','papier','environnement','metal','flou','autre_refus','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24359170 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','mal_croppe','papier','environnement','metal','flou','autre_refus','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 24359170, 'sub_port_id': 24359183, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288222, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'kraft': {'main_port_id': 24359170, 'sub_port_id': 24359184, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288223, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'mal_croppe': {'main_port_id': 24359170, 'sub_port_id': 24359185, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288224, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'Carton_gris': {'main_port_id': 24359170, 'sub_port_id': 24359186, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288225, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'autre_refus': {'main_port_id': 24359170, 'sub_port_id': 24359187, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288226, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'Carton_brun': {'main_port_id': 24359170, 'sub_port_id': 24359188, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288227, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'cartonnette': {'main_port_id': 24359170, 'sub_port_id': 24359189, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288228, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'metal': {'main_port_id': 24359170, 'sub_port_id': 24359190, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288229, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'plastique': {'main_port_id': 24359170, 'sub_port_id': 24359191, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288230, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 24359170, 'sub_port_id': 24359192, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288231, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'papier': {'main_port_id': 24359170, 'sub_port_id': 24359193, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288232, 'last_updated_at': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_desc': datetime.datetime(2025, 6, 26, 20, 59, 2), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}, 'flou': {'main_port_id': 24359170, 'sub_port_id': 24359194, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16288233, 'last_updated_at': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_desc': datetime.datetime(2025, 7, 1, 22, 53, 22), 'last_updated_at_asc': datetime.datetime(2025, 6, 26, 20, 59, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24359194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24359182 lien utilise dans velours : https://www.fotonower.com/velours/24359183,24359184,24359185,24359186,24359187,24359188,24359189,24359190,24359191,24359192,24359193,24359194?tags=environnement,kraft,mal_croppe,Carton_gris,autre_refus,Carton_brun,cartonnette,metal,plastique,Teint_Dans_La_Masse,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24359170]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1368361099, 1368360805] map_info['map_portfolio_photo'] : {24359170: [1368361099, 1368360805]} final : False mtd_id 4302 list_pids : [1368361099, 1368360805] Looping around the photos to save general results len do output : 1 /24359170. 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, '3226406') ('4302', '24359170', '1368361099', None, None, None, None, None, '3226406') ('4302', None, None, None, None, None, None, None, '3226406') ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '24359170', "{'environnement': 24359171, 'kraft': 24359172, 'mal_croppe': 24359173, 'Carton_gris': 24359174, 'autre_refus': 24359175, 'Carton_brun': 24359176, 'cartonnette': 24359177, 'metal': 24359178, 'plastique': 24359179, 'Teint_Dans_La_Masse': 24359180, 'papier': 24359181, 'flou': 24359182}", None, None, None, None, '3226406'), ('4302', '24359170', '1368361099', None, None, None, None, None, '3226406'), ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406')] time used for this insertion : 0.018694639205932617 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.523794412612915 time spend to save output : 0.019029617309570312 total time spend for step 1 : 1.5428240299224854 step2:final Wed Jul 2 15:55:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24359170) 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 24359170 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1368360805,1368361099); 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([24359170]) Inside saveOutput : final : False verbose : True original output for save of step final : {1368361099: ('0.10754064241953595',), 1368360805: ('0.10754064241953595',)} new output for save of step final : {1368361099: ('0.10754064241953595',), 1368360805: ('0.10754064241953595',)} [1368361099, 1368360805] map_info['map_portfolio_photo'] : {24359170: [1368361099, 1368360805]} final : False mtd_id 4302 list_pids : [1368361099, 1368360805] Looping around the photos to save general results len do output : 2 /1368361099.Didn't retrieve data . /1368360805.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, '3226406') ('4302', '24359170', '1368361099', None, None, None, None, None, '3226406') ('4302', None, None, None, None, None, None, None, '3226406') ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '24359170', '1368361099', '0.10754064241953595', None, None, None, None, '3226406'), ('4302', '24359170', '1368360805', '0.10754064241953595', None, None, None, None, '3226406')] time used for this insertion : 0.014559745788574219 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06935453414916992 time spend to save output : 0.014843225479125977 total time spend for step 2 : 0.0841977596282959 step3:velours_tree Wed Jul 2 15:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24359170: [{'environnement': 24359171, 'kraft': 24359172, 'mal_croppe': 24359173, 'Carton_gris': 24359174, 'autre_refus': 24359175, 'Carton_brun': 24359176, 'cartonnette': 24359177, 'metal': 24359178, 'plastique': 24359179, 'Teint_Dans_La_Masse': 24359180, 'papier': 24359181, 'flou': 24359182}]} input_args_next_step : {24359170: ()} output_args : {24359170: [{'environnement': 24359171, 'kraft': 24359172, 'mal_croppe': 24359173, 'Carton_gris': 24359174, 'autre_refus': 24359175, 'Carton_brun': 24359176, 'cartonnette': 24359177, 'metal': 24359178, 'plastique': 24359179, 'Teint_Dans_La_Masse': 24359180, 'papier': 24359181, 'flou': 24359182}]} args : 24359170 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 : ({'environnement': 24359171, 'kraft': 24359172, 'mal_croppe': 24359173, 'Carton_gris': 24359174, 'autre_refus': 24359175, 'Carton_brun': 24359176, 'cartonnette': 24359177, 'metal': 24359178, 'plastique': 24359179, 'Teint_Dans_La_Masse': 24359180, 'papier': 24359181, 'flou': 24359182},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24359170) 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([24359170]) 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.31796956062316895 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.31801486015319824 step4:send_mail_cod Wed Jul 2 15:55:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1368361099: ('0.10754064241953595',), 1368360805: ('0.10754064241953595',)} input_args_next_step : {1368361099: ()} output_args : {1368361099: ('0.10754064241953595',), 1368360805: ('0.10754064241953595',)} args : 1368361099 depend.output_id : 0 input_args_next_step : {1368361099: ('0.10754064241953595',), 1368360805: ()} output_args : {1368361099: ('0.10754064241953595',), 1368360805: ('0.10754064241953595',)} args : 1368360805 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 : {24359170: [{'environnement': 24359171, 'kraft': 24359172, 'mal_croppe': 24359173, 'Carton_gris': 24359174, 'autre_refus': 24359175, 'Carton_brun': 24359176, 'cartonnette': 24359177, 'metal': 24359178, 'plastique': 24359179, 'Teint_Dans_La_Masse': 24359180, 'papier': 24359181, 'flou': 24359182}]} input_args_next_step : {1368361099: ('0.10754064241953595',), 1368360805: ('0.10754064241953595',), 24359170: ()} output_args : {24359170: [{'environnement': 24359171, 'kraft': 24359172, 'mal_croppe': 24359173, 'Carton_gris': 24359174, 'autre_refus': 24359175, 'Carton_brun': 24359176, 'cartonnette': 24359177, 'metal': 24359178, 'plastique': 24359179, 'Teint_Dans_La_Masse': 24359180, 'papier': 24359181, 'flou': 24359182}]} args : 24359170 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 :3, first value : ('0.10754064241953595',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24359170) 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 (1368361099,1368360805) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1368360805 begin to download photo : 1368361099 download finish for photo 1368361099 download finish for photo 1368360805 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette243591721751464530/ imagette243591731751464530/ imagette243591751751464530/ length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P24359170_02-07-2025_15_55_30.pdf 24359172 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=24359172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591721751464530 24359173 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=24359173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591731751464530 24359175 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=24359175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591751751464530 24359177 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=24359177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1369682064: '1751403126_2190546_1368361099_8ea60ee6556dd08606cb77a19900eebc_rle_crop_3865237757_0.png', 1369682065: '1751403126_2190546_1368360805_ae82a1dd225ec842f7a9930c3f286a1f_rle_crop_3865238046_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/1/d35d2ab756b299e676a1c73363fce35e_80441331.png change filename to text .imagette243591771751464530/ imagette243591771751464530/1751403126_2190546_1368361099_8ea60ee6556dd08606cb77a19900eebc_rle_crop_3865237757_0.png.png imagette243591771751464530/1751403126_2190546_1368360805_ae82a1dd225ec842f7a9930c3f286a1f_rle_crop_3865238046_0.png.png imagette243591781751464530/ imagette243591791751464530/ imagette243591821751464530/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/1/0501e0e54876d78faf8bb4d69fee906d_89086247.png imagette243591771751464530 24359178 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=24359178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591781751464530 24359179 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=24359179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591791751464530 24359182 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=24359182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591821751464530 24359174 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=24359174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1369682062: '1751403126_2190546_1368361099_8ea60ee6556dd08606cb77a19900eebc_rle_crop_3865237762_0.png', 1369682063: '1751403126_2190546_1368360805_ae82a1dd225ec842f7a9930c3f286a1f_rle_crop_3865238055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/1/689f4f59a5949f825308b88cd8b979ff_87679757.png change filename to text .imagette243591741751464530/ imagette243591741751464530/1751403126_2190546_1368360805_ae82a1dd225ec842f7a9930c3f286a1f_rle_crop_3865238055_0.png.png imagette243591741751464530/1751403126_2190546_1368361099_8ea60ee6556dd08606cb77a19900eebc_rle_crop_3865237762_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/1/1023667a7674bcab7c273715a3dc18c6_72870059.png imagette243591741751464530 24359176 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=24359176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1369682066: '1751403126_2190546_1368361099_8ea60ee6556dd08606cb77a19900eebc_rle_crop_3865237761_0.png'} change filename to text .imagette243591761751464531/ imagette243591761751464531/1751403126_2190546_1368361099_8ea60ee6556dd08606cb77a19900eebc_rle_crop_3865237761_0.png.png imagette243591801751464531/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/1/7acc9b5a6a61f448111b2971d9f79b88_43387561.png imagette243591761751464531 24359180 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=24359180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette243591801751464531 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24359170 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24359183,24359184,24359185,24359186,24359187,24359188,24359189,24359190,24359191,24359192,24359193,24359194?tags=environnement,kraft,mal_croppe,Carton_gris,autre_refus,Carton_brun,cartonnette,metal,plastique,Teint_Dans_La_Masse,papier,flou your option no_mail is active, we will not send the real mail to your client args[1368361099] : ('0.10754064241953595',) no score found for photo 1368361099 We are sending mail with results at report@fotonower.com args[1368360805] : ('0.10754064241953595',) no score found for photo 1368360805 We are sending mail with results at report@fotonower.com refus_total : 0.10754064241953595 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=24359170 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_P24359170_02-07-2025_15_55_30.pdf results_Auto_P24359170_02-07-2025_15_55_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24359170_02-07-2025_15_55_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24359170','results_Auto_P24359170_02-07-2025_15_55_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24359170_02-07-2025_15_55_30.pdf','pdf','','0.05','0.10754064241953595') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24359170]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1368361099, 1368360805] map_info['map_portfolio_photo'] : {24359170: [1368361099, 1368360805]} final : False mtd_id 4302 list_pids : [1368361099, 1368360805] 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, '3226406') ('4302', '24359170', '1368361099', None, None, None, None, None, '3226406') ('4302', None, None, None, None, None, None, None, '3226406') ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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', '24359170', '1368361099', None, None, None, None, None, '3226406'), ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406')] time used for this insertion : 0.013497114181518555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5921714305877686 time spend to save output : 0.013714790344238281 total time spend for step 4 : 1.6058862209320068 step5:split_time_score Wed Jul 2 15:55:31 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 : ['24359170'] 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 : [('24359170',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24359170) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1368361099: {'path': 'temp/1751464530_962503_1368361099_8ea60ee6556dd08606cb77a19900eebc.jpg', 'extension': 'jpg'}, 1368360805: {'path': 'temp/1751464530_962503_1368360805_ae82a1dd225ec842f7a9930c3f286a1f.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 = 24359170; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24359170 group by h (('20', 2),) 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=24359170 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 (24359170) 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 (24359170) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26062025 24359170 Nombre de photos uploadées : 2 / 23040 (0%) 26062025 24359170 Nombre de photos taguées (types de déchets): 0 / 2 (0%) 26062025 24359170 Nombre de photos taguées (volume) : 0 / 2 (0%) [{'photo_id': 1368360805, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/26/ae82a1dd225ec842f7a9930c3f286a1f.jpg', 'username': None, 'uploaded_at': 1750963687, 'text': 'image_26062025_20_47_24_10137.jpg'}, {'photo_id': 1368361099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/6/26/8ea60ee6556dd08606cb77a19900eebc.jpg', 'username': None, 'uploaded_at': 1750964227, 'text': 'image_26062025_20_56_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ?? elapsed_time : fill_and_build_computed_from_old_data 0.0001823902130126953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24359170, '2025-06-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1924673,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029869556427001953 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= 1924673 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24320895, 'dashboard_result_id': 11922115, '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_P24320895_26-06-2025_06_44_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24320901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24320902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24320903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24320904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24320905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24320906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24320907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24320908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24320909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24320910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24320911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24320912, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24321964, 'dashboard_result_id': 11922116, '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_P24321964_26-06-2025_06_45_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24321966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24321967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24321968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24321969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24321970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24321971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24321972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24321973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24321974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24321975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24321976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24321977, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24322625, 'dashboard_result_id': 11922117, '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_P24322625_26-06-2025_06_46_19.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24322719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24322721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24322722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24322724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24322725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24322726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24322728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24322729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24322730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24322732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24322734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24322735, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24323630, 'dashboard_result_id': 11922118, '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_P24323630_26-06-2025_06_46_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24323693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24323694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24323695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24323697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24323698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24323700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24323701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24323702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24323704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24323705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24323706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24323708, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24326017, 'dashboard_result_id': 11922119, '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_P24326017_26-06-2025_06_47_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24326020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24326021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24326022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24326023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24326024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24326025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24326026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24326027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24326028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24326029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24326030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24326031, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24326575, 'dashboard_result_id': 11922120, '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_P24326575_26-06-2025_06_48_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24326625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24326626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24326627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24326628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24326629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24326630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24326631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24326632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24326633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24326634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24326635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24326636, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24327679, 'dashboard_result_id': 11922121, '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_P24327679_26-06-2025_06_48_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24327680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24327681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24327682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24327683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24327684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24327685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24327686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24327687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24327688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24327689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24327690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24327691, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24328588, 'dashboard_result_id': 11922122, '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_P24328588_26-06-2025_06_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24328589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24328590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24328591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24328592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24328593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24328594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24328595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24328596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24328597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24328598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24328599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24328600, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24329205, 'dashboard_result_id': 11922123, '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_P24329205_26-06-2025_06_50_49.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329217, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24329381, 'dashboard_result_id': 11922124, '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_P24329381_26-06-2025_06_51_49.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329396, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24329701, 'dashboard_result_id': 11922125, '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_P24329701_26-06-2025_06_52_23.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329739, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24330228, 'dashboard_result_id': 11922126, '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_P24330228_26-06-2025_06_08_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24330256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24330257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24330258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24330259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24330260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24330261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24330262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24330263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24330264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24330265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24330266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24330267, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24330687, 'dashboard_result_id': 11922127, '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_P24330687_26-06-2025_06_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24330732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24330733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24330734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24330735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24330736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24330737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24330738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24330739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24330740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24330741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24330742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24330743, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24331579, 'dashboard_result_id': 11922128, '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_P24331579_26-06-2025_06_33_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24331608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24331609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24331610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24331611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24331612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24331613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24331614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24331615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24331616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24331617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24331618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24331619, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24331988, 'dashboard_result_id': 11922129, '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_P24331988_26-06-2025_06_49_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24331992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24331993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24331994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24331995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24331996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24331997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24331998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24331999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332003, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24332443, 'dashboard_result_id': 11922130, '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_P24332443_26-06-2025_07_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24332463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24332464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24332465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24332468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24332470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24332472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24332474, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24332898, 'dashboard_result_id': 11922131, '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_P24332898_26-06-2025_07_17_49.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24332949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24332950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24332951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24332954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24332955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24332956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24332957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24332958, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24333898, 'dashboard_result_id': 11922132, '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_P24333898_26-06-2025_07_35_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24333900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24333901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24333902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24333903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24333904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24333905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24333906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24333907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24333909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24333910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24333911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24333912, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24334949, 'dashboard_result_id': 11922133, '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_P24334949_26-06-2025_07_49_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24334978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24334979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24334980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24334981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24334982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24334983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24334984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24334985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24334986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24334987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24334988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24334989, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24335536, 'dashboard_result_id': 11922134, '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_P24335536_26-06-2025_08_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24335576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24335577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24335578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24335579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24335580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24335581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24335582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24335583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24335584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24335585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24335586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24335587, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24336035, 'dashboard_result_id': 11922135, '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_P24336035_26-06-2025_08_17_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24336104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24336105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24336106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24336107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24336108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24336109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24336110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24336111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24336112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24336113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24336114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24336115, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24336842, 'dashboard_result_id': 11922136, '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_P24336842_26-06-2025_08_33_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24336846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24336847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24336848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24336849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24336850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24336851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24336852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24336853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24336854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24336855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24336856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24336857, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24337439, 'dashboard_result_id': 11922137, '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_P24337439_26-06-2025_08_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24337447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24337448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24337449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24337450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24337451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24337452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24337453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24337454, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24337455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24337456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24337457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24337458, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24338006, 'dashboard_result_id': 11922138, '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_P24338006_26-06-2025_09_03_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24338036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24338037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24338038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24338039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24338040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24338041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24338042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24338043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24338044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24338045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24338046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24338047, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24338603, 'dashboard_result_id': 11922139, '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_P24338603_26-06-2025_12_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24338643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24338644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24338645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24338646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24338647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24338648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24338649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24338650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24338651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24338652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24338653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24338654, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24343437, 'dashboard_result_id': 11922140, '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_P24343437_26-06-2025_14_05_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24343451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24343452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24343453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24343455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24343456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24343457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24343458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24343459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24343460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24343461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24343462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24343463, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24343807, 'dashboard_result_id': 11922141, '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_P24343807_26-06-2025_14_19_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24343809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24343810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24343811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24343812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24343813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24343814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24343815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24343816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24343817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24343818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24343819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24343820, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24344313, 'dashboard_result_id': 11922142, '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_P24344313_26-06-2025_14_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24344344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24344345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24344346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24344347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24344348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24344349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24344350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24344351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24344352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24344353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24344354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24344355, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24345125, 'dashboard_result_id': 11922143, '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_P24345125_26-06-2025_14_52_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24345138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24345139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24345140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24345142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24345144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24345146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24345148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24345150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24345152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24345153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24345155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24345157, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24346327, 'dashboard_result_id': 11922144, '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_P24346327_27-06-2025_15_02_13.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24346425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24346426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24346427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24346428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24346429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24346430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24346431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24346432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24346433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24346434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24346435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24346436, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24346993, 'dashboard_result_id': 11922145, '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_P24346993_26-06-2025_15_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24347006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24347007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24347008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24347009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24347010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24347011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24347012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24347013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24347014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24347015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24347016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24347017, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24348029, 'dashboard_result_id': 11922146, '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_P24348029_26-06-2025_15_36_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24348087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24348088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24348089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24348090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24348091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24348092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24348093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24348094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24348095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24348096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24348097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24348098, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24348626, 'dashboard_result_id': 11922147, '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_P24348626_26-06-2025_15_51_21.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24348667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24348669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24348670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24348671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24348672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24348673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24348675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24348676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24348677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24348678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24348679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24348680, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24349321, 'dashboard_result_id': 11922148, '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_P24349321_27-06-2025_15_01_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24349338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24349339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24349340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24349341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24349342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24349343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24349344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24349345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24349346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24349347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24349348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24349349, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24349543, 'dashboard_result_id': 11922150, '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_P24349543_26-06-2025_16_17_21.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24349571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24349572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24349573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24349574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24349575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24349576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24349577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24349578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24349579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24349580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24349581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24349582, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24350137, 'dashboard_result_id': 11922151, '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_P24350137_26-06-2025_16_33_19.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24350150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24350151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24350152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24350153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24350154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24350155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24350156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24350157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24350158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24350159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24350160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24350161, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24350708, 'dashboard_result_id': 11922152, '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_P24350708_26-06-2025_16_47_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24350742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24350743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24350744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24350745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24350746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24350747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24350748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24350749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24350750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24350751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24350752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24350753, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24351178, 'dashboard_result_id': 11922153, '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_P24351178_26-06-2025_17_03_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24351215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24351216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24351217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24351218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24351219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24351220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24351221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24351222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24351223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24351224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24351225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24351226, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24351692, 'dashboard_result_id': 11922154, '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_P24351692_26-06-2025_17_19_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24351699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24351700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24351701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24351702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24351703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24351704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24351705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24351706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24351707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24351708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24351709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24351710, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24352209, 'dashboard_result_id': 11922155, '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_P24352209_26-06-2025_17_33_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24352223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24352224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24352225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24352226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24352227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24352228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24352229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24352230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24352231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24352232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24352233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24352234, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24353677, 'dashboard_result_id': 11922157, '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_P24353677_26-06-2025_18_19_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24353684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24353685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24353686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24353687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24353688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24353689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24353692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24353693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24353694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24353695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24353696, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24354465, 'dashboard_result_id': 11922158, '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_P24354465_26-06-2025_18_33_17.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24354499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24354500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24354501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24354502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24354503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24354504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24354505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24354506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24354507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24354508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24354509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24354510, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24354897, 'dashboard_result_id': 11922159, '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_P24354897_26-06-2025_18_50_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24354901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24354902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24354903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24354904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24354905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24354906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24354907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24354908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24354909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24354910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24354911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24354912, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24355457, 'dashboard_result_id': 11922160, '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_P24355457_26-06-2025_19_03_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24355460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24355461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24355462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24355463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24355464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24355465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24355466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24355467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24355468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24355469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24355470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24355471, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24355873, 'dashboard_result_id': 11922161, '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_P24355873_26-06-2025_19_17_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24355876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24355877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24355878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24355879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24355880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24355881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24355882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24355883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24355884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24355885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24355886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24355887, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24356384, 'dashboard_result_id': 11922162, '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_P24356384_26-06-2025_19_33_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24356412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24356413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24356414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24356415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24356416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24356417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24356418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24356419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24356420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24356421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24356422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24356423, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24356859, 'dashboard_result_id': 11922163, '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_P24356859_26-06-2025_19_49_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24356897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24356898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24356899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24356900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24356901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24356902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24356903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24356904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24356905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24356906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24356907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24356908, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24357379, 'dashboard_result_id': 11922164, '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_P24357379_26-06-2025_20_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24357412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24357413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24357414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24357415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24357416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24357417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24357418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24357419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24357420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24357421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24357423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24357424, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24357913, 'dashboard_result_id': 11922165, '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_P24357913_26-06-2025_20_27_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24357951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24357952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24357953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24357954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24357955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24357956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24357957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24357958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24357959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24357960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24357961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24357962, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24358526, 'dashboard_result_id': 11922166, '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_P24358526_26-06-2025_20_33_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24358528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24358529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24358530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24358531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24358532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24358533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24358534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24358535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24358536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24358537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24358538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24358539, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24358622, 'dashboard_result_id': 11922167, '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_P24358622_26-06-2025_21_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24358662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24358663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24358664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24358665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24358666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24358667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24358668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24358669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24358670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24358671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24358672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24358673, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24359170, 'dashboard_result_id': 11922168, '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_P24359170_26-06-2025_20_59_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24359171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24359172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24359173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24359174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24359175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24359176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24359177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24359178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24359179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24359180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24359181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24359182, 'pht': 3726}}"}, {'dashboat_entry_day': 1924673, 'dashboard_run_id': 1935537, 'mtr_portfolio_id': 24359290, 'dashboard_result_id': 11922170, '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_P24359290_26-06-2025_21_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24359295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24359296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24359297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24359298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24359299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24359300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24359301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24359302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24359303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24359304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24359305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24359306, '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 = 24320895 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': 3197408, 'mtr_portfolio_id': 24320895, 'created_at': datetime.datetime(2025, 6, 26, 6, 44, 34), 'result': '0.0431676693264391', 'result_long': None, 'result_double': None}] Qualite : 0.0431676693264391 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24320895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24320895_26-06-2025_06_44_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24320895 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_P24320895_26-06-2025_06_44_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24320901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24320902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24320903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24320904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24320905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24320906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24320907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24320908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24320909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24320910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24320911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24320912, 'pht': 3726}}" where mtr_portfolio_id = 24320895 and dashboard_run_id = 1935537 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`=24320895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922115, 0.0431676693264391, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24320895_26-06-2025_06_44_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24320901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24320902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24320903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24320904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24320905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24320906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24320907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24320908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24320909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24320910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24320911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24320912, '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 = 24321964 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': 3197409, 'mtr_portfolio_id': 24321964, 'created_at': datetime.datetime(2025, 6, 26, 6, 45, 31), 'result': '0.041881740678755615', 'result_long': None, 'result_double': None}] Qualite : 0.041881740678755615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24321964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24321964_26-06-2025_06_45_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24321964 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_P24321964_26-06-2025_06_45_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24321966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24321967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24321968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24321969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24321970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24321971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24321972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24321973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24321974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24321975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24321976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24321977, 'pht': 3726}}" where mtr_portfolio_id = 24321964 and dashboard_run_id = 1935537 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`=24321964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922116, 0.041881740678755615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24321964_26-06-2025_06_45_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24321966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24321967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24321968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24321969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24321970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24321971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24321972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24321973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24321974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24321975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24321976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24321977, '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 = 24322625 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': 3197410, 'mtr_portfolio_id': 24322625, 'created_at': datetime.datetime(2025, 6, 26, 6, 46, 7), 'result': '0.05188805664079955', 'result_long': None, 'result_double': None}] Qualite : 0.05188805664079955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24322625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24322625_26-06-2025_06_46_19.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24322625 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_P24322625_26-06-2025_06_46_19.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24322719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24322721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24322722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24322724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24322725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24322726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24322728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24322729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24322730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24322732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24322734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24322735, 'pht': 3726}}" where mtr_portfolio_id = 24322625 and dashboard_run_id = 1935537 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`=24322625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922117, 0.05188805664079955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24322625_26-06-2025_06_46_19.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24322719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24322721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24322722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24322724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24322725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24322726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24322728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24322729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24322730, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24322732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24322734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24322735, '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 = 24323630 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': 3197411, 'mtr_portfolio_id': 24323630, 'created_at': datetime.datetime(2025, 6, 26, 6, 46, 37), 'result': '0.07168488687845798', 'result_long': None, 'result_double': None}] Qualite : 0.07168488687845798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24323630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24323630_26-06-2025_06_46_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24323630 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_P24323630_26-06-2025_06_46_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24323693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24323694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24323695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24323697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24323698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24323700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24323701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24323702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24323704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24323705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24323706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24323708, 'pht': 3726}}" where mtr_portfolio_id = 24323630 and dashboard_run_id = 1935537 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`=24323630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922118, 0.07168488687845798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24323630_26-06-2025_06_46_40.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24323693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24323694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24323695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24323697, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24323698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24323700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24323701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24323702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24323704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24323705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24323706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24323708, '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 = 24326017 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': 3197412, 'mtr_portfolio_id': 24326017, 'created_at': datetime.datetime(2025, 6, 26, 6, 47, 32), 'result': '0.02888704651704318', 'result_long': None, 'result_double': None}] Qualite : 0.02888704651704318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24326017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24326017_26-06-2025_06_47_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24326017 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_P24326017_26-06-2025_06_47_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24326020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24326021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24326022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24326023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24326024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24326025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24326026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24326027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24326028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24326029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24326030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24326031, 'pht': 3726}}" where mtr_portfolio_id = 24326017 and dashboard_run_id = 1935537 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`=24326017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922119, 0.02888704651704318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24326017_26-06-2025_06_47_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24326020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24326021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24326022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24326023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24326024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24326025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24326026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24326027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24326028, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24326029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24326030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24326031, '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 = 24326575 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': 3197413, 'mtr_portfolio_id': 24326575, 'created_at': datetime.datetime(2025, 6, 26, 6, 48), 'result': '0.01675604449718903', 'result_long': None, 'result_double': None}] Qualite : 0.01675604449718903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24326575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24326575_26-06-2025_06_48_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24326575 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_P24326575_26-06-2025_06_48_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24326625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24326626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24326627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24326628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24326629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24326630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24326631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24326632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24326633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24326634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24326635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24326636, 'pht': 3726}}" where mtr_portfolio_id = 24326575 and dashboard_run_id = 1935537 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`=24326575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922120, 0.01675604449718903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24326575_26-06-2025_06_48_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24326625, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24326626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24326627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24326628, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24326629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24326630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24326631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24326632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24326633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24326634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24326635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24326636, '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 = 24327679 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': 3197414, 'mtr_portfolio_id': 24327679, 'created_at': datetime.datetime(2025, 6, 26, 6, 48, 32), 'result': '0.04919370832334424', 'result_long': None, 'result_double': None}] Qualite : 0.04919370832334424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24327679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24327679_26-06-2025_06_48_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24327679 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_P24327679_26-06-2025_06_48_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24327680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24327681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24327682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24327683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24327684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24327685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24327686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24327687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24327688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24327689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24327690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24327691, 'pht': 3726}}" where mtr_portfolio_id = 24327679 and dashboard_run_id = 1935537 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`=24327679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922121, 0.04919370832334424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24327679_26-06-2025_06_48_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24327680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24327681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24327682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24327683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24327684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24327685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24327686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24327687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24327688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24327689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24327690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24327691, '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 = 24328588 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': 3197415, 'mtr_portfolio_id': 24328588, 'created_at': datetime.datetime(2025, 6, 26, 6, 49, 59), 'result': '0.05050787849545254', 'result_long': None, 'result_double': None}] Qualite : 0.05050787849545254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24328588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24328588_26-06-2025_06_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24328588 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_P24328588_26-06-2025_06_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24328589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24328590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24328591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24328592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24328593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24328594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24328595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24328596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24328597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24328598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24328599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24328600, 'pht': 3726}}" where mtr_portfolio_id = 24328588 and dashboard_run_id = 1935537 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`=24328588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922122, 0.05050787849545254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24328588_26-06-2025_06_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24328589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24328590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24328591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24328592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24328593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24328594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24328595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24328596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24328597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24328598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24328599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24328600, '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 = 24329205 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': 3197416, 'mtr_portfolio_id': 24329205, 'created_at': datetime.datetime(2025, 6, 26, 6, 50, 41), 'result': '0.060247364637092474', 'result_long': None, 'result_double': None}] Qualite : 0.060247364637092474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24329205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24329205_26-06-2025_06_50_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24329205 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_P24329205_26-06-2025_06_50_49.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329217, 'pht': 3726}}" where mtr_portfolio_id = 24329205 and dashboard_run_id = 1935537 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`=24329205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922123, 0.060247364637092474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24329205_26-06-2025_06_50_49.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329207, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329217, '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 = 24329381 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': 3197417, 'mtr_portfolio_id': 24329381, 'created_at': datetime.datetime(2025, 6, 26, 6, 51, 32), 'result': '0.03980692276075086', 'result_long': None, 'result_double': None}] Qualite : 0.03980692276075086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24329381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24329381_26-06-2025_06_51_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24329381 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_P24329381_26-06-2025_06_51_49.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329396, 'pht': 3726}}" where mtr_portfolio_id = 24329381 and dashboard_run_id = 1935537 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`=24329381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922124, 0.03980692276075086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24329381_26-06-2025_06_51_49.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329386, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329396, '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 = 24329701 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': 3197418, 'mtr_portfolio_id': 24329701, 'created_at': datetime.datetime(2025, 6, 26, 6, 52, 5), 'result': '0.04571933406476898', 'result_long': None, 'result_double': None}] Qualite : 0.04571933406476898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24329701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24329701_26-06-2025_06_52_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24329701 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_P24329701_26-06-2025_06_52_23.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329739, 'pht': 3726}}" where mtr_portfolio_id = 24329701 and dashboard_run_id = 1935537 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`=24329701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922125, 0.04571933406476898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24329701_26-06-2025_06_52_23.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24329728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24329729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24329730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24329731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24329732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24329733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24329734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24329735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24329736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24329737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24329738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24329739, '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 = 24330228 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': 3197511, 'mtr_portfolio_id': 24330228, 'created_at': datetime.datetime(2025, 6, 26, 6, 8, 27), 'result': '0.04263673382437222', 'result_long': None, 'result_double': None}] Qualite : 0.04263673382437222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24330228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24330228_26-06-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24330228 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_P24330228_26-06-2025_06_08_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24330256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24330257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24330258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24330259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24330260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24330261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24330262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24330263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24330264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24330265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24330266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24330267, 'pht': 3726}}" where mtr_portfolio_id = 24330228 and dashboard_run_id = 1935537 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`=24330228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922126, 0.04263673382437222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24330228_26-06-2025_06_08_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24330256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24330257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24330258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24330259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24330260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24330261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24330262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24330263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24330264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24330265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24330266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24330267, '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 = 24330687 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': 3197581, 'mtr_portfolio_id': 24330687, 'created_at': datetime.datetime(2025, 6, 26, 6, 21), 'result': '0.03904466890570191', 'result_long': None, 'result_double': None}] Qualite : 0.03904466890570191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24330687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24330687_26-06-2025_06_21_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24330687 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_P24330687_26-06-2025_06_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24330732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24330733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24330734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24330735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24330736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24330737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24330738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24330739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24330740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24330741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24330742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24330743, 'pht': 3726}}" where mtr_portfolio_id = 24330687 and dashboard_run_id = 1935537 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`=24330687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922127, 0.03904466890570191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24330687_26-06-2025_06_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24330732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24330733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24330734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24330735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24330736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24330737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24330738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24330739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24330740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24330741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24330742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24330743, '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 = 24331579 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': 3197642, 'mtr_portfolio_id': 24331579, 'created_at': datetime.datetime(2025, 6, 26, 6, 33, 30), 'result': '0.03345439124096407', 'result_long': None, 'result_double': None}] Qualite : 0.03345439124096407 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24331579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24331579_26-06-2025_06_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24331579 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_P24331579_26-06-2025_06_33_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24331608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24331609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24331610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24331611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24331612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24331613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24331614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24331615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24331616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24331617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24331618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24331619, 'pht': 3726}}" where mtr_portfolio_id = 24331579 and dashboard_run_id = 1935537 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`=24331579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922128, 0.03345439124096407, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24331579_26-06-2025_06_33_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24331608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24331609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24331610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24331611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24331612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24331613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24331614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24331615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24331616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24331617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24331618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24331619, '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 = 24331988 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': 3197696, 'mtr_portfolio_id': 24331988, 'created_at': datetime.datetime(2025, 6, 26, 6, 49, 32), 'result': '0.025085238319739897', 'result_long': None, 'result_double': None}] Qualite : 0.025085238319739897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24331988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24331988_26-06-2025_06_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24331988 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_P24331988_26-06-2025_06_49_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24331992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24331993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24331994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24331995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24331996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24331997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24331998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24331999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332003, 'pht': 3726}}" where mtr_portfolio_id = 24331988 and dashboard_run_id = 1935537 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`=24331988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922129, 0.025085238319739897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24331988_26-06-2025_06_49_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24331992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24331993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24331994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24331995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24331996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24331997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24331998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24331999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332003, '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 = 24332443 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': 3197776, 'mtr_portfolio_id': 24332443, 'created_at': datetime.datetime(2025, 6, 26, 7, 2, 58), 'result': '0.04831482322714569', 'result_long': None, 'result_double': None}] Qualite : 0.04831482322714569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24332443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24332443_26-06-2025_07_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24332443 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_P24332443_26-06-2025_07_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24332463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24332464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24332465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24332468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24332470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24332472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24332474, 'pht': 3726}}" where mtr_portfolio_id = 24332443 and dashboard_run_id = 1935537 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`=24332443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922130, 0.04831482322714569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24332443_26-06-2025_07_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24332463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24332464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24332465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24332468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24332470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24332472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24332474, '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 = 24332898 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': 3197872, 'mtr_portfolio_id': 24332898, 'created_at': datetime.datetime(2025, 6, 26, 7, 17, 46), 'result': '0.0655473534847884', 'result_long': None, 'result_double': None}] Qualite : 0.0655473534847884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24332898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24332898_26-06-2025_07_17_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24332898 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_P24332898_26-06-2025_07_17_49.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24332949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24332950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24332951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24332954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24332955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24332956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24332957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24332958, 'pht': 3726}}" where mtr_portfolio_id = 24332898 and dashboard_run_id = 1935537 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`=24332898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922131, 0.0655473534847884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24332898_26-06-2025_07_17_49.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24332945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24332948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24332949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24332950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24332951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24332952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24332953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24332954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24332955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24332956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24332957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24332958, '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 = 24333898 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': 3198035, 'mtr_portfolio_id': 24333898, 'created_at': datetime.datetime(2025, 6, 26, 7, 35, 28), 'result': '0.039919456503591924', 'result_long': None, 'result_double': None}] Qualite : 0.039919456503591924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24333898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24333898_26-06-2025_07_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24333898 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_P24333898_26-06-2025_07_35_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24333900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24333901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24333902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24333903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24333904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24333905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24333906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24333907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24333909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24333910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24333911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24333912, 'pht': 3726}}" where mtr_portfolio_id = 24333898 and dashboard_run_id = 1935537 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`=24333898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922132, 0.039919456503591924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24333898_26-06-2025_07_35_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24333900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24333901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24333902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24333903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24333904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24333905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24333906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24333907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24333909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24333910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24333911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24333912, '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 = 24334949 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': 3198161, 'mtr_portfolio_id': 24334949, 'created_at': datetime.datetime(2025, 6, 26, 7, 49, 7), 'result': '0.06048489556250929', 'result_long': None, 'result_double': None}] Qualite : 0.06048489556250929 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24334949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24334949_26-06-2025_07_49_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24334949 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_P24334949_26-06-2025_07_49_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24334978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24334979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24334980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24334981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24334982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24334983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24334984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24334985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24334986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24334987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24334988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24334989, 'pht': 3726}}" where mtr_portfolio_id = 24334949 and dashboard_run_id = 1935537 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`=24334949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922133, 0.06048489556250929, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24334949_26-06-2025_07_49_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24334978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24334979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24334980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24334981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24334982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24334983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24334984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24334985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24334986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24334987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24334988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24334989, '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 = 24335536 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': 3198239, 'mtr_portfolio_id': 24335536, 'created_at': datetime.datetime(2025, 6, 26, 8, 2, 58), 'result': '0.02866300650034065', 'result_long': None, 'result_double': None}] Qualite : 0.02866300650034065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24335536 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24335536_26-06-2025_08_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24335536 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_P24335536_26-06-2025_08_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24335576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24335577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24335578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24335579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24335580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24335581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24335582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24335583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24335584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24335585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24335586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24335587, 'pht': 3726}}" where mtr_portfolio_id = 24335536 and dashboard_run_id = 1935537 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`=24335536 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922134, 0.02866300650034065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24335536_26-06-2025_08_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24335576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24335577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24335578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24335579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24335580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24335581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24335582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24335583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24335584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24335585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24335586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24335587, '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 = 24336035 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': 3198314, 'mtr_portfolio_id': 24336035, 'created_at': datetime.datetime(2025, 6, 26, 8, 16, 59), 'result': '0.0419179388150222', 'result_long': None, 'result_double': None}] Qualite : 0.0419179388150222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24336035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24336035_26-06-2025_08_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24336035 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_P24336035_26-06-2025_08_17_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24336104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24336105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24336106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24336107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24336108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24336109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24336110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24336111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24336112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24336113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24336114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24336115, 'pht': 3726}}" where mtr_portfolio_id = 24336035 and dashboard_run_id = 1935537 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`=24336035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922135, 0.0419179388150222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24336035_26-06-2025_08_17_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24336104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24336105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24336106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24336107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24336108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24336109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24336110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24336111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24336112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24336113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24336114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24336115, '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 = 24336842 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': 3198405, 'mtr_portfolio_id': 24336842, 'created_at': datetime.datetime(2025, 6, 26, 8, 33, 2), 'result': '0.03363498216258234', 'result_long': None, 'result_double': None}] Qualite : 0.03363498216258234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24336842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24336842_26-06-2025_08_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24336842 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_P24336842_26-06-2025_08_33_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24336846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24336847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24336848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24336849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24336850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24336851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24336852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24336853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24336854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24336855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24336856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24336857, 'pht': 3726}}" where mtr_portfolio_id = 24336842 and dashboard_run_id = 1935537 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`=24336842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922136, 0.03363498216258234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24336842_26-06-2025_08_33_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24336846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24336847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24336848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24336849, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24336850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24336851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24336852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24336853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24336854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24336855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24336856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24336857, '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 = 24337439 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': 3198481, 'mtr_portfolio_id': 24337439, 'created_at': datetime.datetime(2025, 6, 26, 8, 48, 52), 'result': '0.04950043530764854', 'result_long': None, 'result_double': None}] Qualite : 0.04950043530764854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24337439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24337439_26-06-2025_08_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24337439 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_P24337439_26-06-2025_08_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24337447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24337448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24337449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24337450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24337451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24337452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24337453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24337454, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24337455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24337456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24337457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24337458, 'pht': 3726}}" where mtr_portfolio_id = 24337439 and dashboard_run_id = 1935537 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`=24337439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922137, 0.04950043530764854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24337439_26-06-2025_08_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24337447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24337448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24337449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24337450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24337451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24337452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24337453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24337454, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24337455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24337456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24337457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24337458, '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 = 24338006 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': 3198558, 'mtr_portfolio_id': 24338006, 'created_at': datetime.datetime(2025, 6, 26, 9, 3, 2), 'result': '0.047457751091265814', 'result_long': None, 'result_double': None}] Qualite : 0.047457751091265814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24338006 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24338006_26-06-2025_09_03_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24338006 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_P24338006_26-06-2025_09_03_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24338036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24338037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24338038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24338039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24338040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24338041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24338042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24338043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24338044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24338045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24338046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24338047, 'pht': 3726}}" where mtr_portfolio_id = 24338006 and dashboard_run_id = 1935537 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`=24338006 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922138, 0.047457751091265814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24338006_26-06-2025_09_03_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24338036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24338037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24338038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24338039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24338040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24338041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24338042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24338043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24338044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24338045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24338046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24338047, '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 = 24338603 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': 3198641, 'mtr_portfolio_id': 24338603, 'created_at': datetime.datetime(2025, 6, 26, 12, 0, 59), 'result': '0.03474837100946227', 'result_long': None, 'result_double': None}] Qualite : 0.03474837100946227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24338603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24338603_26-06-2025_12_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24338603 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_P24338603_26-06-2025_12_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24338643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24338644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24338645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24338646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24338647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24338648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24338649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24338650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24338651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24338652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24338653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24338654, 'pht': 3726}}" where mtr_portfolio_id = 24338603 and dashboard_run_id = 1935537 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`=24338603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922139, 0.03474837100946227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24338603_26-06-2025_12_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24338643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24338644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24338645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24338646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24338647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24338648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24338649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24338650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24338651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24338652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24338653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24338654, '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 = 24343437 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': 3199551, 'mtr_portfolio_id': 24343437, 'created_at': datetime.datetime(2025, 6, 26, 14, 5, 5), 'result': '0.04032400969476905', 'result_long': None, 'result_double': None}] Qualite : 0.04032400969476905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24343437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24343437_26-06-2025_14_05_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24343437 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_P24343437_26-06-2025_14_05_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24343451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24343452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24343453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24343455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24343456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24343457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24343458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24343459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24343460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24343461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24343462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24343463, 'pht': 3726}}" where mtr_portfolio_id = 24343437 and dashboard_run_id = 1935537 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`=24343437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922140, 0.04032400969476905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24343437_26-06-2025_14_05_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24343451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24343452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24343453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24343455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24343456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24343457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24343458, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24343459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24343460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24343461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24343462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24343463, '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 = 24343807 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': 3199590, 'mtr_portfolio_id': 24343807, 'created_at': datetime.datetime(2025, 6, 26, 14, 19, 48), 'result': '0.04838172237164869', 'result_long': None, 'result_double': None}] Qualite : 0.04838172237164869 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24343807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24343807_26-06-2025_14_19_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24343807 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_P24343807_26-06-2025_14_19_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24343809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24343810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24343811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24343812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24343813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24343814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24343815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24343816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24343817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24343818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24343819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24343820, 'pht': 3726}}" where mtr_portfolio_id = 24343807 and dashboard_run_id = 1935537 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`=24343807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922141, 0.04838172237164869, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24343807_26-06-2025_14_19_51.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24343809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24343810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24343811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24343812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24343813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24343814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24343815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24343816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24343817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24343818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24343819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24343820, '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 = 24344313 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': 3199645, 'mtr_portfolio_id': 24344313, 'created_at': datetime.datetime(2025, 6, 26, 14, 33, 27), 'result': '0.05016423833740889', 'result_long': None, 'result_double': None}] Qualite : 0.05016423833740889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24344313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24344313_26-06-2025_14_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24344313 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_P24344313_26-06-2025_14_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24344344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24344345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24344346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24344347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24344348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24344349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24344350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24344351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24344352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24344353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24344354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24344355, 'pht': 3726}}" where mtr_portfolio_id = 24344313 and dashboard_run_id = 1935537 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`=24344313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922142, 0.05016423833740889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24344313_26-06-2025_14_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24344344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24344345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24344346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24344347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24344348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24344349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24344350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24344351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24344352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24344353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24344354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24344355, '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 = 24345125 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': 3199720, 'mtr_portfolio_id': 24345125, 'created_at': datetime.datetime(2025, 6, 26, 14, 52, 1), 'result': '0.047136087108795216', 'result_long': None, 'result_double': None}] Qualite : 0.047136087108795216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24345125 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24345125_26-06-2025_14_52_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24345125 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_P24345125_26-06-2025_14_52_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24345138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24345139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24345140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24345142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24345144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24345146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24345148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24345150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24345152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24345153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24345155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24345157, 'pht': 3726}}" where mtr_portfolio_id = 24345125 and dashboard_run_id = 1935537 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`=24345125 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922143, 0.047136087108795216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24345125_26-06-2025_14_52_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24345138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24345139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24345140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24345142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24345144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24345146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24345148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24345150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24345152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24345153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24345155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24345157, '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 = 24346327 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': 3199794, 'mtr_portfolio_id': 24346327, 'created_at': datetime.datetime(2025, 6, 27, 15, 2, 9), 'result': '0.048010263160396666', 'result_long': None, 'result_double': None}] Qualite : 0.048010263160396666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24346327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24346327_27-06-2025_15_02_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24346327 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_P24346327_27-06-2025_15_02_13.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24346425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24346426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24346427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24346428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24346429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24346430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24346431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24346432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24346433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24346434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24346435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24346436, 'pht': 3726}}" where mtr_portfolio_id = 24346327 and dashboard_run_id = 1935537 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`=24346327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922144, 0.048010263160396666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24346327_27-06-2025_15_02_13.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24346425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24346426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24346427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24346428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24346429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24346430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24346431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24346432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24346433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24346434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24346435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24346436, '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 = 24346993 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': 3199837, 'mtr_portfolio_id': 24346993, 'created_at': datetime.datetime(2025, 6, 26, 15, 19, 4), 'result': '0.08264743382237519', 'result_long': None, 'result_double': None}] Qualite : 0.08264743382237519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24346993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24346993_26-06-2025_15_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24346993 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_P24346993_26-06-2025_15_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24347006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24347007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24347008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24347009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24347010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24347011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24347012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24347013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24347014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24347015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24347016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24347017, 'pht': 3726}}" where mtr_portfolio_id = 24346993 and dashboard_run_id = 1935537 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`=24346993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922145, 0.08264743382237519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24346993_26-06-2025_15_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24347006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24347007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24347008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24347009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24347010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24347011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24347012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24347013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24347014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24347015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24347016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24347017, '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 = 24348029 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': 3199922, 'mtr_portfolio_id': 24348029, 'created_at': datetime.datetime(2025, 6, 26, 15, 36, 8), 'result': '0.05126511995324705', 'result_long': None, 'result_double': None}] Qualite : 0.05126511995324705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24348029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24348029_26-06-2025_15_36_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24348029 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_P24348029_26-06-2025_15_36_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24348087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24348088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24348089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24348090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24348091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24348092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24348093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24348094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24348095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24348096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24348097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24348098, 'pht': 3726}}" where mtr_portfolio_id = 24348029 and dashboard_run_id = 1935537 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`=24348029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922146, 0.05126511995324705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24348029_26-06-2025_15_36_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24348087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24348088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24348089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24348090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24348091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24348092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24348093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24348094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24348095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24348096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24348097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24348098, '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 = 24348626 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': 3200038, 'mtr_portfolio_id': 24348626, 'created_at': datetime.datetime(2025, 6, 26, 15, 51, 16), 'result': '0.04144320805000744', 'result_long': None, 'result_double': None}] Qualite : 0.04144320805000744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24348626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24348626_26-06-2025_15_51_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24348626 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_P24348626_26-06-2025_15_51_21.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24348667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24348669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24348670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24348671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24348672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24348673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24348675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24348676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24348677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24348678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24348679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24348680, 'pht': 3726}}" where mtr_portfolio_id = 24348626 and dashboard_run_id = 1935537 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`=24348626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922147, 0.04144320805000744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24348626_26-06-2025_15_51_21.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24348667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24348669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24348670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24348671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24348672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24348673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24348675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24348676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24348677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24348678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24348679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24348680, '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 = 24349321 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': 3200193, 'mtr_portfolio_id': 24349321, 'created_at': datetime.datetime(2025, 6, 27, 15, 1, 30), 'result': '0.04494434021365207', 'result_long': None, 'result_double': None}] Qualite : 0.04494434021365207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24349321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24349321_27-06-2025_15_01_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24349321 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_P24349321_27-06-2025_15_01_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24349338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24349339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24349340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24349341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24349342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24349343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24349344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24349345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24349346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24349347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24349348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24349349, 'pht': 3726}}" where mtr_portfolio_id = 24349321 and dashboard_run_id = 1935537 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`=24349321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922148, 0.04494434021365207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24349321_27-06-2025_15_01_42.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24349338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24349339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24349340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24349341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24349342, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24349343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24349344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24349345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24349346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24349347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24349348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24349349, '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 = 24349543 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': 3200261, 'mtr_portfolio_id': 24349543, 'created_at': datetime.datetime(2025, 6, 26, 16, 17, 18), 'result': '0.04782485641905092', 'result_long': None, 'result_double': None}] Qualite : 0.04782485641905092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24349543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24349543_26-06-2025_16_17_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24349543 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_P24349543_26-06-2025_16_17_21.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24349571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24349572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24349573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24349574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24349575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24349576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24349577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24349578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24349579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24349580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24349581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24349582, 'pht': 3726}}" where mtr_portfolio_id = 24349543 and dashboard_run_id = 1935537 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`=24349543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922150, 0.04782485641905092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24349543_26-06-2025_16_17_21.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24349571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24349572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24349573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24349574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24349575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24349576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24349577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24349578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24349579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24349580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24349581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24349582, '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 = 24350137 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': 3200311, 'mtr_portfolio_id': 24350137, 'created_at': datetime.datetime(2025, 6, 26, 16, 33, 17), 'result': '0.03373605487847513', 'result_long': None, 'result_double': None}] Qualite : 0.03373605487847513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24350137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24350137_26-06-2025_16_33_19.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24350137 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_P24350137_26-06-2025_16_33_19.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24350150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24350151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24350152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24350153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24350154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24350155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24350156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24350157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24350158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24350159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24350160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24350161, 'pht': 3726}}" where mtr_portfolio_id = 24350137 and dashboard_run_id = 1935537 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`=24350137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922151, 0.03373605487847513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24350137_26-06-2025_16_33_19.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24350150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24350151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24350152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24350153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24350154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24350155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24350156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24350157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24350158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24350159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24350160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24350161, '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 = 24350708 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': 3200361, 'mtr_portfolio_id': 24350708, 'created_at': datetime.datetime(2025, 6, 26, 16, 47, 5), 'result': '0.055114556691538114', 'result_long': None, 'result_double': None}] Qualite : 0.055114556691538114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24350708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24350708_26-06-2025_16_47_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24350708 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_P24350708_26-06-2025_16_47_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24350742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24350743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24350744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24350745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24350746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24350747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24350748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24350749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24350750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24350751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24350752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24350753, 'pht': 3726}}" where mtr_portfolio_id = 24350708 and dashboard_run_id = 1935537 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`=24350708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922152, 0.055114556691538114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24350708_26-06-2025_16_47_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24350742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24350743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24350744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24350745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24350746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24350747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24350748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24350749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24350750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24350751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24350752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24350753, '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 = 24351178 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': 3200414, 'mtr_portfolio_id': 24351178, 'created_at': datetime.datetime(2025, 6, 26, 17, 3, 3), 'result': '0.04778494296953317', 'result_long': None, 'result_double': None}] Qualite : 0.04778494296953317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24351178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24351178_26-06-2025_17_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24351178 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_P24351178_26-06-2025_17_03_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24351215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24351216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24351217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24351218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24351219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24351220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24351221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24351222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24351223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24351224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24351225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24351226, 'pht': 3726}}" where mtr_portfolio_id = 24351178 and dashboard_run_id = 1935537 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`=24351178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922153, 0.04778494296953317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24351178_26-06-2025_17_03_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24351215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24351216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24351217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24351218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24351219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24351220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24351221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24351222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24351223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24351224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24351225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24351226, '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 = 24351692 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': 3200475, 'mtr_portfolio_id': 24351692, 'created_at': datetime.datetime(2025, 6, 26, 17, 19, 28), 'result': '0.05297456629844908', 'result_long': None, 'result_double': None}] Qualite : 0.05297456629844908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24351692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24351692_26-06-2025_17_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24351692 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_P24351692_26-06-2025_17_19_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24351699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24351700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24351701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24351702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24351703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24351704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24351705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24351706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24351707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24351708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24351709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24351710, 'pht': 3726}}" where mtr_portfolio_id = 24351692 and dashboard_run_id = 1935537 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`=24351692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922154, 0.05297456629844908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24351692_26-06-2025_17_19_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24351699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24351700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24351701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24351702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24351703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24351704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24351705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24351706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24351707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24351708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24351709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24351710, '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 = 24352209 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': 3200566, 'mtr_portfolio_id': 24352209, 'created_at': datetime.datetime(2025, 6, 26, 17, 33, 4), 'result': '0.06052988648155071', 'result_long': None, 'result_double': None}] Qualite : 0.06052988648155071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24352209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24352209_26-06-2025_17_33_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24352209 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_P24352209_26-06-2025_17_33_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24352223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24352224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24352225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24352226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24352227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24352228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24352229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24352230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24352231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24352232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24352233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24352234, 'pht': 3726}}" where mtr_portfolio_id = 24352209 and dashboard_run_id = 1935537 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`=24352209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922155, 0.06052988648155071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24352209_26-06-2025_17_33_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24352223, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24352224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24352225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24352226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24352227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24352228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24352229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24352230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24352231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24352232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24352233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24352234, '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 = 24353677 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': 3200718, 'mtr_portfolio_id': 24353677, 'created_at': datetime.datetime(2025, 6, 26, 18, 19, 36), 'result': '0.036040580126158135', 'result_long': None, 'result_double': None}] Qualite : 0.036040580126158135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24353677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24353677_26-06-2025_18_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24353677 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_P24353677_26-06-2025_18_19_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24353684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24353685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24353686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24353687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24353688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24353689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24353692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24353693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24353694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24353695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24353696, 'pht': 3726}}" where mtr_portfolio_id = 24353677 and dashboard_run_id = 1935537 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`=24353677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922157, 0.036040580126158135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24353677_26-06-2025_18_19_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24353684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24353685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24353686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24353687, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24353688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24353689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24353692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24353693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24353694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24353695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24353696, '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 = 24354465 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': 3200768, 'mtr_portfolio_id': 24354465, 'created_at': datetime.datetime(2025, 6, 26, 18, 33, 16), 'result': '0.04479157416545146', 'result_long': None, 'result_double': None}] Qualite : 0.04479157416545146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24354465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24354465_26-06-2025_18_33_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24354465 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_P24354465_26-06-2025_18_33_17.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24354499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24354500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24354501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24354502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24354503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24354504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24354505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24354506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24354507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24354508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24354509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24354510, 'pht': 3726}}" where mtr_portfolio_id = 24354465 and dashboard_run_id = 1935537 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`=24354465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922158, 0.04479157416545146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24354465_26-06-2025_18_33_17.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24354499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24354500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24354501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24354502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24354503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24354504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24354505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24354506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24354507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24354508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24354509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24354510, '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 = 24354897 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': 3200812, 'mtr_portfolio_id': 24354897, 'created_at': datetime.datetime(2025, 6, 26, 18, 50, 30), 'result': '0.0355900425910071', 'result_long': None, 'result_double': None}] Qualite : 0.0355900425910071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24354897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24354897_26-06-2025_18_50_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24354897 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_P24354897_26-06-2025_18_50_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24354901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24354902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24354903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24354904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24354905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24354906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24354907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24354908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24354909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24354910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24354911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24354912, 'pht': 3726}}" where mtr_portfolio_id = 24354897 and dashboard_run_id = 1935537 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`=24354897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922159, 0.0355900425910071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24354897_26-06-2025_18_50_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24354901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24354902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24354903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24354904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24354905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24354906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24354907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24354908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24354909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24354910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24354911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24354912, '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 = 24355457 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': 3200868, 'mtr_portfolio_id': 24355457, 'created_at': datetime.datetime(2025, 6, 26, 19, 3, 6), 'result': '0.05044733668900703', 'result_long': None, 'result_double': None}] Qualite : 0.05044733668900703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24355457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24355457_26-06-2025_19_03_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24355457 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_P24355457_26-06-2025_19_03_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24355460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24355461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24355462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24355463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24355464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24355465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24355466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24355467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24355468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24355469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24355470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24355471, 'pht': 3726}}" where mtr_portfolio_id = 24355457 and dashboard_run_id = 1935537 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`=24355457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922160, 0.05044733668900703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24355457_26-06-2025_19_03_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24355460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24355461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24355462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24355463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24355464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24355465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24355466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24355467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24355468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24355469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24355470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24355471, '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 = 24355873 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': 3200925, 'mtr_portfolio_id': 24355873, 'created_at': datetime.datetime(2025, 6, 26, 19, 17, 6), 'result': '0.04275497058975505', 'result_long': None, 'result_double': None}] Qualite : 0.04275497058975505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24355873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24355873_26-06-2025_19_17_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24355873 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_P24355873_26-06-2025_19_17_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24355876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24355877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24355878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24355879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24355880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24355881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24355882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24355883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24355884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24355885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24355886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24355887, 'pht': 3726}}" where mtr_portfolio_id = 24355873 and dashboard_run_id = 1935537 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`=24355873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922161, 0.04275497058975505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24355873_26-06-2025_19_17_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24355876, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24355877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24355878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24355879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24355880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24355881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24355882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24355883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24355884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24355885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24355886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24355887, '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 = 24356384 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': 3200978, 'mtr_portfolio_id': 24356384, 'created_at': datetime.datetime(2025, 6, 26, 19, 33, 2), 'result': '0.03796817716315672', 'result_long': None, 'result_double': None}] Qualite : 0.03796817716315672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24356384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24356384_26-06-2025_19_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24356384 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_P24356384_26-06-2025_19_33_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24356412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24356413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24356414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24356415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24356416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24356417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24356418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24356419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24356420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24356421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24356422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24356423, 'pht': 3726}}" where mtr_portfolio_id = 24356384 and dashboard_run_id = 1935537 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`=24356384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922162, 0.03796817716315672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24356384_26-06-2025_19_33_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24356412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24356413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24356414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24356415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24356416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24356417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24356418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24356419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24356420, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24356421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24356422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24356423, '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 = 24356859 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': 3201032, 'mtr_portfolio_id': 24356859, 'created_at': datetime.datetime(2025, 6, 26, 19, 49, 30), 'result': '0.022204744756631613', 'result_long': None, 'result_double': None}] Qualite : 0.022204744756631613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24356859 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24356859_26-06-2025_19_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24356859 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_P24356859_26-06-2025_19_49_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24356897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24356898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24356899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24356900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24356901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24356902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24356903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24356904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24356905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24356906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24356907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24356908, 'pht': 3726}}" where mtr_portfolio_id = 24356859 and dashboard_run_id = 1935537 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`=24356859 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922163, 0.022204744756631613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24356859_26-06-2025_19_49_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24356897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24356898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24356899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24356900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24356901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24356902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24356903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24356904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24356905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24356906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24356907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24356908, '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 = 24357379 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': 3201104, 'mtr_portfolio_id': 24357379, 'created_at': datetime.datetime(2025, 6, 26, 20, 2, 59), 'result': '0.03933826571260995', 'result_long': None, 'result_double': None}] Qualite : 0.03933826571260995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24357379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24357379_26-06-2025_20_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24357379 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_P24357379_26-06-2025_20_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24357412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24357413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24357414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24357415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24357416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24357417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24357418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24357419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24357420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24357421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24357423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24357424, 'pht': 3726}}" where mtr_portfolio_id = 24357379 and dashboard_run_id = 1935537 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`=24357379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922164, 0.03933826571260995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24357379_26-06-2025_20_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24357412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24357413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24357414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24357415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24357416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24357417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24357418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24357419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24357420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24357421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24357423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24357424, '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 = 24357913 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': 3201176, 'mtr_portfolio_id': 24357913, 'created_at': datetime.datetime(2025, 6, 26, 20, 27), 'result': '0.04944672166505804', 'result_long': None, 'result_double': None}] Qualite : 0.04944672166505804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24357913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24357913_26-06-2025_20_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24357913 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_P24357913_26-06-2025_20_27_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24357951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24357952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24357953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24357954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24357955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24357956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24357957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24357958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24357959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24357960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24357961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24357962, 'pht': 3726}}" where mtr_portfolio_id = 24357913 and dashboard_run_id = 1935537 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`=24357913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922165, 0.04944672166505804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24357913_26-06-2025_20_27_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24357951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24357952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24357953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24357954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24357955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24357956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24357957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24357958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24357959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24357960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24357961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24357962, '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 = 24358526 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': 3201256, 'mtr_portfolio_id': 24358526, 'created_at': datetime.datetime(2025, 6, 26, 20, 33, 6), 'result': '0.03520302087259237', 'result_long': None, 'result_double': None}] Qualite : 0.03520302087259237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24358526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24358526_26-06-2025_20_33_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24358526 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_P24358526_26-06-2025_20_33_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24358528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24358529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24358530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24358531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24358532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24358533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24358534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24358535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24358536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24358537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24358538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24358539, 'pht': 3726}}" where mtr_portfolio_id = 24358526 and dashboard_run_id = 1935537 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`=24358526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922166, 0.03520302087259237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24358526_26-06-2025_20_33_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24358528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24358529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24358530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24358531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24358532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24358533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24358534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24358535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24358536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24358537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24358538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24358539, '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 = 24358622 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': 3201271, 'mtr_portfolio_id': 24358622, 'created_at': datetime.datetime(2025, 6, 26, 21, 5, 1), 'result': '0.0531303271650454', 'result_long': None, 'result_double': None}] Qualite : 0.0531303271650454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24358622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24358622_26-06-2025_21_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24358622 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_P24358622_26-06-2025_21_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24358662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24358663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24358664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24358665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24358666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24358667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24358668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24358669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24358670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24358671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24358672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24358673, 'pht': 3726}}" where mtr_portfolio_id = 24358622 and dashboard_run_id = 1935537 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`=24358622 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922167, 0.0531303271650454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24358622_26-06-2025_21_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24358662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24358663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24358664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24358665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24358666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24358667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24358668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24358669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24358670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24358671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24358672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24358673, '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 = 24359170 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': 3226406, 'mtr_portfolio_id': 24359170, 'created_at': datetime.datetime(2025, 7, 2, 15, 55, 30), 'result': '0.10754064241953595', 'result_long': None, 'result_double': None}] Qualite : 0.10754064241953595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24359170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24359170_02-07-2025_15_55_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24359170 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_P24359170_02-07-2025_15_55_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24359171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24359172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24359173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24359174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24359175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24359176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24359177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24359178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24359179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24359180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24359181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24359182, 'pht': 3726}}" where mtr_portfolio_id = 24359170 and dashboard_run_id = 1935535 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`=24359170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11922168, 0.10754064241953595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24359170_02-07-2025_15_55_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24359171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24359172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24359173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24359174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24359175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24359176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24359177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24359178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24359179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24359180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24359181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24359182, '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 = 24359290 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24359290 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24359290 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24359290 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24359290 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24359290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24359290_30-06-2025_15_03_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24359290 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_P24359290_30-06-2025_15_03_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24359295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24359296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24359297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24359298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24359299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24359300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24359301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24359302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24359303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24359304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24359305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24359306, 'pht': 3726}}" where mtr_portfolio_id = 24359290 and dashboard_run_id = 1935535 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24320895,24321964,24322625,24323630,24326017,24326575,24327679,24328588,24329205,24329381,24329701,24330228,24330687,24331579,24331988,24332443,24332898,24333898,24334949,24335536,24336035,24336842,24337439,24338006,24338603,24343437,24343807,24344313,24345125,24346327,24346993,24348029,24348626,24349321,24349543,24350137,24350708,24351178,24351692,24352209,24353677,24354465,24354897,24355457,24355873,24356384,24356859,24357379,24357913,24358526,24358622,24359170,24359290) result : ((1368148653,), (1368149805,), (1368149886,), (1368149981,), (1368151831,), (1368153696,), (1368153796,), (1368154685,), (1368154757,), (1368154808,), (1368156033,), (1368156105,), (1368156214,), (1368156992,), (1368157063,), (1368157727,), (1368158056,), (1368158088,), (1368158820,), (1368158890,), (1368159884,), (1368160005,), (1368161539,), (1368161669,), (1368162297,), (1368162234,), (1368162833,), (1368163244,), (1368163290,), (1368163682,), (1368163718,), (1368163752,), (1368164638,), (1368164728,), (1368164791,), (1368164863,), (1368165472,), (1368166452,), (1368166549,), (1368166698,), (1368166783,), (1368167179,), (1368167239,), (1368167289,), (1368167328,), (1368167366,), (1368167534,), (1368168021,), (1368168070,), (1368168105,), (1368168141,), (1368168626,), (1368168668,), (1368168726,), (1368168793,), (1368169154,), (1368169198,), (1368169231,), (1368169600,), (1368169572,), (1368169947,), (1368170552,), (1368170852,), (1368170892,), (1368171254,), (1368171290,), (1368171307,), (1368171327,), (1368171579,), (1368171640,), (1368171674,), (1368171679,), (1368171829,), (1368171832,), (1368171944,), (1368171966,), (1368172000,), (1368172031,), (1368172043,), (1368172103,), (1368172167,), (1368172903,), (1368172960,), (1368173033,), (1368173576,), (1368173687,), (1368174618,), (1368174751,), (1368175485,), (1368177063,), (1368177212,), (1368177988,), (1368178036,), (1368178120,), (1368178568,), (1368179139,), (1368179223,), (1368179822,), (1368179858,), (1368179906,), (1368180004,), (1368180216,), (1368181077,), (1368181447,), (1368181449,), (1368186140,), (1368186413,), (1368201155,), (1368201096,), (1368201484,), (1368201506,), (1368201733,), (1368202148,), (1368202153,), (1368202156,), (1368202158,), (1368203343,), (1368204063,), (1368204486,), (1368205353,), (1368206377,), (1368206514,), (1368206517,), (1368206681,), (1368207004,), (1368207056,), (1368207236,), (1368207244,), (1368207676,), (1368207697,), (1368207855,), (1368207907,), (1368207940,), (1368207948,), (1368208009,), (1368208011,), (1368208013,), (1368208041,), (1368209535,), (1368214530,), (1368215907,), (1368216265,), (1368216757,), (1368216764,), (1368216842,), (1368216925,), (1368217163,), (1368217358,), (1368224061,), (1368224090,), (1368224255,), (1368224290,), (1368224329,), (1368224572,), (1368224594,), (1368224600,), (1368224937,), (1368225031,), (1368225062,), (1368225367,), (1368229897,), (1368230024,), (1368230027,), (1368230030,), (1368230034,), (1368230039,), (1368230051,), (1368230102,), (1368230107,), (1368230333,), (1368230339,), (1368230447,), (1368230485,), (1368230467,), (1368230477,), (1368230480,), (1368230482,), (1368230500,), (1368230505,), (1368230508,), (1368230512,), (1368230535,), (1368230540,), (1368230543,), (1368230546,), (1368230549,), (1368230573,), (1368230579,), (1368230582,), (1368230610,), (1368230616,), (1368230618,), (1368230675,), (1368230678,), (1368230681,), (1368230748,), (1368230759,), (1368230763,), (1368230779,), (1368230781,), (1368230803,), (1368230804,), (1368230807,), (1368230835,), (1368230837,), (1368230839,), (1368230843,), (1368230847,), (1368230850,), (1368230873,), (1368230878,), (1368230881,), (1368230906,), (1368230911,), (1368231029,), (1368231596,), (1368231613,), (1368231615,), (1368231617,), (1368231630,), (1368231638,), (1368231665,), (1368231667,), (1368231669,), (1368231672,), (1368231675,), (1368231707,), (1368231711,), (1368231713,), (1368231715,), (1368231718,), (1368231722,), (1368231755,), (1368231758,), (1368231761,), (1368231763,), (1368231824,), (1368231829,), (1368231837,), (1368231839,), (1368231841,), (1368231848,), (1368231887,), (1368231881,), (1368231884,), (1368231885,), (1368231910,), (1368231915,), (1368231916,), (1368231918,), (1368231920,), (1368231921,), (1368231941,), (1368231970,), (1368231994,), (1368232003,), (1368232006,), (1368232024,), (1368232066,), (1368232069,), (1368232073,), (1368232105,), (1368232133,), (1368232136,), (1368232137,), (1368232140,), (1368232187,), (1368232190,), (1368232192,), (1368232193,), (1368232218,), (1368232235,), (1368232237,), (1368232239,), (1368232243,), (1368232247,), (1368232283,), (1368232304,), (1368232305,), (1368232308,), (1368232332,), (1368232334,), (1368232336,), (1368232337,), (1368232340,), (1368232341,), (1368232352,), (1368232354,), (1368232365,), (1368232371,), (1368232448,), (1368232453,), (1368232455,), (1368232475,), (1368232477,), (1368232591,), (1368232606,), (1368232620,), (1368232632,), (1368233120,), (1368233125,), (1368233126,), (1368233128,), (1368233134,), (1368233167,), (1368233170,), (1368233173,), (1368233176,), (1368233177,), (1368233179,), (1368233208,), (1368233211,), (1368233213,), (1368233217,), (1368233220,), (1368233266,), (1368233237,), (1368233243,), (1368233254,), (1368233260,), (1368233264,), (1368233296,), (1368233298,), (1368233301,), (1368233407,), (1368233420,), (1368233424,), (1368233427,), (1368233428,), (1368233430,), (1368233447,), (1368233451,), (1368233455,), (1368233459,), (1368233476,), (1368233478,), (1368233480,), (1368233484,), (1368233486,), (1368233490,), (1368233514,), (1368233515,), (1368233517,), (1368233520,), (1368233542,), (1368233543,), (1368233544,), (1368233546,), (1368233549,), (1368233554,), (1368233583,), (1368233584,), (1368233585,), (1368233613,), (1368233615,), (1368233617,), (1368233620,), (1368233623,), (1368233627,), (1368233650,), (1368233651,), (1368233652,), (1368233653,), (1368233655,), (1368233673,), (1368233677,), (1368233683,), (1368233687,), (1368233689,), (1368233694,), (1368233702,), (1368233705,), (1368233708,), (1368233711,), (1368233727,), (1368233731,), (1368233732,), (1368233733,), (1368233734,), (1368233737,), (1368234412,), (1368234480,), (1368234551,), (1368234616,), (1368235053,), (1368235016,), (1368235046,), (1368235299,), (1368235315,), (1368235329,), (1368235337,), (1368235340,), (1368235343,), (1368235363,), (1368235397,), (1368235415,), (1368235418,), (1368235421,), (1368235461,), (1368235463,), (1368235466,), (1368235469,), (1368235496,), (1368235510,), (1368235525,), (1368235527,), (1368235528,), (1368235550,), (1368235552,), (1368235554,), (1368235557,), (1368235559,), (1368235562,), (1368235579,), (1368235583,), (1368235584,), (1368235586,), (1368235587,), (1368235594,), (1368235595,), (1368235596,), (1368235599,), (1368235601,), (1368235603,), (1368235621,), (1368235622,), (1368235624,), (1368235656,), (1368235659,), (1368235662,), (1368235665,), (1368235668,), (1368235670,), (1368235716,), (1368235721,), (1368235724,), (1368235729,), (1368235732,), (1368235743,), (1368235758,), (1368235759,), (1368235762,), (1368235767,), (1368235769,), (1368235773,), (1368235853,), (1368235856,), (1368235881,), (1368235884,), (1368235911,), (1368235913,), (1368235923,), (1368235955,), (1368235960,), (1368235990,), (1368235993,), (1368235996,), (1368236000,), (1368236002,), (1368236044,), (1368236028,), (1368236032,), (1368236036,), (1368236040,), (1368236063,), (1368236067,), (1368236070,), (1368236074,), (1368236077,), (1368236081,), (1368236107,), (1368236110,), (1368236111,), (1368236112,), (1368236142,), (1368236144,), (1368236145,), (1368236146,), (1368236148,), (1368236150,), (1368236176,), (1368236182,), (1368236190,), (1368236192,), (1368236215,), (1368236218,), (1368236220,), (1368236244,), (1368236246,), (1368236272,), (1368236276,), (1368236278,), (1368236333,), (1368236352,), (1368236353,), (1368236354,), (1368236356,), (1368236384,), (1368236387,), (1368236388,), (1368236389,), (1368236392,), (1368236395,), (1368236422,), (1368236427,), (1368236432,), (1368236435,), (1368236459,), (1368236461,), (1368236464,), (1368236468,), (1368236471,), (1368236475,), (1368236488,), (1368236491,), (1368236492,), (1368236494,), (1368236498,), (1368236550,), (1368236543,), (1368236545,), (1368236591,), (1368236621,), (1368236623,), (1368236624,), (1368236648,), (1368236649,), (1368236653,), (1368236658,), (1368236661,), (1368236682,), (1368236684,), (1368236685,), (1368236688,), (1368236710,), (1368236711,), (1368236713,), (1368236717,), (1368236760,), (1368236763,), (1368236765,), (1368236767,), (1368236769,), (1368236773,), (1368236779,), (1368236791,), (1368236792,), (1368236794,), (1368236810,), (1368236813,), (1368236814,), (1368236816,), (1368236817,), (1368236838,), (1368236842,), (1368236843,), (1368236845,), (1368237014,), (1368237022,), (1368237027,), (1368237088,), (1368237092,), (1368237094,), (1368237097,), (1368237137,), (1368237116,), (1368237120,), (1368237129,), (1368237131,), (1368237134,), (1368237160,), (1368237235,), (1368237310,), (1368237360,), (1368237410,), (1368237491,), (1368237494,), (1368237497,), (1368237501,), (1368237503,), (1368237521,), (1368237523,), (1368237525,), (1368237527,), (1368237531,), (1368237553,), (1368237557,), (1368237560,), (1368237562,), (1368237613,), (1368237618,), (1368237619,), (1368237623,), (1368237625,), (1368237628,), (1368237653,), (1368237655,), (1368237657,), (1368237662,), (1368237665,), (1368237670,), (1368237689,), (1368237690,), (1368237692,), (1368237693,), (1368237714,), (1368237715,), (1368237716,), (1368237758,), (1368237831,), (1368237907,), (1368238064,), (1368238068,), (1368238072,), (1368238073,), (1368238081,), (1368238097,), (1368238099,), (1368238101,), (1368238105,), (1368238108,), (1368238121,), (1368238122,), (1368238123,), (1368238125,), (1368238128,), (1368238130,), (1368238326,), (1368238359,), (1368238391,), (1368238430,), (1368238957,), (1368238994,), (1368239029,), (1368239062,), (1368239098,), (1368239235,), (1368239271,), (1368239306,), (1368239439,), (1368239427,), (1368239435,), (1368239437,), (1368239608,), (1368239648,), (1368239652,), (1368239680,), (1368239713,), (1368239716,), (1368239718,), (1368239720,), (1368239722,), (1368239724,), (1368239744,), (1368239747,), (1368239761,), (1368239765,), (1368239773,), (1368239784,), (1368239788,), (1368239794,), (1368239808,), (1368239813,), (1368239817,), (1368239821,), (1368239844,), (1368239848,), (1368239852,), (1368239856,), (1368239867,), (1368239874,), (1368239937,), (1368239980,), (1368240061,), (1368240493,), (1368240522,), (1368240549,), (1368240568,), (1368240570,), (1368240573,), (1368240604,), (1368240623,), (1368240638,), (1368240640,), (1368240641,), (1368240723,), (1368240725,), (1368240750,), (1368240783,), (1368240819,), (1368240846,), (1368241052,), (1368241057,), (1368241094,), (1368241413,), (1368241416,), (1368241445,), (1368241507,), (1368241560,), (1368241611,), (1368241938,), (1368242002,), (1368242070,), (1368242104,), (1368242367,), (1368242401,), (1368242424,), (1368242457,), (1368242493,), (1368242499,), (1368242652,), (1368242567,), (1368242602,), (1368242636,), (1368242725,), (1368242728,), (1368242732,), (1368242734,), (1368242735,), (1368242757,), (1368242859,), (1368242872,), (1368242881,), (1368242882,), (1368242883,), (1368242921,), (1368243040,), (1368243046,), (1368243049,), (1368243061,), (1368243096,), (1368243177,), (1368243200,), (1368243204,), (1368243206,), (1368243207,), (1368243209,), (1368243374,), (1368243393,), (1368243395,), (1368243397,), (1368243590,), (1368243617,), (1368243643,), (1368243678,), (1368243699,), (1368243988,), (1368244041,), (1368244115,), (1368244185,), (1368244299,), (1368244349,), (1368244353,), (1368244355,), (1368244358,), (1368244380,), (1368244387,), (1368244392,), (1368244395,), (1368244398,), (1368244433,), (1368244437,), (1368244440,), (1368244443,), (1368244508,), (1368244512,), (1368244516,), (1368244521,), (1368244526,), (1368244530,), (1368244631,), (1368244644,), (1368244652,), (1368244685,), (1368244760,), (1368244768,), (1368244803,), (1368244823,), (1368244827,), (1368244829,), (1368244846,), (1368244853,), (1368244858,), (1368244861,), (1368244955,), (1368244935,), (1368244942,), (1368244945,), (1368244946,), (1368244949,), (1368245045,), (1368245088,), (1368245120,), (1368245132,), (1368245240,), (1368245251,), (1368245253,), (1368245255,), (1368245257,), (1368245260,), (1368245285,), (1368245292,), (1368245295,), (1368245297,), (1368245299,), (1368245301,), (1368245318,), (1368245323,), (1368245327,), (1368245330,), (1368245332,), (1368245349,), (1368245364,), (1368245376,), (1368245382,), (1368245385,), (1368245387,), (1368245401,), (1368245406,), (1368245409,), (1368245412,), (1368245430,), (1368245441,), (1368245445,), (1368245449,), (1368245452,), (1368245457,), (1368245474,), (1368245476,), (1368245479,), (1368245485,), (1368245514,), (1368245519,), (1368245525,), (1368245530,), (1368245533,), (1368245537,), (1368245589,), (1368245591,), (1368245594,), (1368245596,), (1368245622,), (1368245626,), (1368245629,), (1368245633,), (1368245636,), (1368245638,), (1368245662,), (1368245668,), (1368245676,), (1368245825,), (1368245829,), (1368245842,), (1368245866,), (1368245869,), (1368245873,), (1368245932,), (1368245942,), (1368245960,), (1368245969,), (1368245971,), (1368246007,), (1368245993,), (1368245996,), (1368245999,), (1368246002,), (1368246005,), (1368246066,), (1368246075,), (1368246089,), (1368246104,), (1368246127,), (1368246131,), (1368246135,), (1368246138,), (1368246141,), (1368246142,), (1368246165,), (1368246170,), (1368246173,), (1368246176,), (1368246199,), (1368246202,), (1368246206,), (1368246208,), (1368246210,), (1368246256,), (1368246261,), (1368246266,), (1368246268,), (1368246274,), (1368246282,), (1368246296,), (1368246298,), (1368246302,), (1368246305,), (1368246308,), (1368246328,), (1368246331,), (1368246334,), (1368246337,), (1368246384,), (1368246403,), (1368246408,), (1368246412,), (1368246424,), (1368246428,), (1368246526,), (1368246530,), (1368246533,), (1368246553,), (1368246556,), (1368246565,), (1368246569,), (1368246596,), (1368246599,), (1368246602,), (1368246605,), (1368246609,), (1368246612,), (1368246629,), (1368246634,), (1368246638,), (1368246641,), (1368246643,), (1368246686,), (1368246694,), (1368246700,), (1368246705,), (1368246708,), (1368246713,), (1368246859,), (1368246931,), (1368247019,), (1368247360,), (1368247147,), (1368247202,), (1368247249,), (1368247287,), (1368247322,), (1368247533,), (1368247595,), (1368247664,), (1368248323,), (1368248394,), (1368248472,), (1368248551,), (1368248625,), (1368248695,), (1368248951,), (1368248963,), (1368248982,), (1368249023,), (1368249421,), (1368249484,), (1368249515,), (1368249547,), (1368249590,), (1368249630,), (1368249654,), (1368249656,), (1368249658,), (1368249660,), (1368249663,), (1368249695,), (1368249696,), (1368249698,), (1368249702,), (1368249705,), (1368249706,), (1368249734,), (1368249736,), (1368249738,), (1368249743,), (1368249781,), (1368249784,), (1368249786,), (1368249789,), (1368249825,), (1368249829,), (1368249831,), (1368249833,), (1368249836,), (1368249840,), (1368249894,), (1368249896,), (1368249903,), (1368249914,), (1368249925,), (1368249952,), (1368249959,), (1368249965,), (1368249968,), (1368249971,), (1368250003,), (1368250006,), (1368250007,), (1368250011,), (1368250016,), (1368250039,), (1368250042,), (1368250046,), (1368250054,), (1368250059,), (1368250089,), (1368250095,), (1368250100,), (1368250104,), (1368250110,), (1368250132,), (1368250126,), (1368250176,), (1368250179,), (1368250184,), (1368250188,), (1368250194,), (1368250197,), (1368250212,), (1368250215,), (1368250218,), (1368250221,), (1368250224,), (1368250225,), (1368250250,), (1368250256,), (1368250259,), (1368250280,), (1368250284,), (1368250286,), (1368250288,), (1368250291,), (1368250293,), (1368250372,), (1368250375,), (1368250427,), (1368250502,), (1368250790,), (1368250801,), (1368250814,), (1368250819,), (1368250821,), (1368250824,), (1368250860,), (1368250931,), (1368250970,), (1368250976,), (1368250999,), (1368251003,), (1368251006,), (1368251010,), (1368251014,), (1368251019,), (1368251040,), (1368251042,), (1368251043,), (1368251045,), (1368251088,), (1368251092,), (1368251094,), (1368251098,), (1368251101,), (1368251106,), (1368251125,), (1368251127,), (1368251129,), (1368251134,), (1368251138,), (1368251142,), (1368251157,), (1368251164,), (1368251172,), (1368251178,), (1368251181,), (1368251196,), (1368251197,), (1368251199,), (1368251203,), (1368251207,), (1368251220,), (1368251224,), (1368251232,), (1368251234,), (1368251238,), (1368251312,), (1368251294,), (1368251303,), (1368251305,), (1368251309,), (1368251342,), (1368251344,), (1368251346,), (1368251350,), (1368251352,), (1368251373,), (1368251375,), (1368251378,), (1368251381,), (1368251385,), (1368251412,), (1368251421,), (1368251424,), (1368251427,), (1368251432,), (1368251435,), (1368251459,), (1368251465,), (1368251467,), (1368251470,), (1368251472,), (1368251505,), (1368251507,), (1368251512,), (1368251517,), (1368251520,), (1368251541,), (1368251549,), (1368251552,), (1368251556,), (1368251584,), (1368251587,), (1368251590,), (1368251595,), (1368251598,), (1368251602,), (1368251628,), (1368251632,), (1368251637,), (1368251651,), (1368251656,), (1368251660,), (1368251673,), (1368251676,), (1368251686,), (1368251696,), (1368251761,), (1368251765,), (1368251767,), (1368251769,), (1368251771,), (1368251779,), (1368251793,), (1368251795,), (1368251798,), (1368251801,), (1368252025,), (1368252057,), (1368252096,), (1368252114,), (1368252118,), (1368252123,), (1368252167,), (1368252171,), (1368252177,), (1368252185,), (1368252188,), (1368252218,), (1368252228,), (1368252233,), (1368252240,), (1368252276,), (1368252413,), (1368252391,), (1368252401,), (1368252404,), (1368252409,), (1368252431,), (1368252437,), (1368252440,), (1368252443,), (1368252446,), (1368252450,), (1368252468,), (1368252471,), (1368252473,), (1368252475,), (1368252477,), (1368252638,), (1368252670,), (1368252728,), (1368252752,), (1368252770,), (1368252913,), (1368252939,), (1368252950,), (1368252958,), (1368252961,), (1368253050,), (1368253055,), (1368253058,), (1368253061,), (1368253065,), (1368253083,), (1368253088,), (1368253092,), (1368253095,), (1368253105,), (1368253135,), (1368253138,), (1368253147,), (1368253150,), (1368253151,), (1368253167,), (1368253171,), (1368253174,), (1368253178,), (1368253212,), (1368253214,), (1368253219,), (1368253222,), (1368253223,), (1368253227,), (1368253243,), (1368253245,), (1368253250,), (1368253252,), (1368253254,), (1368253287,), (1368253295,), (1368253302,), (1368253307,), (1368253345,), (1368253351,), (1368253386,), (1368253396,), (1368253400,), (1368253405,), (1368253407,), (1368254003,), (1368254069,), (1368254133,), (1368254197,), (1368254259,), (1368254499,), (1368254595,), (1368254659,), (1368254723,), (1368254765,), (1368255135,), (1368254903,), (1368254945,), (1368255006,), (1368255068,), (1368255249,), (1368255314,), (1368255539,), (1368255568,), (1368255574,), (1368255577,), (1368255596,), (1368255607,), (1368255610,), (1368255614,), (1368255616,), (1368255618,), (1368255638,), (1368255641,), (1368255644,), (1368255646,), (1368255647,), (1368255668,), (1368255673,), (1368255675,), (1368255677,), (1368255708,), (1368255711,), (1368268463,), (1368289218,), (1368289848,), (1368289996,), (1368290000,), (1368290003,), (1368290007,), (1368290026,), (1368290035,), (1368290048,), (1368290064,), (1368290084,), (1368290089,), (1368290114,), (1368290161,), (1368290165,), (1368292874,), (1368293309,), (1368293339,), (1368293374,), (1368293421,), (1368293566,), (1368293579,), (1368293594,), (1368293607,), (1368293612,), (1368293615,), (1368293681,), (1368293704,), (1368293726,), (1368293730,), (1368293743,), (1368293776,), (1368294193,), (1368294248,), (1368294311,), (1368294352,), (1368294659,), (1368294663,), (1368294668,), (1368294671,), (1368294672,), (1368294895,), (1368294924,), (1368294927,), (1368294934,), (1368294966,), (1368295072,), (1368295105,), (1368295128,), (1368295130,), (1368295132,), (1368295150,), (1368295154,), (1368295156,), (1368295184,), (1368295189,), (1368295192,), (1368295194,), (1368295196,), (1368295198,), (1368295219,), (1368295225,), (1368295227,), (1368295230,), (1368295232,), (1368295236,), (1368295263,), (1368295250,), (1368295252,), (1368295258,), (1368295260,), (1368295288,), (1368295290,), (1368295292,), (1368295294,), (1368295319,), (1368295323,), (1368295327,), (1368295329,), (1368295384,), (1368295416,), (1368295449,), (1368295464,), (1368295483,), (1368295504,), (1368295657,), (1368295690,), (1368295754,), (1368296364,), (1368296403,), (1368296443,), (1368296448,), (1368296478,), (1368296610,), (1368296658,), (1368296671,), (1368296827,), (1368296888,), (1368297207,), (1368297210,), (1368297212,), (1368297228,), (1368297232,), (1368297412,), (1368297421,), (1368297424,), (1368297695,), (1368297700,), (1368297726,), (1368298078,), (1368298114,), (1368298149,), (1368298184,), (1368298389,), (1368298448,), (1368298483,), (1368298730,), (1368298737,), (1368298741,), (1368299143,), (1368299067,), (1368299106,), (1368299510,), (1368299545,), (1368299614,), (1368299633,), (1368299895,), (1368299908,), (1368299944,), (1368300184,), (1368300218,), (1368300253,), (1368300287,), (1368300319,), (1368300498,), (1368300552,), (1368300622,), (1368300722,), (1368300807,), (1368300851,), (1368301145,), (1368301151,), (1368301156,), (1368301180,), (1368301213,), (1368301294,), (1368301296,), (1368301299,), (1368301401,), (1368301451,), (1368301529,), (1368301595,), (1368301661,), (1368301712,), (1368301912,), (1368301916,), (1368301948,), (1368301981,), (1368302014,), (1368302152,), (1368302215,), (1368302265,), (1368302300,), (1368302330,), (1368302601,), (1368302657,), (1368302762,), (1368302857,), (1368302951,), (1368303305,), (1368303340,), (1368303371,), (1368303409,), (1368303419,), (1368303422,), (1368303662,), (1368303699,), (1368303734,), (1368304153,), (1368304220,), (1368304312,), (1368304369,), (1368304404,), (1368304461,), (1368304766,), (1368304810,), (1368304868,), (1368304909,), (1368304956,), (1368305200,), (1368305108,), (1368305148,), (1368305169,), (1368305353,), (1368305355,), (1368305357,), (1368305361,), (1368305403,), (1368305417,), (1368305433,), (1368305437,), (1368305555,), (1368305589,), (1368305624,), (1368305659,), (1368305692,), (1368306035,), (1368306097,), (1368306474,), (1368306540,), (1368306636,), (1368306731,), (1368306818,), (1368307453,), (1368307514,), (1368307576,), (1368307651,), (1368307756,), (1368308242,), (1368308336,), (1368308442,), (1368308525,), (1368308761,), (1368308765,), (1368308767,), (1368308769,), (1368308794,), (1368308830,), (1368309097,), (1368309132,), (1368309142,), (1368309166,), (1368309453,), (1368309496,), (1368309520,), (1368309536,), (1368309565,), (1368309714,), (1368309750,), (1368309783,), (1368309818,), (1368309873,), (1368309877,), (1368310612,), (1368310686,), (1368310862,), (1368310955,), (1368311058,), (1368311945,), (1368311550,), (1368311643,), (1368311742,), (1368311806,), (1368311874,), (1368312396,), (1368312474,), (1368312578,), (1368312688,), (1368312788,), (1368312905,), (1368313184,), (1368313189,), (1368313197,), (1368313271,), (1368313522,), (1368313526,), (1368313552,), (1368313586,), (1368313624,), (1368313657,), (1368314054,), (1368314147,), (1368314267,), (1368315268,), (1368315379,), (1368315459,), (1368315518,), (1368315572,), (1368315657,), (1368316063,), (1368316141,), (1368316211,), (1368316278,), (1368316856,), (1368316918,), (1368317016,), (1368317117,), (1368317196,), (1368317513,), (1368317565,), (1368317663,), (1368317749,), (1368317850,), (1368318217,), (1368318224,), (1368318229,), (1368318253,), (1368318703,), (1368319368,), (1368319372,), (1368319375,), (1368319436,), (1368319408,), (1368319419,), (1368319425,), (1368319428,), (1368319433,), (1368319468,), (1368319470,), (1368319473,), (1368319477,), (1368319510,), (1368319642,), (1368319652,), (1368319811,), (1368320046,), (1368320050,), (1368320324,), (1368320328,), (1368320449,), (1368320695,), (1368320706,), (1368320711,), (1368320719,), (1368320774,), (1368320778,), (1368320793,), (1368320817,), (1368320963,), (1368320974,), (1368321022,), (1368321060,), (1368321113,), (1368321124,), (1368321267,), (1368321282,), (1368321296,), (1368321325,), (1368321517,), (1368321659,), (1368321688,), (1368321697,), (1368321703,), (1368321708,), (1368321781,), (1368321815,), (1368321918,), (1368321923,), (1368321927,), (1368321932,), (1368321935,), (1368322002,), (1368321989,), (1368321994,), (1368322000,), (1368322022,), (1368322025,), (1368322027,), (1368322032,), (1368322035,), (1368322071,), (1368322075,), (1368322078,), (1368322084,), (1368322199,), (1368322201,), (1368322205,), (1368322248,), (1368323572,), (1368323634,), (1368323694,), (1368323726,), (1368323866,), (1368323870,), (1368323873,), (1368323906,), (1368323910,), (1368323921,), (1368323960,), (1368323964,), (1368324108,), (1368324112,), (1368324131,), (1368324135,), (1368324139,), (1368324168,), (1368324296,), (1368324334,), (1368326348,), (1368325818,), (1368326345,), (1368326375,), (1368326379,), (1368326381,), (1368326383,), (1368326388,), (1368326408,), (1368326544,), (1368326548,), (1368326574,), (1368326579,), (1368326584,), (1368326694,), (1368326723,), (1368326735,), (1368326740,), (1368326742,), (1368326860,), (1368326871,), (1368326875,), (1368327008,), (1368327012,), (1368327015,), (1368327018,), (1368327021,), (1368327023,), (1368327033,), (1368327035,), (1368327037,), (1368327040,), (1368327054,), (1368327057,), (1368327058,), (1368327060,), (1368327062,), (1368327344,), (1368327378,), (1368327421,), (1368327457,), (1368327511,), (1368327658,), (1368327696,), (1368327730,), (1368327783,), (1368327865,), (1368328374,), (1368328151,), (1368328217,), (1368328304,), (1368328788,), (1368328850,), (1368328922,), (1368331024,), (1368331049,), (1368331052,), (1368331073,), (1368331076,), (1368331079,), (1368331081,), (1368331085,), (1368331087,), (1368331103,), (1368331108,), (1368331111,), (1368331114,), (1368331117,), (1368331130,), (1368331140,), (1368331184,), (1368331177,), (1368331180,), (1368331182,), (1368331239,), (1368331246,), (1368331256,), (1368331293,), (1368331335,), (1368331361,), (1368331413,), (1368331446,), (1368331479,), (1368331499,), (1368331616,), (1368331641,), (1368331675,), (1368331729,), (1368332095,), (1368332163,), (1368332166,), (1368332172,), (1368332176,), (1368332203,), (1368332204,), (1368332206,), (1368332209,), (1368332248,), (1368332267,), (1368332272,), (1368332278,), (1368332289,), (1368332296,), (1368332304,), (1368332311,), (1368332317,), (1368332355,), (1368332358,), (1368332361,), (1368332365,), (1368332370,), (1368332388,), (1368332440,), (1368332445,), (1368332481,), (1368332531,), (1368332533,), (1368332550,), (1368332554,), (1368332559,), (1368332566,), (1368332567,), (1368332620,), (1368332594,), (1368332603,), (1368332608,), (1368332613,), (1368332618,), (1368332644,), (1368332660,), (1368332664,), (1368332674,), (1368332679,), (1368332692,), (1368332694,), (1368332696,), (1368332700,), (1368332719,), (1368332721,), (1368332724,), (1368332729,), (1368332746,), (1368332749,), (1368332752,), (1368332756,), (1368332759,), (1368332783,), (1368332787,), (1368332792,), (1368332808,), (1368332813,), (1368332815,), (1368332847,), (1368332850,), (1368332853,), (1368332856,), (1368332858,), (1368332861,), (1368332874,), (1368332877,), (1368332880,), (1368332883,), (1368332884,), (1368332895,), (1368332899,), (1368332904,), (1368332926,), (1368332931,), (1368332934,), (1368332938,), (1368332942,), (1368332946,), (1368332954,), (1368332957,), (1368332961,), (1368332965,), (1368332969,), (1368332985,), (1368332989,), (1368332992,), (1368332996,), (1368333113,), (1368333119,), (1368333122,), (1368333124,), (1368333234,), (1368333260,), (1368333283,), (1368333295,), (1368333422,), (1368333411,), (1368333418,), (1368333543,), (1368333547,), (1368333550,), (1368333573,), (1368333576,), (1368333578,), (1368333582,), (1368333584,), (1368333591,), (1368333600,), (1368333604,), (1368333607,), (1368333612,), (1368333613,), (1368333628,), (1368333630,), (1368333632,), (1368333635,), (1368333637,), (1368333643,), (1368333646,), (1368333649,), (1368333652,), (1368333674,), (1368333713,), (1368333742,), (1368333743,), (1368333746,), (1368333749,), (1368333756,), (1368333769,), (1368333770,), (1368333776,), (1368333779,), (1368333781,), (1368333783,), (1368333801,), (1368333803,), (1368333823,), (1368333846,), (1368333912,), (1368333944,), (1368334407,), (1368334339,), (1368335941,), (1368336462,), (1368336515,), (1368336532,), (1368336555,), (1368336596,), (1368336607,), (1368336644,), (1368336678,), (1368336714,), (1368336750,), (1368336952,), (1368336956,), (1368336972,), (1368337005,), (1368337083,), (1368337085,), (1368337088,), (1368337092,), (1368337116,), (1368337122,), (1368337125,), (1368337145,), (1368337154,), (1368337172,), (1368337178,), (1368337200,), (1368337205,), (1368337210,), (1368337213,), (1368337234,), (1368337239,), (1368337242,), (1368337246,), (1368337248,), (1368337256,), (1368337262,), (1368337266,), (1368337271,), (1368337275,), (1368337300,), (1368337305,), (1368337311,), (1368337316,), (1368337320,), (1368337342,), (1368337346,), (1368337348,), (1368337352,), (1368337355,), (1368337407,), (1368337386,), (1368337389,), (1368337394,), (1368337396,), (1368337400,), (1368337474,), (1368337483,), (1368337486,), (1368337490,), (1368337605,), (1368337643,), (1368337653,), (1368337689,), (1368337706,), (1368337710,), (1368337792,), (1368337813,), (1368337835,), (1368337872,), (1368337906,), (1368337913,), (1368337955,), (1368337956,), (1368337958,), (1368337963,), (1368338005,), (1368338009,), (1368338012,), (1368338020,), (1368338024,), (1368338027,), (1368338051,), (1368338055,), (1368338057,), (1368338062,), (1368338067,), (1368338068,), (1368338092,), (1368338094,), (1368338097,), (1368338125,), (1368338129,), (1368338137,), (1368338157,), (1368338163,), (1368338170,), (1368338179,), (1368338182,), (1368338185,), (1368338189,), (1368338192,), (1368338263,), (1368338276,), (1368338292,), (1368338296,), (1368338300,), (1368338308,), (1368338412,), (1368338445,), (1368338451,), (1368338453,), (1368338458,), (1368338462,), (1368338542,), (1368338545,), (1368338549,), (1368338671,), (1368338673,), (1368338676,), (1368338679,), (1368338680,), (1368338701,), (1368338704,), (1368338706,), (1368338708,), (1368338710,), (1368338715,), (1368338735,), (1368340699,), (1368341546,), (1368341625,), (1368341739,), (1368342560,), (1368342648,), (1368342740,), (1368343455,), (1368343488,), (1368343522,), (1368343955,), (1368343989,), (1368344027,), (1368344412,), (1368344439,), (1368344442,), (1368344466,), (1368344522,), (1368344524,), (1368344527,), (1368344531,), (1368344533,), (1368344537,), (1368344553,), (1368344557,), (1368344561,), (1368344565,), (1368344590,), (1368344594,), (1368344597,), (1368344647,), (1368344659,), (1368344665,), (1368344669,), (1368344675,), (1368344692,), (1368344731,), (1368344734,), (1368344757,), (1368344768,), (1368344781,), (1368344792,), (1368344814,), (1368344819,), (1368344822,), (1368344865,), (1368344868,), (1368344871,), (1368344875,), (1368344878,), (1368344881,), (1368344901,), (1368344904,), (1368344907,), (1368344908,), (1368344910,), (1368344932,), (1368344935,), (1368344937,), (1368344994,), (1368344959,), (1368344972,), (1368344981,), (1368344985,), (1368344987,), (1368345019,), (1368345022,), (1368345032,), (1368345039,), (1368345062,), (1368345064,), (1368345066,), (1368345069,), (1368345073,), (1368345077,), (1368345101,), (1368345102,), (1368345105,), (1368345106,), (1368345110,), (1368345139,), (1368345140,), (1368345184,), (1368345187,), (1368345192,), (1368345194,), (1368345220,), (1368345230,), (1368345239,), (1368345244,), (1368345251,), (1368345270,), (1368345275,), (1368345279,), (1368345306,), (1368345355,), (1368345457,), (1368345648,), (1368345654,), (1368345906,), (1368345873,), (1368345900,), (1368345902,), (1368345904,), (1368345965,), (1368345987,), (1368346014,), (1368346039,), (1368346067,), (1368346091,), (1368346245,), (1368346278,), (1368346307,), (1368346392,), (1368346399,), (1368346423,), (1368346434,), (1368346553,), (1368346571,), (1368346576,), (1368346580,), (1368346603,), (1368346621,), (1368346688,), (1368346753,), (1368346804,), (1368346824,), (1368347013,), (1368347014,), (1368347021,), (1368347046,), (1368347139,), (1368347154,), (1368347174,), (1368347178,), (1368347297,), (1368347306,), (1368347307,), (1368347312,), (1368347339,), (1368347345,), (1368347350,), (1368347356,), (1368347483,), (1368347503,), (1368347508,), (1368347757,), (1368347814,), (1368347905,), (1368347977,), (1368348039,), (1368348044,), (1368348049,), (1368348053,), (1368348073,), (1368348076,), (1368348084,), (1368348176,), (1368348213,), (1368348218,), (1368348275,), (1368348247,), (1368348255,), (1368348260,), (1368348263,), (1368348266,), (1368348309,), (1368348311,), (1368348313,), (1368348337,), (1368348341,), (1368348343,), (1368348347,), (1368348350,), (1368348359,), (1368348367,), (1368348369,), (1368348373,), (1368348376,), (1368348377,), (1368348384,), (1368348387,), (1368348390,), (1368348393,), (1368348412,), (1368348416,), (1368348420,), (1368348425,), (1368348479,), (1368348484,), (1368348491,), (1368348494,), (1368348497,), (1368348523,), (1368348526,), (1368348529,), (1368348547,), (1368348552,), (1368348558,), (1368348562,), (1368348565,), (1368348571,), (1368348581,), (1368348587,), (1368348596,), (1368348602,), (1368348604,), (1368348675,), (1368348682,), (1368348687,), (1368348737,), (1368349629,), (1368350549,), (1368350278,), (1368350344,), (1368350414,), (1368350477,), (1368350844,), (1368350850,), (1368350911,), (1368350961,), (1368351016,), (1368351190,), (1368351195,), (1368351201,), (1368351237,), (1368351254,), (1368351346,), (1368351352,), (1368351357,), (1368351360,), (1368351371,), (1368351447,), (1368351451,), (1368351455,), (1368351459,), (1368351465,), (1368351493,), (1368351497,), (1368351501,), (1368351505,), (1368351531,), (1368351535,), (1368351540,), (1368351673,), (1368351686,), (1368351690,), (1368351692,), (1368351971,), (1368352015,), (1368352024,), (1368352057,), (1368352061,), (1368352197,), (1368352199,), (1368352393,), (1368352432,), (1368352437,), (1368352446,), (1368352499,), (1368352503,), (1368352507,), (1368352512,), (1368352518,), (1368352548,), (1368352544,), (1368352580,), (1368352582,), (1368352585,), (1368352586,), (1368352588,), (1368352651,), (1368352654,), (1368352659,), (1368352664,), (1368352668,), (1368352672,), (1368352689,), (1368352691,), (1368352698,), (1368352707,), (1368352741,), (1368352744,), (1368352749,), (1368352782,), (1368353020,), (1368353026,), (1368353032,), (1368353036,), (1368353040,), (1368353057,), (1368353086,), (1368353089,), (1368353093,), (1368353097,), (1368353124,), (1368353127,), (1368353132,), (1368353136,), (1368353152,), (1368353154,), (1368353157,), (1368353191,), (1368353194,), (1368353197,), (1368353199,), (1368353221,), (1368353226,), (1368353229,), (1368353231,), (1368353248,), (1368353251,), (1368353255,), (1368353261,), (1368353265,), (1368353284,), (1368353289,), (1368353295,), (1368353299,), (1368353303,), (1368353322,), (1368353325,), (1368353330,), (1368353410,), (1368353417,), (1368353422,), (1368353427,), (1368353473,), (1368353458,), (1368353463,), (1368353469,), (1368353493,), (1368353497,), (1368353501,), (1368353505,), (1368353509,), (1368353531,), (1368353535,), (1368353539,), (1368353544,), (1368353549,), (1368353574,), (1368353578,), (1368353583,), (1368353587,), (1368353664,), (1368353672,), (1368353678,), (1368353683,), (1368353686,), (1368353690,), (1368353791,), (1368353819,), (1368353829,), (1368353931,), (1368353935,), (1368353944,), (1368354021,), (1368354027,), (1368354031,), (1368354036,), (1368354043,), (1368354046,), (1368354061,), (1368354063,), (1368354067,), (1368354072,), (1368354076,), (1368354091,), (1368354113,), (1368354117,), (1368354136,), (1368354144,), (1368354159,), (1368354162,), (1368354165,), (1368354179,), (1368354182,), (1368354185,), (1368354188,), (1368354210,), (1368354213,), (1368354216,), (1368354219,), (1368354223,), (1368354226,), (1368354274,), (1368354311,), (1368354315,), (1368354426,), (1368354462,), (1368354470,), (1368354472,), (1368354663,), (1368354567,), (1368354569,), (1368354575,), (1368354607,), (1368354641,), (1368354686,), (1368354692,), (1368354696,), (1368354699,), (1368354720,), (1368354725,), (1368354728,), (1368354731,), (1368354746,), (1368354749,), (1368354753,), (1368354757,), (1368354773,), (1368354779,), (1368354799,), (1368354803,), (1368354806,), (1368354841,), (1368354845,), (1368354851,), (1368354857,), (1368354860,), (1368354862,), (1368354885,), (1368354887,), (1368354890,), (1368354892,), (1368354895,), (1368354920,), (1368354928,), (1368354933,), (1368354937,), (1368354941,), (1368354954,), (1368354958,), (1368354960,), (1368354963,), (1368354966,), (1368354968,), (1368354984,), (1368354987,), (1368354997,), (1368355008,), (1368355016,), (1368355058,), (1368355060,), (1368355064,), (1368355067,), (1368355070,), (1368355086,), (1368355110,), (1368355115,), (1368355137,), (1368355141,), (1368355159,), (1368355162,), (1368355165,), (1368355168,), (1368355809,), (1368355846,), (1368355884,), (1368355924,), (1368355961,), (1368355994,), (1368356128,), (1368356163,), (1368356198,), (1368356229,), (1368356273,), (1368356688,), (1368356536,), (1368356610,), (1368356976,), (1368357022,), (1368357059,), (1368357096,), (1368357131,), (1368357409,), (1368357442,), (1368357471,), (1368357479,), (1368357493,), (1368357505,), (1368357688,), (1368357691,), (1368357702,), (1368357737,), (1368357785,), (1368357789,), (1368357792,), (1368357795,), (1368357797,), (1368357802,), (1368357830,), (1368357832,), (1368357837,), (1368357841,), (1368357873,), (1368357878,), (1368357883,), (1368357887,), (1368357891,), (1368357893,), (1368358035,), (1368358037,), (1368358476,), (1368359208,), (1368359206,), (1368359343,), (1368359378,), (1368359404,), (1368359414,), (1368359420,), (1368359422,), (1368359521,), (1368359525,), (1368359528,), (1368359531,), (1368359548,), (1368359623,), (1368359626,), (1368359628,), (1368359631,), (1368359634,), (1368359648,), (1368359653,), (1368359657,), (1368359661,), (1368359665,), (1368359669,), (1368359709,), (1368359691,), (1368359694,), (1368359698,), (1368359702,), (1368359706,), (1368359756,), (1368359758,), (1368359761,), (1368359808,), (1368359827,), (1368359839,), (1368359842,), (1368359864,), (1368359866,), (1368359870,), (1368359882,), (1368359905,), (1368359908,), (1368359965,), (1368359969,), (1368359983,), (1368360018,), (1368360051,), (1368360115,), (1368360136,), (1368360168,), (1368360172,), (1368360175,), (1368360286,), (1368360288,), (1368360289,), (1368360306,), (1368360326,), (1368360339,), (1368360402,), (1368360404,), (1368360407,), (1368360430,), (1368360434,), (1368360438,), (1368360441,), (1368360469,), (1368360473,), (1368360479,), (1368360484,), (1368360512,), (1368360515,), (1368360541,), (1368362838,), (1368360805,), (1368361099,), (1368363260,), (1368363466,), (1368364083,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26062025': {'nb_upload': 2, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24359170]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1368361099, 1368360805] map_info['map_portfolio_photo'] : {24359170: [1368361099, 1368360805]} final : True mtd_id 4302 list_pids : [1368361099, 1368360805] Looping around the photos to save general results len do output : 1 /24359170Didn'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, '3226406') ('4302', '24359170', '1368361099', None, None, None, None, None, '3226406') ('4302', None, None, None, None, None, None, None, '3226406') ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '24359170', 'None', None, None, None, None, '3226406'), ('4302', '24359170', '1368361099', None, None, None, None, None, '3226406'), ('4302', '24359170', '1368360805', None, None, None, None, None, '3226406')] time used for this insertion : 0.015422821044921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.113876104354858 time spend to save output : 0.015590429306030273 total time spend for step 5 : 4.129466533660889 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 (3226406) 2.07user 2.11system 0:11.93elapsed 35%CPU (0avgtext+0avgdata 158536maxresident)k 512inputs+2696outputs (14major+85127minor)pagefaults 0swaps