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 : 1929095 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 (2729187) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2729187) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061488 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2729187'] with mtr_portfolio_ids : ['22061488'] and first list_photo_ids : [] new path : /proc/1929095/ Name: python3 Umask: 0002 State: R (running) Tgid: 1929095 Ngid: 0 Pid: 1929095 PPid: 1929094 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1929095 NSpid: 1929095 NSpgid: 1927676 NSsid: 1927676 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98116 kB VmRSS: 98116 kB RssAnon: 59772 kB RssFile: 38344 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 68 nonvoluntary_ctxt_switches: 149 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1929095', 'Ngid': '0', 'Pid': '1929095', 'PPid': '1929094', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1929095', 'NSpid': '1929095', 'NSpgid': '1927676', 'NSsid': '1927676', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98116 kB', 'VmRSS': '98116 kB', 'RssAnon': '59772 kB', 'RssFile': '38344 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '68', 'nonvoluntary_ctxt_switches': '149'} ('datou_batch_current', '1929095', '1106828', '0', '1106828', '865576', '98116', b'', 'marlene', '2729187') 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 (22061488) 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 (2729187 ) ) 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 (22061488) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350169341, 'portfolio_id': 22061488}, {'photo_id': 1350169033, 'portfolio_id': 22061488}, {'photo_id': 1350169032, 'portfolio_id': 22061488}, {'photo_id': 1350169029, 'portfolio_id': 22061488}, {'photo_id': 1350168993, 'portfolio_id': 22061488}, {'photo_id': 1350168990, 'portfolio_id': 22061488}, {'photo_id': 1350168987, 'portfolio_id': 22061488}, {'photo_id': 1350168979, 'portfolio_id': 22061488}, {'photo_id': 1350168962, 'portfolio_id': 22061488}, {'photo_id': 1350168952, 'portfolio_id': 22061488}, {'photo_id': 1350168787, 'portfolio_id': 22061488}, {'photo_id': 1350168784, 'portfolio_id': 22061488}, {'photo_id': 1350168782, 'portfolio_id': 22061488}] map_portfolio_id_photo_id: {22061488: [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782]} ##### 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.015613079071044922 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 17 05:37:26 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061488) 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 : 22061488 get user id for portfolio 22061488 get sub ptf for main ptf 22061488, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'kraft', 'Carton_brun', 'cartonnette', 'metal', 'plastique', 'flou', 'autre_refus', 'mal_croppe', 'Carton_gris', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22061488 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','kraft','Carton_brun','cartonnette','metal','plastique','flou','autre_refus','mal_croppe','Carton_gris','environnement')) 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`=22061488 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','kraft','Carton_brun','cartonnette','metal','plastique','flou','autre_refus','mal_croppe','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22061488, 'sub_port_id': 22061489, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550906, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'environnement': {'main_port_id': 22061488, 'sub_port_id': 22061490, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550907, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'plastique': {'main_port_id': 22061488, 'sub_port_id': 22061491, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550908, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'autre_refus': {'main_port_id': 22061488, 'sub_port_id': 22061492, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550909, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22061488, 'sub_port_id': 22061493, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550910, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'mal_croppe': {'main_port_id': 22061488, 'sub_port_id': 22061494, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550911, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'Carton_gris': {'main_port_id': 22061488, 'sub_port_id': 22061495, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550912, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'cartonnette': {'main_port_id': 22061488, 'sub_port_id': 22061496, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550913, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'papier': {'main_port_id': 22061488, 'sub_port_id': 22061497, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550914, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'kraft': {'main_port_id': 22061488, 'sub_port_id': 22061498, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550915, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'flou': {'main_port_id': 22061488, 'sub_port_id': 22061499, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550916, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}, 'Carton_brun': {'main_port_id': 22061488, 'sub_port_id': 22061500, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550917, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22061489 , 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=22061488 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 (22061489) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061490 , 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=22061488 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 (22061490) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061491 , 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=22061488 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 (22061491) result : ((1350169012,), (1350169325,), (1350169326,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061492 , 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=22061488 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 (22061492) result : ((1350169155,), (1350169213,), (1350169317,), (1350169318,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061493 , 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=22061488 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 (22061493) result : ((1350169312,), (1350169313,), (1350169314,), (1350169315,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061494 , 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=22061488 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 (22061494) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061495 , 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=22061488 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 (22061495) result : ((1350169319,), (1350169322,), (1350169323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061496 , 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=22061488 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 (22061496) result : ((1350169009,), (1350169010,), (1350169324,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061497 , 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=22061488 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 (22061497) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061498 , 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=22061488 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 (22061498) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061499 , 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=22061488 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 (22061499) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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 22061500 , 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=22061488 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 (22061500) result : ((1350169156,), (1350169157,), (1350169215,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061488) result : ((1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,)) 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`=22061488 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','kraft','Carton_brun','cartonnette','metal','plastique','flou','autre_refus','mal_croppe','Carton_gris','environnement')) 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`=22061488 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','kraft','Carton_brun','cartonnette','metal','plastique','flou','autre_refus','mal_croppe','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22061488, 'sub_port_id': 22061501, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550918, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'environnement': {'main_port_id': 22061488, 'sub_port_id': 22061502, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550919, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'plastique': {'main_port_id': 22061488, 'sub_port_id': 22061503, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550920, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'autre_refus': {'main_port_id': 22061488, 'sub_port_id': 22061504, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550921, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22061488, 'sub_port_id': 22061505, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550922, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'mal_croppe': {'main_port_id': 22061488, 'sub_port_id': 22061506, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550923, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'Carton_gris': {'main_port_id': 22061488, 'sub_port_id': 22061507, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550924, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'cartonnette': {'main_port_id': 22061488, 'sub_port_id': 22061508, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550925, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'papier': {'main_port_id': 22061488, 'sub_port_id': 22061509, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550926, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'kraft': {'main_port_id': 22061488, 'sub_port_id': 22061510, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550927, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'flou': {'main_port_id': 22061488, 'sub_port_id': 22061511, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550928, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}, 'Carton_brun': {'main_port_id': 22061488, 'sub_port_id': 22061512, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14550929, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 32, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 32, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 28, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061492 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061494 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061507,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061495 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061508,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061496 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061509,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061497 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061499 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061500 lien utilise dans velours : https://www.fotonower.com/velours/22061501,22061502,22061503,22061504,22061505,22061506,22061507,22061508,22061509,22061510,22061511,22061512?tags=metal,environnement,plastique,autre_refus,Teint_Dans_La_Masse,mal_croppe,Carton_gris,cartonnette,papier,kraft,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22061488]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] map_info['map_portfolio_photo'] : {22061488: [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782]} final : False mtd_id 4302 list_pids : [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] Looping around the photos to save general results len do output : 1 /22061488. 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, '2729187') ('4302', '22061488', '1350169341', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22061488', "{'metal': 22061489, 'environnement': 22061490, 'plastique': 22061491, 'autre_refus': 22061492, 'Teint_Dans_La_Masse': 22061493, 'mal_croppe': 22061494, 'Carton_gris': 22061495, 'cartonnette': 22061496, 'papier': 22061497, 'kraft': 22061498, 'flou': 22061499, 'Carton_brun': 22061500}", None, None, None, None, '2729187'), ('4302', '22061488', '1350169341', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187')] time used for this insertion : 0.016862869262695312 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.441087245941162 time spend to save output : 0.01715683937072754 total time spend for step 1 : 1.4582440853118896 step2:final Thu Apr 17 05:37:27 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 (22061488) 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 22061488 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350168787,1350168784,1350168782,1350168993,1350168990,1350168987,1350168979,1350168962,1350168952,1350169033,1350169032,1350169029,1350169341); 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([22061488]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} new output for save of step final : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] map_info['map_portfolio_photo'] : {22061488: [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782]} final : False mtd_id 4302 list_pids : [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] Looping around the photos to save general results len do output : 13 /1350169341.Didn't retrieve data . /1350169033.Didn't retrieve data . /1350169032.Didn't retrieve data . /1350169029.Didn't retrieve data . /1350168993.Didn't retrieve data . /1350168990.Didn't retrieve data . /1350168987.Didn't retrieve data . /1350168979.Didn't retrieve data . /1350168962.Didn't retrieve data . /1350168952.Didn't retrieve data . /1350168787.Didn't retrieve data . /1350168784.Didn't retrieve data . /1350168782.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, '2729187') ('4302', '22061488', '1350169341', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22061488', '1350169341', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350169033', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350169032', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350169029', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168993', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168990', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168987', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168979', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168962', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168952', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168787', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168784', '0.07071141672727548', None, None, None, None, '2729187'), ('4302', '22061488', '1350168782', '0.07071141672727548', None, None, None, None, '2729187')] time used for this insertion : 0.017869234085083008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0662527084350586 time spend to save output : 0.01842665672302246 total time spend for step 2 : 0.08467936515808105 step3:velours_tree Thu Apr 17 05:37:27 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 : {22061488: [{'metal': 22061489, 'environnement': 22061490, 'plastique': 22061491, 'autre_refus': 22061492, 'Teint_Dans_La_Masse': 22061493, 'mal_croppe': 22061494, 'Carton_gris': 22061495, 'cartonnette': 22061496, 'papier': 22061497, 'kraft': 22061498, 'flou': 22061499, 'Carton_brun': 22061500}]} input_args_next_step : {22061488: ()} output_args : {22061488: [{'metal': 22061489, 'environnement': 22061490, 'plastique': 22061491, 'autre_refus': 22061492, 'Teint_Dans_La_Masse': 22061493, 'mal_croppe': 22061494, 'Carton_gris': 22061495, 'cartonnette': 22061496, 'papier': 22061497, 'kraft': 22061498, 'flou': 22061499, 'Carton_brun': 22061500}]} args : 22061488 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 : ({'metal': 22061489, 'environnement': 22061490, 'plastique': 22061491, 'autre_refus': 22061492, 'Teint_Dans_La_Masse': 22061493, 'mal_croppe': 22061494, 'Carton_gris': 22061495, 'cartonnette': 22061496, 'papier': 22061497, 'kraft': 22061498, 'flou': 22061499, 'Carton_brun': 22061500},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061488) 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([22061488]) 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.38855791091918945 time spend to save output : 9.1552734375e-05 total time spend for step 3 : 0.38864946365356445 step4:send_mail_cod Thu Apr 17 05:37: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 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 : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} input_args_next_step : {1350169341: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350169341 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350169033 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350169032 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350169029 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168993 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168990 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168987 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168979 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168962 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168952 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168787 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168784 depend.output_id : 0 input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ()} output_args : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',)} args : 1350168782 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 : {22061488: [{'metal': 22061489, 'environnement': 22061490, 'plastique': 22061491, 'autre_refus': 22061492, 'Teint_Dans_La_Masse': 22061493, 'mal_croppe': 22061494, 'Carton_gris': 22061495, 'cartonnette': 22061496, 'papier': 22061497, 'kraft': 22061498, 'flou': 22061499, 'Carton_brun': 22061500}]} input_args_next_step : {1350169341: ('0.07071141672727548',), 1350169033: ('0.07071141672727548',), 1350169032: ('0.07071141672727548',), 1350169029: ('0.07071141672727548',), 1350168993: ('0.07071141672727548',), 1350168990: ('0.07071141672727548',), 1350168987: ('0.07071141672727548',), 1350168979: ('0.07071141672727548',), 1350168962: ('0.07071141672727548',), 1350168952: ('0.07071141672727548',), 1350168787: ('0.07071141672727548',), 1350168784: ('0.07071141672727548',), 1350168782: ('0.07071141672727548',), 22061488: ()} output_args : {22061488: [{'metal': 22061489, 'environnement': 22061490, 'plastique': 22061491, 'autre_refus': 22061492, 'Teint_Dans_La_Masse': 22061493, 'mal_croppe': 22061494, 'Carton_gris': 22061495, 'cartonnette': 22061496, 'papier': 22061497, 'kraft': 22061498, 'flou': 22061499, 'Carton_brun': 22061500}]} args : 22061488 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 :14, first value : ('0.07071141672727548',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061488) 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 (1350169341,1350169033,1350169032,1350169029,1350168993,1350168990,1350168987,1350168979,1350168962,1350168952,1350168787,1350168784,1350168782) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350168782 begin to download photo : 1350168952 begin to download photo : 1350168987 begin to download photo : 1350169029 begin to download photo : 1350169341 download finish for photo 1350169341 download finish for photo 1350168782 begin to download photo : 1350168784 download finish for photo 1350169029 begin to download photo : 1350169032 download finish for photo 1350168987 begin to download photo : 1350168990 download finish for photo 1350168952 begin to download photo : 1350168962 download finish for photo 1350168990 begin to download photo : 1350168993 download finish for photo 1350168962 begin to download photo : 1350168979 download finish for photo 1350169032 begin to download photo : 1350169033 download finish for photo 1350168784 begin to download photo : 1350168787 download finish for photo 1350169033 download finish for photo 1350168993 download finish for photo 1350168979 download finish for photo 1350168787 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220614891744861048/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22061488_17-04-2025_05_37_28.pdf 22061489 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=22061489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220614891744861048 22061491 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=22061491 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350169012: '1744777633_1488186_1350168784_0c70db0b6e30191587624300c7ca9b21_rle_crop_3748404043_0.png', 1350169325: '1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406181_0.png', 1350169326: '1744777871_1490074_1350168979_02560f3b2711702d1ca3c31c44528fb9_rle_crop_3748406196_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4cfdd290aec3f79da8a234755bf01478_31343269.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cf6fd4d6acff4bb81f14e78bbe6d7a59_85168219.png change filename to text .imagette220614911744861048/ imagette220614911744861048/1744777871_1490074_1350168979_02560f3b2711702d1ca3c31c44528fb9_rle_crop_3748406196_0.png.png imagette220614911744861048/1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406181_0.png.png imagette220614911744861048/1744777633_1488186_1350168784_0c70db0b6e30191587624300c7ca9b21_rle_crop_3748404043_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/62ba268cb16b45fb8f07c2e1c4baa526_14929552.png imagette220614911744861048 22061492 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=22061492 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350169155: '1744777751_1488967_1350169029_9f198a0ec75c3f8bb9a26ddb6cc90145_rle_crop_3748404535_0.png', 1350169213: '1744777782_2145260_1350168993_30ae9190d887a75c38abebfec321773d_rle_crop_3748404661_0.png', 1350169317: '1744777871_1490074_1350168962_64a163404c4aaa2e5a5cef4be1eeaff1_rle_crop_3748406220_0.png', 1350169318: '1744777871_1490074_1350168952_e2011a49da92f22caa6c7029e9be7361_rle_crop_3748406230_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/85ede1326c34b6a1c82885b7b8b00e48_50109297.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/75b42adc879640161f1c1acabb5e34c5_55981293.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/44fa57155ac792523bd33982a2844a38_4475524.png change filename to text .imagette220614921744861048/ imagette220614921744861048/1744777871_1490074_1350168952_e2011a49da92f22caa6c7029e9be7361_rle_crop_3748406230_0.png.png imagette220614921744861048/1744777782_2145260_1350168993_30ae9190d887a75c38abebfec321773d_rle_crop_3748404661_0.png.png imagette220614921744861048/1744777871_1490074_1350168962_64a163404c4aaa2e5a5cef4be1eeaff1_rle_crop_3748406220_0.png.png imagette220614921744861048/1744777751_1488967_1350169029_9f198a0ec75c3f8bb9a26ddb6cc90145_rle_crop_3748404535_0.png.png imagette220614941744861049/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b395318417ef931945143f2d13d02c73_89694495.png imagette220614921744861048 22061494 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=22061494 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220614941744861049 22061496 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=22061496 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350169009: '1744777633_1488186_1350168787_8ecc1e5bac84864fa02431ee1f306aaa_rle_crop_3748404030_0.png', 1350169010: '1744777633_1488186_1350168784_0c70db0b6e30191587624300c7ca9b21_rle_crop_3748404040_0.png', 1350169324: '1744777871_1490074_1350168952_e2011a49da92f22caa6c7029e9be7361_rle_crop_3748406227_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1dcba4b642914affc19987f8d19e210f_46279666.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c112280daa16294bf898ede6ab05aa69_3999351.png change filename to text .imagette220614961744861049/ imagette220614961744861049/1744777633_1488186_1350168784_0c70db0b6e30191587624300c7ca9b21_rle_crop_3748404040_0.png.png imagette220614961744861049/1744777871_1490074_1350168952_e2011a49da92f22caa6c7029e9be7361_rle_crop_3748406227_0.png.png imagette220614961744861049/1744777633_1488186_1350168787_8ecc1e5bac84864fa02431ee1f306aaa_rle_crop_3748404030_0.png.png imagette220614981744861049/ imagette220614991744861049/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1a123c46faa3f58ea0d3da61130948c4_3683883.png imagette220614961744861049 22061498 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=22061498 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220614981744861049 22061499 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=22061499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220614991744861049 22061493 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=22061493 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350169312: '1744777871_1490074_1350169033_8ad5d08fe48ef00b251d802dd11e0b14_rle_crop_3748406426_0.png', 1350169313: '1744777871_1490074_1350169033_8ad5d08fe48ef00b251d802dd11e0b14_rle_crop_3748406149_0.png', 1350169314: '1744777871_1490074_1350169033_8ad5d08fe48ef00b251d802dd11e0b14_rle_crop_3748406151_0.png', 1350169315: '1744777871_1490074_1350168979_02560f3b2711702d1ca3c31c44528fb9_rle_crop_3748406202_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/94ae4f7f1e150647059bda4383092fd9_4297034.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cd285586c9719cd0cfc883a11e7a72a5_90405478.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/fb53f8849ffcb4722331188feb7dd7c7_75370544.png change filename to text .imagette220614931744861049/ imagette220614931744861049/1744777871_1490074_1350169033_8ad5d08fe48ef00b251d802dd11e0b14_rle_crop_3748406426_0.png.png imagette220614931744861049/1744777871_1490074_1350169033_8ad5d08fe48ef00b251d802dd11e0b14_rle_crop_3748406151_0.png.png imagette220614931744861049/1744777871_1490074_1350168979_02560f3b2711702d1ca3c31c44528fb9_rle_crop_3748406202_0.png.png imagette220614931744861049/1744777871_1490074_1350169033_8ad5d08fe48ef00b251d802dd11e0b14_rle_crop_3748406149_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f14642db505c668e49b337ef2d76ae8a_84592928.png imagette220614931744861049 22061495 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=22061495 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350169319: '1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406182_0.png', 1350169322: '1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406186_0.png', 1350169323: '1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406185_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b09c973e75c453cec75616ecf26063d3_53246821.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a9f7f037615ecb084e50347e716d379b_7457279.png change filename to text .imagette220614951744861049/ imagette220614951744861049/1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406186_0.png.png imagette220614951744861049/1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406185_0.png.png imagette220614951744861049/1744777871_1490074_1350168987_3cd2612dfd770f76568676127d708b2b_rle_crop_3748406182_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/905c78199767a9cef983c252b3af5b11_97827983.png imagette220614951744861049 22061500 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=22061500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350169156: '1744777751_1488967_1350169032_6c640125ae5c72735b45928c361ece6f_rle_crop_3748404524_0.png', 1350169157: '1744777751_1488967_1350169029_9f198a0ec75c3f8bb9a26ddb6cc90145_rle_crop_3748404544_0.png', 1350169215: '1744777782_2145260_1350168993_30ae9190d887a75c38abebfec321773d_rle_crop_3748404655_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2288df64609f69afbde256b2a18cbe9d_88177387.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e47a6946205dee90043fac3c1bc40fa8_47121164.png change filename to text .imagette220615001744861050/ imagette220615001744861050/1744777782_2145260_1350168993_30ae9190d887a75c38abebfec321773d_rle_crop_3748404655_0.png.png imagette220615001744861050/1744777751_1488967_1350169029_9f198a0ec75c3f8bb9a26ddb6cc90145_rle_crop_3748404544_0.png.png imagette220615001744861050/1744777751_1488967_1350169032_6c640125ae5c72735b45928c361ece6f_rle_crop_3748404524_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e12ca7d201bd0a043bb67037b3b98ff4_28142324.png imagette220615001744861050 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22061488 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22061501,22061502,22061503,22061504,22061505,22061506,22061507,22061508,22061509,22061510,22061511,22061512?tags=metal,environnement,plastique,autre_refus,Teint_Dans_La_Masse,mal_croppe,Carton_gris,cartonnette,papier,kraft,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350169341] : ('0.07071141672727548',) no score found for photo 1350169341 We are sending mail with results at report@fotonower.com args[1350169033] : ('0.07071141672727548',) no score found for photo 1350169033 We are sending mail with results at report@fotonower.com args[1350169032] : ('0.07071141672727548',) no score found for photo 1350169032 We are sending mail with results at report@fotonower.com args[1350169029] : ('0.07071141672727548',) no score found for photo 1350169029 We are sending mail with results at report@fotonower.com args[1350168993] : ('0.07071141672727548',) no score found for photo 1350168993 We are sending mail with results at report@fotonower.com args[1350168990] : ('0.07071141672727548',) no score found for photo 1350168990 We are sending mail with results at report@fotonower.com args[1350168987] : ('0.07071141672727548',) no score found for photo 1350168987 We are sending mail with results at report@fotonower.com args[1350168979] : ('0.07071141672727548',) no score found for photo 1350168979 We are sending mail with results at report@fotonower.com args[1350168962] : ('0.07071141672727548',) no score found for photo 1350168962 We are sending mail with results at report@fotonower.com args[1350168952] : ('0.07071141672727548',) no score found for photo 1350168952 We are sending mail with results at report@fotonower.com args[1350168787] : ('0.07071141672727548',) no score found for photo 1350168787 We are sending mail with results at report@fotonower.com args[1350168784] : ('0.07071141672727548',) no score found for photo 1350168784 We are sending mail with results at report@fotonower.com args[1350168782] : ('0.07071141672727548',) no score found for photo 1350168782 We are sending mail with results at report@fotonower.com refus_total : 0.07071141672727548 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=22061488 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_P22061488_17-04-2025_05_37_28.pdf results_Auto_P22061488_17-04-2025_05_37_28.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061488_17-04-2025_05_37_28.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','22061488','results_Auto_P22061488_17-04-2025_05_37_28.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061488_17-04-2025_05_37_28.pdf','pdf','','0.18','0.07071141672727548') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22061488]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] map_info['map_portfolio_photo'] : {22061488: [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782]} final : False mtd_id 4302 list_pids : [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] 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, '2729187') ('4302', '22061488', '1350169341', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22061488', '1350169341', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187')] time used for this insertion : 0.016364336013793945 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.856663942337036 time spend to save output : 0.01908397674560547 total time spend for step 4 : 3.8757479190826416 step5:split_time_score Thu Apr 17 05:37: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 : ['22061488'] 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 : [('22061488',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061488) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350169341: {'path': 'temp/1744861048_1929095_1350169341_8b99431b769d1c156f202563682a8a4c.jpg', 'extension': 'jpg'}, 1350169029: {'path': 'temp/1744861048_1929095_1350169029_9f198a0ec75c3f8bb9a26ddb6cc90145.jpg', 'extension': 'jpg'}, 1350169032: {'path': 'temp/1744861048_1929095_1350169032_6c640125ae5c72735b45928c361ece6f.jpg', 'extension': 'jpg'}, 1350169033: {'path': 'temp/1744861048_1929095_1350169033_8ad5d08fe48ef00b251d802dd11e0b14.jpg', 'extension': 'jpg'}, 1350168987: {'path': 'temp/1744861048_1929095_1350168987_3cd2612dfd770f76568676127d708b2b.jpg', 'extension': 'jpg'}, 1350168990: {'path': 'temp/1744861048_1929095_1350168990_977205f87a4dd0bc647d8bdd6e4a9768.jpg', 'extension': 'jpg'}, 1350168993: {'path': 'temp/1744861048_1929095_1350168993_30ae9190d887a75c38abebfec321773d.jpg', 'extension': 'jpg'}, 1350168952: {'path': 'temp/1744861048_1929095_1350168952_e2011a49da92f22caa6c7029e9be7361.jpg', 'extension': 'jpg'}, 1350168962: {'path': 'temp/1744861048_1929095_1350168962_64a163404c4aaa2e5a5cef4be1eeaff1.jpg', 'extension': 'jpg'}, 1350168979: {'path': 'temp/1744861048_1929095_1350168979_02560f3b2711702d1ca3c31c44528fb9.jpg', 'extension': 'jpg'}, 1350168782: {'path': 'temp/1744861048_1929095_1350168782_d38823b2946c54444877be48dfe32ff3.jpg', 'extension': 'jpg'}, 1350168784: {'path': 'temp/1744861048_1929095_1350168784_0c70db0b6e30191587624300c7ca9b21.jpg', 'extension': 'jpg'}, 1350168787: {'path': 'temp/1744861048_1929095_1350168787_8ecc1e5bac84864fa02431ee1f306aaa.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 = 22061488; (('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 = 22061488 group by h (('06', 13),) 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=22061488 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 (22061488) 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 (22061488) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22061488 Nombre de photos uploadées : 13 / 23040 (0%) 16042025 22061488 Nombre de photos taguées (types de déchets): 0 / 13 (0%) 16042025 22061488 Nombre de photos taguées (volume) : 0 / 13 (0%) [{'photo_id': 1350168787, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8ecc1e5bac84864fa02431ee1f306aaa.jpg', 'username': None, 'uploaded_at': 1744777567, 'text': 'image_16042025_06_25_24_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350168784, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0c70db0b6e30191587624300c7ca9b21.jpg', 'username': None, 'uploaded_at': 1744777567, 'text': 'image_16042025_06_25_34_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350168782, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d38823b2946c54444877be48dfe32ff3.jpg', 'username': None, 'uploaded_at': 1744777567, 'text': 'image_16042025_06_25_44_010141m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350168993, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/30ae9190d887a75c38abebfec321773d.jpg', 'username': None, 'uploaded_at': 1744777628, 'text': 'image_16042025_06_25_54_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 2.1219253540039062e-05 ????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017507076263427734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22061488, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028144359588623047 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22059117, 'dashboard_result_id': 9920310, '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_P22059117_17-04-2025_05_34_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059130, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22059330, 'dashboard_result_id': 9920311, '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_P22059330_17-04-2025_05_34_53.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059342, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22059785, 'dashboard_result_id': 9920312, '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_P22059785_17-04-2025_05_35_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059821, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22060293, 'dashboard_result_id': 9920313, '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_P22060293_17-04-2025_05_36_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22060319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22060324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060330, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22060778, 'dashboard_result_id': 9920314, '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_P22060778_17-04-2025_05_36_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22060852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22060859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060863, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22061488, 'dashboard_result_id': 9920315, '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_P22061488_16-04-2025_06_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22061489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061500, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22061745, 'dashboard_result_id': 9920316, '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_P22061745_16-04-2025_06_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061757, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22061893, 'dashboard_result_id': 9920317, '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_P22061893_16-04-2025_07_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061943, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22062524, 'dashboard_result_id': 9920318, '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_P22062524_16-04-2025_07_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22062525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22062526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22062527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22062528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22062529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22062530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22062531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22062532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22062533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22062534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22062535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22062536, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22063272, 'dashboard_result_id': 9920319, '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_P22063272_16-04-2025_07_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063285, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22063888, 'dashboard_result_id': 9920320, '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_P22063888_16-04-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063904, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22064719, 'dashboard_result_id': 9920321, '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_P22064719_16-04-2025_08_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22064721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22064722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22064723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22064724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22064725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22064726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22064727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22064728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22064729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22064730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22064731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22064732, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22065434, 'dashboard_result_id': 9920322, '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_P22065434_16-04-2025_08_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22065449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22065450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22065451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22065452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22065453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22065454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22065455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22065456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22065457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22065458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22065459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22065460, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22066281, 'dashboard_result_id': 9920323, '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_P22066281_16-04-2025_08_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22066861, 'dashboard_result_id': 9920324, '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_P22066861_16-04-2025_08_52_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066873, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22067534, 'dashboard_result_id': 9920325, '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_P22067534_16-04-2025_09_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067546, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22068844, 'dashboard_result_id': 9920326, '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_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22069355, 'dashboard_result_id': 9920327, '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_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22069943, 'dashboard_result_id': 9920328, '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_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22070661, 'dashboard_result_id': 9920329, '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_P22070661_16-04-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22071782, 'dashboard_result_id': 9920330, '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_P22071782_16-04-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22071783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22071784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22071785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22071786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22071787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22071788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22071789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22071790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22071791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22071792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22071793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22071794, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22072222, 'dashboard_result_id': 9920331, '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_P22072222_16-04-2025_11_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22072253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072259, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22072955, 'dashboard_result_id': 9920332, '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_P22072955_16-04-2025_11_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22072975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072986, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22073578, 'dashboard_result_id': 9920333, '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_P22073578_16-04-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22073614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22073615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22073616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22073617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22073618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22073619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22073620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22073621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22073622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22073623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22073624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22073625, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22074294, 'dashboard_result_id': 9920334, '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_P22074294_16-04-2025_12_02_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22074299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074310, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22074954, 'dashboard_result_id': 9920335, '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_P22074954_16-04-2025_12_38_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22074962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074966, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22077202, 'dashboard_result_id': 9920336, '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_P22077202_16-04-2025_13_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077216, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22077619, 'dashboard_result_id': 9920337, '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_P22077619_16-04-2025_14_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077634, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22078155, 'dashboard_result_id': 9920338, '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_P22078155_16-04-2025_14_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078167, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22078873, 'dashboard_result_id': 9920339, '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_P22078873_16-04-2025_14_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078914, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22079577, 'dashboard_result_id': 9920340, '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_P22079577_16-04-2025_14_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079589, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22080323, 'dashboard_result_id': 9920341, '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_P22080323_16-04-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22080328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080335, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22081286, 'dashboard_result_id': 9920342, '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_P22081286_16-04-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22081287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22081288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22081289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22081290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22081291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22081292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22081293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22081294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22081295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22081296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22081297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22081298, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22082283, 'dashboard_result_id': 9920343, '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_P22082283_16-04-2025_15_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22082313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22082314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22082315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22082316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22082317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22082318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22082319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22082320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22082321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22082322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22082323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22082324, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22082908, 'dashboard_result_id': 9920344, '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_P22082908_16-04-2025_15_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22082934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22082935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22082936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22082937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22082938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22082939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22082940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22082941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22082942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22082943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22082944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22082945, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22083524, 'dashboard_result_id': 9920345, '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_P22083524_16-04-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22083592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22083593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22083594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22083595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22083596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22083597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22083598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22083599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22083600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22083601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22083602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22083603, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22084373, 'dashboard_result_id': 9920346, '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_P22084373_16-04-2025_16_17_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22084375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22084376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22084377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22084378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22084379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22084380, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22084381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22084382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22084383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22084384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22084385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22084386, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22085147, 'dashboard_result_id': 9920347, '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_P22085147_16-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22085172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22085173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22085174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22085175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22085176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22085177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22085178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22085179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22085180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22085181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22085182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22085183, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22086201, 'dashboard_result_id': 9920348, '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_P22086201_16-04-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22086219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22086220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22086221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22086223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22086224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22086225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22086226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22086227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22086228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22086229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22086230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22086231, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22087139, 'dashboard_result_id': 9920349, '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_P22087139_16-04-2025_17_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22087183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22087184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22087185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22087186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22087187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22087188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22087189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22087190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22087191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22087192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22087193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22087194, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22088250, 'dashboard_result_id': 9920350, '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_P22088250_16-04-2025_17_17_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22088279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22088280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22088281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22088282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22088283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22088284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22088285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22088286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22088287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22088288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22088289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22088290, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22089260, 'dashboard_result_id': 9920351, '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_P22089260_16-04-2025_17_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22089284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22089285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22089286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22089287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22089288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22089289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22089290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22089291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22089292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22089293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22089294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22089295, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22091414, 'dashboard_result_id': 9920352, '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_P22091414_16-04-2025_18_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22091415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22091416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22091417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22091418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22091419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22091420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22091421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22091422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22091423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22091424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22091425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22091426, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22092176, 'dashboard_result_id': 9920353, '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_P22092176_16-04-2025_18_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22092215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22092216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22092217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22092218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22092219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22092220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22092221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22092222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22092223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22092224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22092225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22092226, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22093087, 'dashboard_result_id': 9920354, '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_P22093087_16-04-2025_18_48_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22093135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22093136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22093137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22093138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22093139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22093140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22093141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22093142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22093143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22093144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22093145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22093146, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22094049, 'dashboard_result_id': 9920355, '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_P22094049_16-04-2025_19_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094063, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22094837, 'dashboard_result_id': 9920356, '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_P22094837_16-04-2025_19_17_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094854, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22095771, 'dashboard_result_id': 9920357, '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_P22095771_16-04-2025_19_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22095773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22095774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22095775, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22095776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22095777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22095778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22095779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22095780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22095781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22095782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22095783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22095784, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22097466, 'dashboard_result_id': 9920358, '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_P22097466_16-04-2025_20_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22097468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22097469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22097470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22097471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22097472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22097473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22097474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22097475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22097476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22097477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22097478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22097479, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22098075, 'dashboard_result_id': 9920359, '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_P22098075_16-04-2025_20_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22098118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22098128, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22099130, 'dashboard_result_id': 9920360, '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_P22099130_16-04-2025_20_35_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22099168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22099169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22099170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22099171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22099172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22099173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22099174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22099175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22099176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22099177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22099178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22099179, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22100089, 'dashboard_result_id': 9920361, '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_P22100089_16-04-2025_20_56_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22100261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22100262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22100263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22100264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22100265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22100266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22100267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22100268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22100269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22100270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22100271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22100272, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22102128, 'dashboard_result_id': 9920362, '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_P22102128_16-04-2025_21_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22102196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22102197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22102198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22102199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22102200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22102201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22102202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22102203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22102204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22102205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22102206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22102207, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22102653, 'dashboard_result_id': 9920363, '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_P22102653_16-04-2025_21_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22102654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22102655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22102656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22102657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22102658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22102659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22102660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22102661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22102662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22102663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22102664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22102665, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22103582, 'dashboard_result_id': 9920364, '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_P22103582_16-04-2025_21_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22103585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22103586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22103587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22103588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22103589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22103590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22103591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22103592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22103593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22103594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22103595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22103596, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22104103, 'dashboard_result_id': 9920365, '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_P22104103_16-04-2025_22_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22104109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104120, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22104991, 'dashboard_result_id': 9920366, '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_P22104991_16-04-2025_22_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105003, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22105718, 'dashboard_result_id': 9920367, '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_P22105718_16-04-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22105743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22105744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22105745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22105746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22105747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22105748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22105749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22105750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105754, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22106276, 'dashboard_result_id': 9920368, '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_P22106276_16-04-2025_23_27_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22106278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106289, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22108321, 'dashboard_result_id': 9920369, '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_P22108321_16-04-2025_23_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22108324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108335, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22108646, 'dashboard_result_id': 9920370, '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_P22108646_16-04-2025_23_52_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22108657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108661, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1729296, 'mtr_portfolio_id': 22109162, 'dashboard_result_id': 9920371, '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_P22109162_17-04-2025_01_01_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22109169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109176, '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 = 22059117 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': 2729182, 'mtr_portfolio_id': 22059117, 'created_at': datetime.datetime(2025, 4, 17, 5, 34, 26), 'result': '0.07303210561099287', 'result_long': None, 'result_double': None}] Qualite : 0.07303210561099287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22059117 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059117_17-04-2025_05_34_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22059117 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_P22059117_17-04-2025_05_34_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059130, 'pht': 3726}}" where mtr_portfolio_id = 22059117 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22059117 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920310, 0.07303210561099287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059117_17-04-2025_05_34_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059128, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059129, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059130, '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 = 22059330 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': 2729183, 'mtr_portfolio_id': 22059330, 'created_at': datetime.datetime(2025, 4, 17, 5, 34, 49), 'result': '0.041690154691995725', 'result_long': None, 'result_double': None}] Qualite : 0.041690154691995725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22059330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059330_17-04-2025_05_34_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22059330 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_P22059330_17-04-2025_05_34_53.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059342, 'pht': 3726}}" where mtr_portfolio_id = 22059330 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22059330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920311, 0.041690154691995725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059330_17-04-2025_05_34_53.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059342, '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 = 22059785 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': 2729184, 'mtr_portfolio_id': 22059785, 'created_at': datetime.datetime(2025, 4, 17, 5, 35, 30), 'result': '0.05061391161006555', 'result_long': None, 'result_double': None}] Qualite : 0.05061391161006555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22059785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059785_17-04-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22059785 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_P22059785_17-04-2025_05_35_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059821, 'pht': 3726}}" where mtr_portfolio_id = 22059785 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22059785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920312, 0.05061391161006555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22059785_17-04-2025_05_35_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22059810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22059811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22059812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22059813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22059814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22059815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22059816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22059817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22059818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22059819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22059820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22059821, '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 = 22060293 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': 2729185, 'mtr_portfolio_id': 22060293, 'created_at': datetime.datetime(2025, 4, 17, 5, 36, 1), 'result': '0.048704927724981965', 'result_long': None, 'result_double': None}] Qualite : 0.048704927724981965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22060293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22060293_17-04-2025_05_36_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22060293 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_P22060293_17-04-2025_05_36_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22060319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22060324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060330, 'pht': 3726}}" where mtr_portfolio_id = 22060293 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22060293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920313, 0.048704927724981965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22060293_17-04-2025_05_36_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22060319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22060324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060330, '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 = 22060778 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': 2729186, 'mtr_portfolio_id': 22060778, 'created_at': datetime.datetime(2025, 4, 17, 5, 36, 30), 'result': '0.0376994519475429', 'result_long': None, 'result_double': None}] Qualite : 0.0376994519475429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22060778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22060778_17-04-2025_05_36_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22060778 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_P22060778_17-04-2025_05_36_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22060852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22060859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060863, 'pht': 3726}}" where mtr_portfolio_id = 22060778 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22060778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920314, 0.0376994519475429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22060778_17-04-2025_05_36_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22060852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22060859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060863, '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 = 22061488 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': 2729187, 'mtr_portfolio_id': 22061488, 'created_at': datetime.datetime(2025, 4, 17, 5, 37, 27), 'result': '0.07071141672727548', 'result_long': None, 'result_double': None}] Qualite : 0.07071141672727548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22061488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061488_17-04-2025_05_37_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22061488 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_P22061488_17-04-2025_05_37_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22061489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061500, 'pht': 3726}}" where mtr_portfolio_id = 22061488 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22061488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920315, 0.07071141672727548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061488_17-04-2025_05_37_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22061489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061500, '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 = 22061745 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': 2724622, 'mtr_portfolio_id': 22061745, 'created_at': datetime.datetime(2025, 4, 16, 6, 47), 'result': '0.04731059335505752', 'result_long': None, 'result_double': None}] Qualite : 0.04731059335505752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22061745 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061745_16-04-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22061745 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_P22061745_16-04-2025_06_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061757, 'pht': 3726}}" where mtr_portfolio_id = 22061745 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22061745 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920316, 0.04731059335505752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061745_16-04-2025_06_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061757, '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 = 22061893 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': 2724640, 'mtr_portfolio_id': 22061893, 'created_at': datetime.datetime(2025, 4, 16, 7, 3, 1), 'result': '0.04362710823484345', 'result_long': None, 'result_double': None}] Qualite : 0.04362710823484345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22061893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061893_16-04-2025_07_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22061893 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_P22061893_16-04-2025_07_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061943, 'pht': 3726}}" where mtr_portfolio_id = 22061893 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22061893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920317, 0.04362710823484345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061893_16-04-2025_07_03_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061943, '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 = 22062524 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': 2724738, 'mtr_portfolio_id': 22062524, 'created_at': datetime.datetime(2025, 4, 16, 7, 17), 'result': '0.04016601627955359', 'result_long': None, 'result_double': None}] Qualite : 0.04016601627955359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22062524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22062524_16-04-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22062524 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_P22062524_16-04-2025_07_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22062525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22062526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22062527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22062528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22062529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22062530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22062531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22062532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22062533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22062534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22062535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22062536, 'pht': 3726}}" where mtr_portfolio_id = 22062524 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22062524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920318, 0.04016601627955359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22062524_16-04-2025_07_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22062525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22062526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22062527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22062528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22062529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22062530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22062531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22062532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22062533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22062534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22062535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22062536, '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 = 22063272 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': 2724788, 'mtr_portfolio_id': 22063272, 'created_at': datetime.datetime(2025, 4, 16, 7, 32, 59), 'result': '0.03897279264158274', 'result_long': None, 'result_double': None}] Qualite : 0.03897279264158274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22063272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22063272_16-04-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22063272 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_P22063272_16-04-2025_07_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063285, 'pht': 3726}}" where mtr_portfolio_id = 22063272 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22063272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920319, 0.03897279264158274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22063272_16-04-2025_07_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063285, '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 = 22063888 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': 2724835, 'mtr_portfolio_id': 22063888, 'created_at': datetime.datetime(2025, 4, 16, 7, 46, 59), 'result': '0.04707989872056587', 'result_long': None, 'result_double': None}] Qualite : 0.04707989872056587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22063888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22063888_16-04-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22063888 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_P22063888_16-04-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063904, 'pht': 3726}}" where mtr_portfolio_id = 22063888 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22063888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920320, 0.04707989872056587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22063888_16-04-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22063893, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22063894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22063895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22063896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22063897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22063898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22063899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22063900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22063901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22063902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22063903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22063904, '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 = 22064719 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': 2724894, 'mtr_portfolio_id': 22064719, 'created_at': datetime.datetime(2025, 4, 16, 8, 2, 59), 'result': '0.04684223915456911', 'result_long': None, 'result_double': None}] Qualite : 0.04684223915456911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22064719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22064719_16-04-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22064719 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_P22064719_16-04-2025_08_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22064721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22064722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22064723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22064724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22064725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22064726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22064727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22064728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22064729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22064730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22064731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22064732, 'pht': 3726}}" where mtr_portfolio_id = 22064719 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22064719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920321, 0.04684223915456911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22064719_16-04-2025_08_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22064721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22064722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22064723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22064724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22064725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22064726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22064727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22064728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22064729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22064730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22064731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22064732, '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 = 22065434 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': 2724964, 'mtr_portfolio_id': 22065434, 'created_at': datetime.datetime(2025, 4, 16, 8, 16, 57), 'result': '0.04557986179704616', 'result_long': None, 'result_double': None}] Qualite : 0.04557986179704616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22065434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22065434_16-04-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22065434 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_P22065434_16-04-2025_08_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22065449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22065450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22065451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22065452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22065453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22065454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22065455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22065456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22065457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22065458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22065459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22065460, 'pht': 3726}}" where mtr_portfolio_id = 22065434 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22065434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920322, 0.04557986179704616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22065434_16-04-2025_08_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22065449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22065450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22065451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22065452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22065453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22065454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22065455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22065456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22065457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22065458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22065459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22065460, '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 = 22066281 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': 2725037, 'mtr_portfolio_id': 22066281, 'created_at': datetime.datetime(2025, 4, 16, 8, 32, 29), 'result': '0.050985913068590946', 'result_long': None, 'result_double': None}] Qualite : 0.050985913068590946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22066281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22066281 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_P22066281_16-04-2025_08_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, 'pht': 3726}}" where mtr_portfolio_id = 22066281 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22066281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920323, 0.050985913068590946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, '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 = 22066861 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': 2725093, 'mtr_portfolio_id': 22066861, 'created_at': datetime.datetime(2025, 4, 16, 8, 52, 57), 'result': '0.04992531875810852', 'result_long': None, 'result_double': None}] Qualite : 0.04992531875810852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22066861 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066861_16-04-2025_08_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22066861 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_P22066861_16-04-2025_08_52_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066873, 'pht': 3726}}" where mtr_portfolio_id = 22066861 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22066861 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920324, 0.04992531875810852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066861_16-04-2025_08_52_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066873, '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 = 22067534 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': 2725143, 'mtr_portfolio_id': 22067534, 'created_at': datetime.datetime(2025, 4, 16, 9, 2, 57), 'result': '0.05528871515468668', 'result_long': None, 'result_double': None}] Qualite : 0.05528871515468668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22067534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067534_16-04-2025_09_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22067534 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_P22067534_16-04-2025_09_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067546, 'pht': 3726}}" where mtr_portfolio_id = 22067534 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22067534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920325, 0.05528871515468668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067534_16-04-2025_09_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067546, '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 = 22068844 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': 2725257, 'mtr_portfolio_id': 22068844, 'created_at': datetime.datetime(2025, 4, 16, 9, 48, 59), 'result': '0.05742578485414331', 'result_long': None, 'result_double': None}] Qualite : 0.05742578485414331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22068844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22068844_16-04-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22068844 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_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, 'pht': 3726}}" where mtr_portfolio_id = 22068844 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22068844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920326, 0.05742578485414331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22068844_16-04-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22068845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22068846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22068847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22068848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22068849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22068850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22068851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22068852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22068853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22068854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22068855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22068856, '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 = 22069355 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': 2725297, 'mtr_portfolio_id': 22069355, 'created_at': datetime.datetime(2025, 4, 16, 10, 2, 58), 'result': '0.046502172647510345', 'result_long': None, 'result_double': None}] Qualite : 0.046502172647510345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069355_16-04-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069355 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_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, 'pht': 3726}}" where mtr_portfolio_id = 22069355 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22069355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920327, 0.046502172647510345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069355_16-04-2025_10_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069432, '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 = 22069943 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': 2725351, 'mtr_portfolio_id': 22069943, 'created_at': datetime.datetime(2025, 4, 16, 10, 19, 29), 'result': '0.048789733604911394', 'result_long': None, 'result_double': None}] Qualite : 0.048789733604911394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22069943 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22069943 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_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, 'pht': 3726}}" where mtr_portfolio_id = 22069943 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22069943 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920328, 0.048789733604911394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22069943_16-04-2025_10_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22069968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22069969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22069970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22069971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22069972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22069973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22069974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22069975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22069976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22069977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22069978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22069979, '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 = 22070661 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': 2725402, 'mtr_portfolio_id': 22070661, 'created_at': datetime.datetime(2025, 4, 16, 10, 48, 58), 'result': '0.04814310635424506', 'result_long': None, 'result_double': None}] Qualite : 0.04814310635424506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22070661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22070661 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_P22070661_16-04-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, 'pht': 3726}}" where mtr_portfolio_id = 22070661 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22070661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920329, 0.04814310635424506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22070661_16-04-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22070665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22070666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22070667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22070668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22070669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22070670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22070671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22070672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22070673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22070674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22070675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22070676, '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 = 22071782 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': 2725511, 'mtr_portfolio_id': 22071782, 'created_at': datetime.datetime(2025, 4, 16, 11, 2, 30), 'result': '0.04203931496945859', 'result_long': None, 'result_double': None}] Qualite : 0.04203931496945859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22071782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22071782_16-04-2025_11_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22071782 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_P22071782_16-04-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22071783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22071784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22071785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22071786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22071787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22071788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22071789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22071790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22071791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22071792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22071793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22071794, 'pht': 3726}}" where mtr_portfolio_id = 22071782 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22071782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920330, 0.04203931496945859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22071782_16-04-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22071783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22071784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22071785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22071786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22071787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22071788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22071789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22071790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22071791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22071792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22071793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22071794, '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 = 22072222 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': 2725561, 'mtr_portfolio_id': 22072222, 'created_at': datetime.datetime(2025, 4, 16, 11, 16, 57), 'result': '0.025415637549918314', 'result_long': None, 'result_double': None}] Qualite : 0.025415637549918314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22072222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22072222_16-04-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22072222 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_P22072222_16-04-2025_11_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22072253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072259, 'pht': 3726}}" where mtr_portfolio_id = 22072222 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22072222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920331, 0.025415637549918314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22072222_16-04-2025_11_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22072253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072259, '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 = 22072955 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': 2725607, 'mtr_portfolio_id': 22072955, 'created_at': datetime.datetime(2025, 4, 16, 11, 33, 2), 'result': '0.04039442742867696', 'result_long': None, 'result_double': None}] Qualite : 0.04039442742867696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22072955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22072955_16-04-2025_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22072955 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_P22072955_16-04-2025_11_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22072975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072986, 'pht': 3726}}" where mtr_portfolio_id = 22072955 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22072955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920332, 0.04039442742867696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22072955_16-04-2025_11_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22072975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22072976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22072977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22072978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22072979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22072980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22072981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22072982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22072983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22072984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22072985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22072986, '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 = 22073578 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': 2725665, 'mtr_portfolio_id': 22073578, 'created_at': datetime.datetime(2025, 4, 16, 11, 46, 30), 'result': '0.03969681658411427', 'result_long': None, 'result_double': None}] Qualite : 0.03969681658411427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22073578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22073578_16-04-2025_11_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22073578 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_P22073578_16-04-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22073614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22073615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22073616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22073617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22073618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22073619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22073620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22073621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22073622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22073623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22073624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22073625, 'pht': 3726}}" where mtr_portfolio_id = 22073578 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22073578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920333, 0.03969681658411427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22073578_16-04-2025_11_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22073614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22073615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22073616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22073617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22073618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22073619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22073620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22073621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22073622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22073623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22073624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22073625, '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 = 22074294 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': 2725719, 'mtr_portfolio_id': 22074294, 'created_at': datetime.datetime(2025, 4, 16, 12, 2, 31), 'result': '0.029682255329962406', 'result_long': None, 'result_double': None}] Qualite : 0.029682255329962406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22074294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074294_16-04-2025_12_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22074294 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_P22074294_16-04-2025_12_02_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22074299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074310, 'pht': 3726}}" where mtr_portfolio_id = 22074294 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22074294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920334, 0.029682255329962406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074294_16-04-2025_12_02_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22074299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074310, '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 = 22074954 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': 2725780, 'mtr_portfolio_id': 22074954, 'created_at': datetime.datetime(2025, 4, 16, 12, 38, 58), 'result': '0.04416195134620456', 'result_long': None, 'result_double': None}] Qualite : 0.04416195134620456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22074954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074954_16-04-2025_12_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22074954 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_P22074954_16-04-2025_12_38_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22074962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074966, 'pht': 3726}}" where mtr_portfolio_id = 22074954 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22074954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920335, 0.04416195134620456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074954_16-04-2025_12_38_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22074962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074966, '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 = 22077202 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': 2725981, 'mtr_portfolio_id': 22077202, 'created_at': datetime.datetime(2025, 4, 16, 13, 47, 1), 'result': '0.023579662011599264', 'result_long': None, 'result_double': None}] Qualite : 0.023579662011599264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22077202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077202_16-04-2025_13_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22077202 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_P22077202_16-04-2025_13_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077216, 'pht': 3726}}" where mtr_portfolio_id = 22077202 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22077202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920336, 0.023579662011599264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077202_16-04-2025_13_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077216, '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 = 22077619 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': 2726010, 'mtr_portfolio_id': 22077619, 'created_at': datetime.datetime(2025, 4, 16, 14, 1, 59), 'result': '0.06558759870142372', 'result_long': None, 'result_double': None}] Qualite : 0.06558759870142372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22077619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077619_16-04-2025_14_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22077619 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_P22077619_16-04-2025_14_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077634, 'pht': 3726}}" where mtr_portfolio_id = 22077619 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22077619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920337, 0.06558759870142372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077619_16-04-2025_14_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077634, '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 = 22078155 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': 2726065, 'mtr_portfolio_id': 22078155, 'created_at': datetime.datetime(2025, 4, 16, 14, 18, 58), 'result': '0.03856775810629044', 'result_long': None, 'result_double': None}] Qualite : 0.03856775810629044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22078155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078155_16-04-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22078155 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_P22078155_16-04-2025_14_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078167, 'pht': 3726}}" where mtr_portfolio_id = 22078155 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22078155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920338, 0.03856775810629044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078155_16-04-2025_14_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078167, '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 = 22078873 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': 2726106, 'mtr_portfolio_id': 22078873, 'created_at': datetime.datetime(2025, 4, 16, 14, 32, 57), 'result': '0.05084294743643577', 'result_long': None, 'result_double': None}] Qualite : 0.05084294743643577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22078873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078873_16-04-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22078873 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_P22078873_16-04-2025_14_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078914, 'pht': 3726}}" where mtr_portfolio_id = 22078873 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22078873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920339, 0.05084294743643577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078873_16-04-2025_14_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078914, '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 = 22079577 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': 2726184, 'mtr_portfolio_id': 22079577, 'created_at': datetime.datetime(2025, 4, 16, 14, 47, 28), 'result': '0.06771004724594343', 'result_long': None, 'result_double': None}] Qualite : 0.06771004724594343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22079577 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079577_16-04-2025_14_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22079577 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_P22079577_16-04-2025_14_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079589, 'pht': 3726}}" where mtr_portfolio_id = 22079577 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22079577 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920340, 0.06771004724594343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079577_16-04-2025_14_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079589, '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 = 22080323 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': 2726225, 'mtr_portfolio_id': 22080323, 'created_at': datetime.datetime(2025, 4, 16, 15, 2, 57), 'result': '0.040715677013258', 'result_long': None, 'result_double': None}] Qualite : 0.040715677013258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22080323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080323_16-04-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22080323 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_P22080323_16-04-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22080328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080335, 'pht': 3726}}" where mtr_portfolio_id = 22080323 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22080323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920341, 0.040715677013258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080323_16-04-2025_15_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22080328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080335, '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 = 22081286 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': 2726297, 'mtr_portfolio_id': 22081286, 'created_at': datetime.datetime(2025, 4, 16, 15, 18, 57), 'result': '0.04618641835603432', 'result_long': None, 'result_double': None}] Qualite : 0.04618641835603432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22081286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22081286_16-04-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22081286 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_P22081286_16-04-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22081287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22081288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22081289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22081290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22081291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22081292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22081293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22081294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22081295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22081296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22081297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22081298, 'pht': 3726}}" where mtr_portfolio_id = 22081286 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22081286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920342, 0.04618641835603432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22081286_16-04-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22081287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22081288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22081289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22081290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22081291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22081292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22081293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22081294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22081295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22081296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22081297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22081298, '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 = 22082283 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': 2726351, 'mtr_portfolio_id': 22082283, 'created_at': datetime.datetime(2025, 4, 16, 15, 33), 'result': '0.035641446210880244', 'result_long': None, 'result_double': None}] Qualite : 0.035641446210880244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22082283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22082283_16-04-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22082283 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_P22082283_16-04-2025_15_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22082313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22082314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22082315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22082316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22082317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22082318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22082319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22082320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22082321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22082322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22082323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22082324, 'pht': 3726}}" where mtr_portfolio_id = 22082283 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22082283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920343, 0.035641446210880244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22082283_16-04-2025_15_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22082313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22082314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22082315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22082316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22082317, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22082318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22082319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22082320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22082321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22082322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22082323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22082324, '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 = 22082908 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': 2726413, 'mtr_portfolio_id': 22082908, 'created_at': datetime.datetime(2025, 4, 16, 15, 48, 59), 'result': '0.04721178759005365', 'result_long': None, 'result_double': None}] Qualite : 0.04721178759005365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22082908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22082908_16-04-2025_15_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22082908 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_P22082908_16-04-2025_15_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22082934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22082935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22082936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22082937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22082938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22082939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22082940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22082941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22082942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22082943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22082944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22082945, 'pht': 3726}}" where mtr_portfolio_id = 22082908 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22082908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920344, 0.04721178759005365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22082908_16-04-2025_15_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22082934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22082935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22082936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22082937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22082938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22082939, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22082940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22082941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22082942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22082943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22082944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22082945, '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 = 22083524 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': 2726460, 'mtr_portfolio_id': 22083524, 'created_at': datetime.datetime(2025, 4, 16, 16, 2, 58), 'result': '0.04996470754478245', 'result_long': None, 'result_double': None}] Qualite : 0.04996470754478245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22083524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22083524_16-04-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22083524 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_P22083524_16-04-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22083592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22083593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22083594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22083595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22083596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22083597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22083598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22083599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22083600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22083601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22083602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22083603, 'pht': 3726}}" where mtr_portfolio_id = 22083524 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22083524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920345, 0.04996470754478245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22083524_16-04-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22083592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22083593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22083594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22083595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22083596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22083597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22083598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22083599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22083600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22083601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22083602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22083603, '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 = 22084373 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': 2726561, 'mtr_portfolio_id': 22084373, 'created_at': datetime.datetime(2025, 4, 16, 16, 17, 29), 'result': '0.07593443657041797', 'result_long': None, 'result_double': None}] Qualite : 0.07593443657041797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22084373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22084373_16-04-2025_16_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22084373 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_P22084373_16-04-2025_16_17_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22084375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22084376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22084377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22084378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22084379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22084380, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22084381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22084382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22084383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22084384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22084385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22084386, 'pht': 3726}}" where mtr_portfolio_id = 22084373 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22084373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920346, 0.07593443657041797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22084373_16-04-2025_16_17_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22084375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22084376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22084377, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22084378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22084379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22084380, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22084381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22084382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22084383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22084384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22084385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22084386, '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 = 22085147 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': 2726606, 'mtr_portfolio_id': 22085147, 'created_at': datetime.datetime(2025, 4, 16, 16, 32, 58), 'result': '0.05991093734782721', 'result_long': None, 'result_double': None}] Qualite : 0.05991093734782721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22085147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22085147_16-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22085147 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_P22085147_16-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22085172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22085173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22085174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22085175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22085176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22085177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22085178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22085179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22085180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22085181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22085182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22085183, 'pht': 3726}}" where mtr_portfolio_id = 22085147 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22085147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920347, 0.05991093734782721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22085147_16-04-2025_16_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22085172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22085173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22085174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22085175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22085176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22085177, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22085178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22085179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22085180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22085181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22085182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22085183, '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 = 22086201 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': 2726723, 'mtr_portfolio_id': 22086201, 'created_at': datetime.datetime(2025, 4, 16, 16, 46, 57), 'result': '0.04258675948510295', 'result_long': None, 'result_double': None}] Qualite : 0.04258675948510295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22086201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22086201_16-04-2025_16_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22086201 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_P22086201_16-04-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22086219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22086220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22086221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22086223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22086224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22086225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22086226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22086227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22086228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22086229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22086230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22086231, 'pht': 3726}}" where mtr_portfolio_id = 22086201 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22086201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920348, 0.04258675948510295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22086201_16-04-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22086219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22086220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22086221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22086223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22086224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22086225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22086226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22086227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22086228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22086229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22086230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22086231, '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 = 22087139 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': 2726770, 'mtr_portfolio_id': 22087139, 'created_at': datetime.datetime(2025, 4, 16, 17, 3), 'result': '0.046316305300721394', 'result_long': None, 'result_double': None}] Qualite : 0.046316305300721394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22087139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22087139_16-04-2025_17_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22087139 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_P22087139_16-04-2025_17_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22087183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22087184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22087185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22087186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22087187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22087188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22087189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22087190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22087191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22087192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22087193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22087194, 'pht': 3726}}" where mtr_portfolio_id = 22087139 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22087139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920349, 0.046316305300721394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22087139_16-04-2025_17_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22087183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22087184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22087185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22087186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22087187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22087188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22087189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22087190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22087191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22087192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22087193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22087194, '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 = 22088250 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': 2726866, 'mtr_portfolio_id': 22088250, 'created_at': datetime.datetime(2025, 4, 16, 17, 17, 29), 'result': '0.03884604635616967', 'result_long': None, 'result_double': None}] Qualite : 0.03884604635616967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22088250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22088250_16-04-2025_17_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22088250 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_P22088250_16-04-2025_17_17_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22088279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22088280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22088281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22088282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22088283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22088284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22088285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22088286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22088287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22088288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22088289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22088290, 'pht': 3726}}" where mtr_portfolio_id = 22088250 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22088250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920350, 0.03884604635616967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22088250_16-04-2025_17_17_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22088279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22088280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22088281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22088282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22088283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22088284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22088285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22088286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22088287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22088288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22088289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22088290, '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 = 22089260 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': 2726913, 'mtr_portfolio_id': 22089260, 'created_at': datetime.datetime(2025, 4, 16, 17, 32, 56), 'result': '0.0422213121529328', 'result_long': None, 'result_double': None}] Qualite : 0.0422213121529328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22089260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22089260_16-04-2025_17_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22089260 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_P22089260_16-04-2025_17_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22089284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22089285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22089286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22089287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22089288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22089289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22089290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22089291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22089292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22089293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22089294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22089295, 'pht': 3726}}" where mtr_portfolio_id = 22089260 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22089260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920351, 0.0422213121529328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22089260_16-04-2025_17_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22089284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22089285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22089286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22089287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22089288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22089289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22089290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22089291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22089292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22089293, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22089294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22089295, '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 = 22091414 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': 2727062, 'mtr_portfolio_id': 22091414, 'created_at': datetime.datetime(2025, 4, 16, 18, 16, 57), 'result': '0.02189975133270906', 'result_long': None, 'result_double': None}] Qualite : 0.02189975133270906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22091414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22091414_16-04-2025_18_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22091414 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_P22091414_16-04-2025_18_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22091415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22091416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22091417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22091418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22091419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22091420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22091421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22091422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22091423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22091424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22091425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22091426, 'pht': 3726}}" where mtr_portfolio_id = 22091414 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22091414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920352, 0.02189975133270906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22091414_16-04-2025_18_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22091415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22091416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22091417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22091418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22091419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22091420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22091421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22091422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22091423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22091424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22091425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22091426, '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 = 22092176 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': 2727107, 'mtr_portfolio_id': 22092176, 'created_at': datetime.datetime(2025, 4, 16, 18, 33), 'result': '0.044117247625150145', 'result_long': None, 'result_double': None}] Qualite : 0.044117247625150145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22092176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22092176_16-04-2025_18_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22092176 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_P22092176_16-04-2025_18_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22092215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22092216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22092217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22092218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22092219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22092220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22092221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22092222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22092223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22092224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22092225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22092226, 'pht': 3726}}" where mtr_portfolio_id = 22092176 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22092176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920353, 0.044117247625150145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22092176_16-04-2025_18_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22092215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22092216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22092217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22092218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22092219, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22092220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22092221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22092222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22092223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22092224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22092225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22092226, '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 = 22093087 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': 2727176, 'mtr_portfolio_id': 22093087, 'created_at': datetime.datetime(2025, 4, 16, 18, 48, 31), 'result': '0.03660472407718798', 'result_long': None, 'result_double': None}] Qualite : 0.03660472407718798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22093087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22093087_16-04-2025_18_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22093087 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_P22093087_16-04-2025_18_48_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22093135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22093136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22093137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22093138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22093139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22093140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22093141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22093142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22093143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22093144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22093145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22093146, 'pht': 3726}}" where mtr_portfolio_id = 22093087 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22093087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920354, 0.03660472407718798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22093087_16-04-2025_18_48_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22093135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22093136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22093137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22093138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22093139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22093140, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22093141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22093142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22093143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22093144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22093145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22093146, '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 = 22094049 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': 2727240, 'mtr_portfolio_id': 22094049, 'created_at': datetime.datetime(2025, 4, 16, 19, 2, 58), 'result': '0.044708654345533026', 'result_long': None, 'result_double': None}] Qualite : 0.044708654345533026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22094049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094049_16-04-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22094049 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_P22094049_16-04-2025_19_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094063, 'pht': 3726}}" where mtr_portfolio_id = 22094049 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22094049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920355, 0.044708654345533026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094049_16-04-2025_19_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094063, '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 = 22094837 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': 2727296, 'mtr_portfolio_id': 22094837, 'created_at': datetime.datetime(2025, 4, 16, 19, 17, 29), 'result': '0.04478587392634659', 'result_long': None, 'result_double': None}] Qualite : 0.04478587392634659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22094837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094837_16-04-2025_19_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22094837 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_P22094837_16-04-2025_19_17_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094854, 'pht': 3726}}" where mtr_portfolio_id = 22094837 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22094837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920356, 0.04478587392634659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094837_16-04-2025_19_17_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094844, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094854, '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 = 22095771 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': 2727344, 'mtr_portfolio_id': 22095771, 'created_at': datetime.datetime(2025, 4, 16, 19, 49), 'result': '0.04311464216277069', 'result_long': None, 'result_double': None}] Qualite : 0.04311464216277069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22095771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22095771_16-04-2025_19_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22095771 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_P22095771_16-04-2025_19_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22095773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22095774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22095775, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22095776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22095777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22095778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22095779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22095780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22095781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22095782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22095783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22095784, 'pht': 3726}}" where mtr_portfolio_id = 22095771 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22095771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920357, 0.04311464216277069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22095771_16-04-2025_19_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22095773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22095774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22095775, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22095776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22095777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22095778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22095779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22095780, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22095781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22095782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22095783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22095784, '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 = 22097466 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': 2727460, 'mtr_portfolio_id': 22097466, 'created_at': datetime.datetime(2025, 4, 16, 20, 2, 59), 'result': '0.04152570338007091', 'result_long': None, 'result_double': None}] Qualite : 0.04152570338007091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22097466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22097466_16-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22097466 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_P22097466_16-04-2025_20_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22097468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22097469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22097470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22097471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22097472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22097473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22097474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22097475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22097476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22097477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22097478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22097479, 'pht': 3726}}" where mtr_portfolio_id = 22097466 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22097466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920358, 0.04152570338007091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22097466_16-04-2025_20_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22097468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22097469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22097470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22097471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22097472, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22097473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22097474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22097475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22097476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22097477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22097478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22097479, '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 = 22098075 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': 2727542, 'mtr_portfolio_id': 22098075, 'created_at': datetime.datetime(2025, 4, 16, 20, 16, 58), 'result': '0.03756558825373574', 'result_long': None, 'result_double': None}] Qualite : 0.03756558825373574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22098075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22098075_16-04-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22098075 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_P22098075_16-04-2025_20_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22098118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22098128, 'pht': 3726}}" where mtr_portfolio_id = 22098075 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22098075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920359, 0.03756558825373574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22098075_16-04-2025_20_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22098118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22098128, '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 = 22099130 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': 2727591, 'mtr_portfolio_id': 22099130, 'created_at': datetime.datetime(2025, 4, 16, 20, 35), 'result': '0.04686756585228271', 'result_long': None, 'result_double': None}] Qualite : 0.04686756585228271 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22099130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22099130_16-04-2025_20_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22099130 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_P22099130_16-04-2025_20_35_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22099168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22099169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22099170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22099171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22099172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22099173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22099174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22099175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22099176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22099177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22099178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22099179, 'pht': 3726}}" where mtr_portfolio_id = 22099130 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22099130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920360, 0.04686756585228271, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22099130_16-04-2025_20_35_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22099168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22099169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22099170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22099171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22099172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22099173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22099174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22099175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22099176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22099177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22099178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22099179, '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 = 22100089 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': 2727686, 'mtr_portfolio_id': 22100089, 'created_at': datetime.datetime(2025, 4, 16, 20, 56, 30), 'result': '0.05989369441388669', 'result_long': None, 'result_double': None}] Qualite : 0.05989369441388669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22100089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22100089_16-04-2025_20_56_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22100089 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_P22100089_16-04-2025_20_56_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22100261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22100262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22100263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22100264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22100265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22100266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22100267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22100268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22100269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22100270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22100271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22100272, 'pht': 3726}}" where mtr_portfolio_id = 22100089 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22100089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920361, 0.05989369441388669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22100089_16-04-2025_20_56_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22100261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22100262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22100263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22100264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22100265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22100266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22100267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22100268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22100269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22100270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22100271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22100272, '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 = 22102128 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': 2727785, 'mtr_portfolio_id': 22102128, 'created_at': datetime.datetime(2025, 4, 16, 21, 17), 'result': '0.06391365880881739', 'result_long': None, 'result_double': None}] Qualite : 0.06391365880881739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22102128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22102128_16-04-2025_21_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22102128 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_P22102128_16-04-2025_21_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22102196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22102197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22102198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22102199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22102200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22102201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22102202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22102203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22102204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22102205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22102206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22102207, 'pht': 3726}}" where mtr_portfolio_id = 22102128 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22102128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920362, 0.06391365880881739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22102128_16-04-2025_21_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22102196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22102197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22102198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22102199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22102200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22102201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22102202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22102203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22102204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22102205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22102206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22102207, '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 = 22102653 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': 2727815, 'mtr_portfolio_id': 22102653, 'created_at': datetime.datetime(2025, 4, 16, 21, 32, 59), 'result': '0.06785631317968142', 'result_long': None, 'result_double': None}] Qualite : 0.06785631317968142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22102653 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22102653_16-04-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22102653 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_P22102653_16-04-2025_21_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22102654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22102655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22102656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22102657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22102658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22102659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22102660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22102661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22102662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22102663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22102664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22102665, 'pht': 3726}}" where mtr_portfolio_id = 22102653 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22102653 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920363, 0.06785631317968142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22102653_16-04-2025_21_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22102654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22102655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22102656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22102657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22102658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22102659, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22102660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22102661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22102662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22102663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22102664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22102665, '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 = 22103582 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': 2727880, 'mtr_portfolio_id': 22103582, 'created_at': datetime.datetime(2025, 4, 16, 21, 58, 58), 'result': '0.05958496585882836', 'result_long': None, 'result_double': None}] Qualite : 0.05958496585882836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22103582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22103582_16-04-2025_21_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22103582 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_P22103582_16-04-2025_21_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22103585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22103586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22103587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22103588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22103589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22103590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22103591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22103592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22103593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22103594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22103595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22103596, 'pht': 3726}}" where mtr_portfolio_id = 22103582 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22103582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920364, 0.05958496585882836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22103582_16-04-2025_21_58_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22103585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22103586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22103587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22103588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22103589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22103590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22103591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22103592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22103593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22103594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22103595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22103596, '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 = 22104103 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': 2727976, 'mtr_portfolio_id': 22104103, 'created_at': datetime.datetime(2025, 4, 16, 22, 2, 59), 'result': '0.04317885565795219', 'result_long': None, 'result_double': None}] Qualite : 0.04317885565795219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22104103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104103_16-04-2025_22_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22104103 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_P22104103_16-04-2025_22_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22104109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104120, 'pht': 3726}}" where mtr_portfolio_id = 22104103 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22104103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920365, 0.04317885565795219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104103_16-04-2025_22_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22104109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104120, '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 = 22104991 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': 2728034, 'mtr_portfolio_id': 22104991, 'created_at': datetime.datetime(2025, 4, 16, 22, 20, 59), 'result': '0.03274398576985799', 'result_long': None, 'result_double': None}] Qualite : 0.03274398576985799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22104991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104991_16-04-2025_22_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22104991 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_P22104991_16-04-2025_22_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105003, 'pht': 3726}}" where mtr_portfolio_id = 22104991 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22104991 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920366, 0.03274398576985799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104991_16-04-2025_22_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105003, '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 = 22105718 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': 2728056, 'mtr_portfolio_id': 22105718, 'created_at': datetime.datetime(2025, 4, 16, 22, 32, 57), 'result': '0.056745708535982355', 'result_long': None, 'result_double': None}] Qualite : 0.056745708535982355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22105718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22105718_16-04-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22105718 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_P22105718_16-04-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22105743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22105744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22105745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22105746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22105747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22105748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22105749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22105750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105754, 'pht': 3726}}" where mtr_portfolio_id = 22105718 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22105718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920367, 0.056745708535982355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22105718_16-04-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22105743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22105744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22105745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22105746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22105747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22105748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22105749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22105750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105754, '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 = 22106276 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': 2728097, 'mtr_portfolio_id': 22106276, 'created_at': datetime.datetime(2025, 4, 16, 23, 26, 59), 'result': '0.05341129390954747', 'result_long': None, 'result_double': None}] Qualite : 0.05341129390954747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22106276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106276_16-04-2025_23_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22106276 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_P22106276_16-04-2025_23_27_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22106278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106289, 'pht': 3726}}" where mtr_portfolio_id = 22106276 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22106276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920368, 0.05341129390954747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106276_16-04-2025_23_27_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22106278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106289, '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 = 22108321 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': 2728176, 'mtr_portfolio_id': 22108321, 'created_at': datetime.datetime(2025, 4, 16, 23, 32, 58), 'result': '0.05508435288586992', 'result_long': None, 'result_double': None}] Qualite : 0.05508435288586992 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22108321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108321_16-04-2025_23_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22108321 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_P22108321_16-04-2025_23_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22108324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108335, 'pht': 3726}}" where mtr_portfolio_id = 22108321 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22108321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920369, 0.05508435288586992, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108321_16-04-2025_23_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22108324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108335, '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 = 22108646 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': 2728190, 'mtr_portfolio_id': 22108646, 'created_at': datetime.datetime(2025, 4, 16, 23, 52, 57), 'result': '0.04865907904594725', 'result_long': None, 'result_double': None}] Qualite : 0.04865907904594725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22108646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108646_16-04-2025_23_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22108646 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_P22108646_16-04-2025_23_52_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22108657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108661, 'pht': 3726}}" where mtr_portfolio_id = 22108646 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22108646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920370, 0.04865907904594725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22108646_16-04-2025_23_52_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22108650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22108651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22108652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22108653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22108654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22108655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22108656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22108657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22108658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22108659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22108660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22108661, '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 = 22109162 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': 2728231, 'mtr_portfolio_id': 22109162, 'created_at': datetime.datetime(2025, 4, 17, 1, 1, 31), 'result': '0.04341481334846093', 'result_long': None, 'result_double': None}] Qualite : 0.04341481334846093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22109162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22109162_17-04-2025_01_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22109162 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_P22109162_17-04-2025_01_01_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22109169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109176, 'pht': 3726}}" where mtr_portfolio_id = 22109162 and dashboard_run_id = 1729296 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=22109162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9920371, 0.04341481334846093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22109162_17-04-2025_01_01_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22109169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109176, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22059117,22059330,22059785,22060293,22060778,22061488,22061745,22061893,22062524,22063272,22063888,22064719,22065434,22066281,22066861,22067534,22068844,22069355,22069943,22070661,22071782,22072222,22072955,22073578,22074294,22074954,22077202,22077619,22078155,22078873,22079577,22080323,22081286,22082283,22082908,22083524,22084373,22085147,22086201,22087139,22088250,22089260,22091414,22092176,22093087,22094049,22094837,22095771,22097466,22098075,22099130,22100089,22102128,22102653,22103582,22104103,22104991,22105718,22106276,22108321,22108646,22109162) result : ((1350160887,), (1350160898,), (1350160902,), (1350160940,), (1350160946,), (1350160951,), (1350161000,), (1350161005,), (1350161010,), (1350161045,), (1350161109,), (1350161115,), (1350161119,), (1350161162,), (1350161167,), (1350161217,), (1350161223,), (1350161370,), (1350161373,), (1350161412,), (1350161466,), (1350161470,), (1350161472,), (1350161474,), (1350161477,), (1350161483,), (1350161520,), (1350161526,), (1350161534,), (1350161541,), (1350161546,), (1350161578,), (1350161630,), (1350161617,), (1350161622,), (1350161627,), (1350161663,), (1350161667,), (1350161671,), (1350161675,), (1350161713,), (1350161716,), (1350161719,), (1350161722,), (1350161726,), (1350161765,), (1350161769,), (1350161771,), (1350161815,), (1350161818,), (1350161881,), (1350161884,), (1350161886,), (1350161889,), (1350161933,), (1350161938,), (1350161940,), (1350161991,), (1350161997,), (1350162001,), (1350162007,), (1350162045,), (1350162049,), (1350162051,), (1350162053,), (1350162055,), (1350162089,), (1350162095,), (1350162101,), (1350162155,), (1350162162,), (1350162170,), (1350162174,), (1350162178,), (1350162184,), (1350162250,), (1350162255,), (1350162260,), (1350162263,), (1350162312,), (1350162319,), (1350162324,), (1350162329,), (1350162333,), (1350162338,), (1350162372,), (1350162374,), (1350162377,), (1350162379,), (1350162381,), (1350162424,), (1350162428,), (1350162455,), (1350162457,), (1350162460,), (1350162549,), (1350162530,), (1350162533,), (1350162539,), (1350162543,), (1350162581,), (1350162584,), (1350162586,), (1350162592,), (1350162599,), (1350162602,), (1350162646,), (1350162650,), (1350162651,), (1350162653,), (1350162707,), (1350162714,), (1350162720,), (1350162721,), (1350162724,), (1350162731,), (1350162762,), (1350162767,), (1350162771,), (1350162775,), (1350162779,), (1350162813,), (1350162818,), (1350162829,), (1350162834,), (1350162838,), (1350162842,), (1350162871,), (1350162876,), (1350162883,), (1350162885,), (1350162938,), (1350162943,), (1350162944,), (1350162945,), (1350162947,), (1350162950,), (1350162986,), (1350162989,), (1350162992,), (1350162995,), (1350162997,), (1350163035,), (1350163041,), (1350163045,), (1350163049,), (1350163054,), (1350163059,), (1350163106,), (1350163110,), (1350163114,), (1350163118,), (1350163165,), (1350163170,), (1350163175,), (1350163179,), (1350163183,), (1350163186,), (1350163230,), (1350163235,), (1350163238,), (1350163241,), (1350163284,), (1350163290,), (1350163298,), (1350163306,), (1350163310,), (1350163378,), (1350163389,), (1350163395,), (1350163399,), (1350163405,), (1350163481,), (1350163455,), (1350163465,), (1350163475,), (1350163514,), (1350163520,), (1350163524,), (1350163530,), (1350163536,), (1350163541,), (1350163592,), (1350163594,), (1350163595,), (1350163596,), (1350163651,), (1350163654,), (1350163656,), (1350163659,), (1350163662,), (1350163666,), (1350163711,), (1350163715,), (1350163718,), (1350163721,), (1350163724,), (1350163781,), (1350163783,), (1350163786,), (1350163790,), (1350163793,), (1350163797,), (1350163843,), (1350163847,), (1350163849,), (1350163854,), (1350163905,), (1350163910,), (1350163916,), (1350163920,), (1350163926,), (1350163931,), (1350164099,), (1350164106,), (1350164112,), (1350164118,), (1350164125,), (1350164161,), (1350164168,), (1350164172,), (1350164176,), (1350164182,), (1350164188,), (1350164228,), (1350164235,), (1350164242,), (1350164246,), (1350164278,), (1350164284,), (1350164289,), (1350164294,), (1350164307,), (1350164313,), (1350164345,), (1350164350,), (1350164379,), (1350164861,), (1350164866,), (1350165251,), (1350165168,), (1350165195,), (1350165210,), (1350165236,), (1350165464,), (1350165490,), (1350165515,), (1350165542,), (1350165571,), (1350165843,), (1350165865,), (1350165890,), (1350165917,), (1350165943,), (1350165971,), (1350166207,), (1350166236,), (1350166262,), (1350166606,), (1350166632,), (1350166651,), (1350166653,), (1350166657,), (1350166692,), (1350166714,), (1350166742,), (1350166769,), (1350166797,), (1350166823,), (1350167013,), (1350167037,), (1350167042,), (1350167045,), (1350167163,), (1350167169,), (1350167173,), (1350167175,), (1350167179,), (1350167182,), (1350167240,), (1350167243,), (1350167310,), (1350167315,), (1350167317,), (1350167319,), (1350167391,), (1350167394,), (1350167396,), (1350167400,), (1350167466,), (1350167548,), (1350167716,), (1350167723,), (1350167727,), (1350167780,), (1350167784,), (1350167787,), (1350167789,), (1350167832,), (1350168809,), (1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,), (1350169335,), (1350169727,), (1350169732,), (1350169772,), (1350169778,), (1350169865,), (1350169870,), (1350169906,), (1350169912,), (1350169918,), (1350169923,), (1350169928,), (1350169941,), (1350170012,), (1350170017,), (1350170020,), (1350170023,), (1350170028,), (1350170059,), (1350170065,), (1350170071,), (1350170076,), (1350170112,), (1350170119,), (1350170123,), (1350170127,), (1350170132,), (1350170134,), (1350170166,), (1350170172,), (1350170178,), (1350170181,), (1350170232,), (1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,), (1350170918,), (1350170920,), (1350170923,), (1350170926,), (1350170928,), (1350170933,), (1350170976,), (1350170982,), (1350170987,), (1350170991,), (1350170994,), (1350171033,), (1350171037,), (1350171041,), (1350171046,), (1350171050,), (1350171053,), (1350171091,), (1350171099,), (1350171104,), (1350171107,), (1350171264,), (1350171291,), (1350171320,), (1350171346,), (1350171381,), (1350171417,), (1350171496,), (1350171518,), (1350171547,), (1350171577,), (1350171610,), (1350171897,), (1350171707,), (1350171764,), (1350171809,), (1350171854,), (1350172212,), (1350172236,), (1350172261,), (1350172288,), (1350172321,), (1350172360,), (1350172632,), (1350172680,), (1350173309,), (1350173335,), (1350173867,), (1350173896,), (1350174013,), (1350174018,), (1350174023,), (1350174046,), (1350174204,), (1350174208,), (1350174210,), (1350174219,), (1350174224,), (1350174228,), (1350174265,), (1350174274,), (1350174279,), (1350174283,), (1350174320,), (1350174344,), (1350174349,), (1350174357,), (1350174365,), (1350174385,), (1350174589,), (1350174594,), (1350174616,), (1350174643,), (1350174672,), (1350174791,), (1350174794,), (1350174797,), (1350174799,), (1350174801,), (1350174810,), (1350174939,), (1350174951,), (1350174956,), (1350174961,), (1350174964,), (1350175009,), (1350175033,), (1350175036,), (1350175039,), (1350175041,), (1350175370,), (1350175374,), (1350175377,), (1350175389,), (1350175415,), (1350175666,), (1350175567,), (1350175611,), (1350175638,), (1350175839,), (1350175920,), (1350175952,), (1350175982,), (1350176019,), (1350176033,), (1350176211,), (1350176218,), (1350176227,), (1350176262,), (1350176689,), (1350176721,), (1350176726,), (1350176756,), (1350176759,), (1350176761,), (1350176954,), (1350176958,), (1350176964,), (1350176970,), (1350176979,), (1350177093,), (1350177111,), (1350177119,), (1350177132,), (1350177201,), (1350177211,), (1350177225,), (1350177232,), (1350177235,), (1350177239,), (1350177376,), (1350177400,), (1350177407,), (1350177444,), (1350177448,), (1350177580,), (1350177585,), (1350177589,), (1350177593,), (1350177600,), (1350177604,), (1350177813,), (1350177824,), (1350177830,), (1350178114,), (1350178123,), (1350178128,), (1350178132,), (1350178136,), (1350178138,), (1350178433,), (1350178458,), (1350178484,), (1350178496,), (1350178545,), (1350178550,), (1350178556,), (1350178560,), (1350178565,), (1350178569,), (1350178609,), (1350178613,), (1350178617,), (1350178620,), (1350178683,), (1350178690,), (1350178694,), (1350178697,), (1350178701,), (1350178705,), (1350178767,), (1350178738,), (1350178745,), (1350178758,), (1350178761,), (1350178856,), (1350178862,), (1350178886,), (1350178912,), (1350179071,), (1350179090,), (1350179100,), (1350179107,), (1350179125,), (1350179158,), (1350179373,), (1350179398,), (1350179429,), (1350179445,), (1350179462,), (1350179590,), (1350179595,), (1350179602,), (1350179610,), (1350179810,), (1350179814,), (1350179819,), (1350179824,), (1350179829,), (1350179834,), (1350179870,), (1350179876,), (1350179884,), (1350179888,), (1350179892,), (1350179932,), (1350179942,), (1350179950,), (1350179963,), (1350179976,), (1350179980,), (1350180020,), (1350180024,), (1350180029,), (1350180077,), (1350180084,), (1350180093,), (1350180098,), (1350180104,), (1350180109,), (1350180142,), (1350180148,), (1350180156,), (1350180163,), (1350180168,), (1350180197,), (1350180203,), (1350180209,), (1350180222,), (1350180238,), (1350180251,), (1350180363,), (1350180374,), (1350180386,), (1350180391,), (1350180423,), (1350180475,), (1350180482,), (1350180494,), (1350180509,), (1350180515,), (1350180519,), (1350180557,), (1350180562,), (1350180568,), (1350180574,), (1350180581,), (1350180587,), (1350180665,), (1350180632,), (1350180638,), (1350180649,), (1350180654,), (1350180756,), (1350180775,), (1350180781,), (1350180785,), (1350180791,), (1350180826,), (1350180833,), (1350180931,), (1350180997,), (1350181119,), (1350181127,), (1350181132,), (1350181135,), (1350181197,), (1350181215,), (1350181331,), (1350181338,), (1350181343,), (1350181458,), (1350181470,), (1350181507,), (1350181543,), (1350181567,), (1350181581,), (1350181705,), (1350181714,), (1350181718,), (1350181722,), (1350181786,), (1350181792,), (1350181796,), (1350181801,), (1350181805,), (1350181808,), (1350181837,), (1350181844,), (1350181856,), (1350181860,), (1350181872,), (1350181933,), (1350181937,), (1350181941,), (1350181945,), (1350181949,), (1350181954,), (1350182001,), (1350182008,), (1350182023,), (1350182072,), (1350182090,), (1350182098,), (1350182103,), (1350182107,), (1350182112,), (1350182190,), (1350182218,), (1350182243,), (1350182293,), (1350182774,), (1350182781,), (1350182790,), (1350182799,), (1350182814,), (1350182818,), (1350182869,), (1350182850,), (1350182854,), (1350182861,), (1350182865,), (1350182895,), (1350182904,), (1350182916,), (1350182925,), (1350182930,), (1350182935,), (1350183027,), (1350183032,), (1350183040,), (1350183055,), (1350183093,), (1350183099,), (1350183111,), (1350183117,), (1350183122,), (1350183265,), (1350184477,), (1350184482,), (1350184485,), (1350184489,), (1350184800,), (1350184804,), (1350184849,), (1350184854,), (1350184859,), (1350184926,), (1350184969,), (1350184979,), (1350184984,), (1350184990,), (1350185277,), (1350185285,), (1350185290,), (1350185295,), (1350185298,), (1350185303,), (1350185355,), (1350185361,), (1350185366,), (1350185544,), (1350185571,), (1350185600,), (1350185627,), (1350185672,), (1350185702,), (1350185871,), (1350185907,), (1350185937,), (1350185953,), (1350186006,), (1350186011,), (1350186015,), (1350186024,), (1350186030,), (1350186036,), (1350186150,), (1350186155,), (1350186160,), (1350186166,), (1350186176,), (1350186247,), (1350186253,), (1350186257,), (1350186260,), (1350186351,), (1350186366,), (1350186375,), (1350186621,), (1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,), (1350188299,), (1350188315,), (1350188320,), (1350188322,), (1350188326,), (1350188329,), (1350188360,), (1350188366,), (1350188372,), (1350188378,), (1350188432,), (1350188443,), (1350188523,), (1350188625,), (1350189000,), (1350189029,), (1350189034,), (1350189043,), (1350189047,), (1350189056,), (1350189207,), (1350189135,), (1350189168,), (1350189181,), (1350189287,), (1350189292,), (1350189296,), (1350189299,), (1350189302,), (1350189308,), (1350189350,), (1350189355,), (1350189360,), (1350189366,), (1350189370,), (1350189436,), (1350189440,), (1350189444,), (1350189449,), (1350189454,), (1350189490,), (1350189496,), (1350189500,), (1350189504,), (1350189599,), (1350189612,), (1350189625,), (1350189633,), (1350189639,), (1350189640,), (1350189748,), (1350189751,), (1350190780,), (1350193111,), (1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,), (1350196290,), (1350196318,), (1350196344,), (1350196369,), (1350196546,), (1350203740,), (1350203766,), (1350203789,), (1350203898,), (1350203908,), (1350203912,), (1350203933,), (1350203948,), (1350204005,), (1350204013,), (1350204017,), (1350204020,), (1350204023,), (1350204054,), (1350204076,), (1350204082,), (1350204086,), (1350204091,), (1350204480,), (1350204506,), (1350204541,), (1350204572,), (1350204599,), (1350204966,), (1350204990,), (1350205039,), (1350205064,), (1350205069,), (1350205091,), (1350205255,), (1350205300,), (1350205329,), (1350205730,), (1350205741,), (1350205756,), (1350205770,), (1350205781,), (1350205799,), (1350205993,), (1350206029,), (1350206041,), (1350206069,), (1350206100,), (1350206116,), (1350206391,), (1350206411,), (1350206419,), (1350206427,), (1350206444,), (1350206758,), (1350206864,), (1350206916,), (1350206947,), (1350207044,), (1350207082,), (1350207194,), (1350207200,), (1350207208,), (1350207223,), (1350207542,), (1350207523,), (1350207528,), (1350207531,), (1350207533,), (1350207539,), (1350207704,), (1350207723,), (1350207746,), (1350207770,), (1350207775,), (1350208092,), (1350208188,), (1350208207,), (1350208401,), (1350208405,), (1350208407,), (1350208409,), (1350208416,), (1350208421,), (1350208467,), (1350208475,), (1350208481,), (1350208488,), (1350208496,), (1350208509,), (1350208600,), (1350208606,), (1350208613,), (1350208616,), (1350208708,), (1350208716,), (1350208722,), (1350208727,), (1350208800,), (1350208809,), (1350208816,), (1350208878,), (1350208886,), (1350208891,), (1350208896,), (1350208902,), (1350208907,), (1350208934,), (1350208939,), (1350208946,), (1350208953,), (1350208960,), (1350209140,), (1350209148,), (1350209153,), (1350209158,), (1350209165,), (1350209195,), (1350209200,), (1350209204,), (1350209207,), (1350209213,), (1350209265,), (1350209270,), (1350209275,), (1350209280,), (1350209389,), (1350209395,), (1350209404,), (1350209412,), (1350209420,), (1350209813,), (1350209695,), (1350209752,), (1350210393,), (1350210434,), (1350210478,), (1350210509,), (1350210550,), (1350210575,), (1350210808,), (1350210843,), (1350210886,), (1350211311,), (1350211358,), (1350211400,), (1350211436,), (1350211488,), (1350211538,), (1350212402,), (1350212446,), (1350212489,), (1350212538,), (1350212585,), (1350213437,), (1350213488,), (1350213540,), (1350213577,), (1350214181,), (1350214224,), (1350214279,), (1350214343,), (1350214394,), (1350214470,), (1350215094,), (1350215169,), (1350215226,), (1350215273,), (1350215886,), (1350215889,), (1350215892,), (1350215896,), (1350215901,), (1350216050,), (1350216072,), (1350216106,), (1350216160,), (1350216566,), (1350216592,), (1350216621,), (1350216630,), (1350216660,), (1350216906,), (1350216938,), (1350216967,), (1350216993,), (1350217123,), (1350217127,), (1350217130,), (1350217136,), (1350217162,), (1350217400,), (1350217440,), (1350217470,), (1350217497,), (1350217653,), (1350217659,), (1350217665,), (1350217672,), (1350217678,), (1350217681,), (1350217752,), (1350217730,), (1350217735,), (1350217741,), (1350217746,), (1350217793,), (1350217798,), (1350217802,), (1350217806,), (1350217812,), (1350217816,), (1350217861,), (1350217867,), (1350217873,), (1350218068,), (1350218072,), (1350218077,), (1350218082,), (1350218087,), (1350218090,), (1350218118,), (1350218123,), (1350218139,), (1350218147,), (1350218151,), (1350218299,), (1350218312,), (1350218324,), (1350218336,), (1350218343,), (1350218408,), (1350218414,), (1350218418,), (1350218422,), (1350218427,), (1350218437,), (1350218471,), (1350218473,), (1350218477,), (1350218481,), (1350218544,), (1350218548,), (1350218552,), (1350218571,), (1350218573,), (1350218578,), (1350218619,), (1350218624,), (1350218628,), (1350218632,), (1350218697,), (1350218704,), (1350218714,), (1350218719,), (1350218728,), (1350218809,), (1350218812,), (1350218815,), (1350218856,), (1350218861,), (1350218866,), (1350218871,), (1350218917,), (1350218921,), (1350218982,), (1350218986,), (1350221169,), (1350221232,), (1350221263,), (1350221338,), (1350221458,), (1350221462,), (1350221584,), (1350221638,), (1350221647,), (1350221728,), (1350221731,), (1350221736,), (1350221746,), (1350221750,), (1350221754,), (1350221861,), (1350221865,), (1350221870,), (1350221875,), (1350221877,), (1350221924,), (1350221928,), (1350221930,), (1350221934,), (1350221967,), (1350221973,), (1350222043,), (1350222056,), (1350222065,), (1350222092,), (1350222686,), (1350222690,), (1350222700,), (1350222710,), (1350222731,), (1350222746,), (1350222775,), (1350222807,), (1350222844,), (1350223126,), (1350223002,), (1350223053,), (1350223083,), (1350223492,), (1350223523,), (1350223557,), (1350223588,), (1350223631,), (1350223665,), (1350223921,), (1350223982,), (1350224015,), (1350224052,), (1350224338,), (1350224345,), (1350224351,), (1350224357,), (1350224362,), (1350224368,), (1350224810,), (1350224870,), (1350224923,), (1350224982,), (1350225557,), (1350225600,), (1350225632,), (1350225668,), (1350225725,), (1350225780,), (1350226098,), (1350226129,), (1350226224,), (1350226326,), (1350226393,), (1350226770,), (1350226780,), (1350226790,), (1350226794,), (1350226799,), (1350226853,), (1350226887,), (1350226918,), (1350226944,), (1350226973,), (1350227001,), (1350227245,), (1350227319,), (1350227326,), (1350227333,), (1350227685,), (1350227713,), (1350227718,), (1350227733,), (1350227758,), (1350227778,), (1350227881,), (1350227909,), (1350227939,), (1350227948,), (1350227976,), (1350228173,), (1350228185,), (1350228189,), (1350228193,), (1350228198,), (1350228202,), (1350228253,), (1350228257,), (1350228261,), (1350228264,), (1350228309,), (1350228314,), (1350228317,), (1350228319,), (1350228322,), (1350228326,), (1350228380,), (1350228367,), (1350228370,), (1350228376,), (1350228422,), (1350228426,), (1350228435,), (1350228437,), (1350228438,), (1350228449,), (1350228506,), (1350228510,), (1350228514,), (1350228518,), (1350228620,), (1350228626,), (1350228640,), (1350228643,), (1350228648,), (1350228652,), (1350228805,), (1350228808,), (1350228812,), (1350228816,), (1350228893,), (1350228901,), (1350228906,), (1350228909,), (1350228914,), (1350228918,), (1350228950,), (1350228955,), (1350228960,), (1350228964,), (1350229023,), (1350229029,), (1350229034,), (1350229040,), (1350229046,), (1350229049,), (1350229125,), (1350229131,), (1350229136,), (1350229147,), (1350229199,), (1350229203,), (1350229207,), (1350229212,), (1350229217,), (1350229222,), (1350229285,), (1350229291,), (1350229303,), (1350229307,), (1350229347,), (1350229349,), (1350229496,), (1350229499,), (1350229515,), (1350229522,), (1350229610,), (1350229615,), (1350229628,), (1350229639,), (1350229643,), (1350229677,), (1350229680,), (1350229682,), (1350229685,), (1350229688,), (1350229732,), (1350229740,), (1350229745,), (1350229748,), (1350229753,), (1350229867,), (1350229827,), (1350229832,), (1350229837,), (1350229862,), (1350229931,), (1350229935,), (1350229937,), (1350229942,), (1350229994,), (1350229998,), (1350230002,), (1350230005,), (1350230009,), (1350230018,), (1350230084,), (1350230088,), (1350230092,), (1350230094,), (1350230197,), (1350230202,), (1350230229,), (1350230233,), (1350230235,), (1350230359,), (1350230365,), (1350230372,), (1350230623,), (1350230896,), (1350231183,), (1350231189,), (1350231195,), (1350231199,), (1350231202,), (1350231204,), (1350231274,), (1350231279,), (1350231281,), (1350231282,), (1350231339,), (1350231357,), (1350231369,), (1350231403,), (1350231415,), (1350231418,), (1350231595,), (1350231603,), (1350231642,), (1350232185,), (1350232189,), (1350232193,), (1350232198,), (1350232207,), (1350232225,), (1350232357,), (1350232360,), (1350232364,), (1350232368,), (1350232373,), (1350232378,), (1350232444,), (1350232422,), (1350232434,), (1350232440,), (1350232631,), (1350232643,), (1350232648,), (1350232669,), (1350232685,), (1350232688,), (1350232774,), (1350232782,), (1350232791,), (1350232801,), (1350232806,), (1350233062,), (1350233076,), (1350233097,), (1350233131,), (1350233145,), (1350233196,), (1350233204,), (1350233210,), (1350233217,), (1350233223,), (1350233289,), (1350233298,), (1350233314,), (1350233875,), (1350233896,), (1350233900,), (1350233909,), (1350233965,), (1350233969,), (1350234025,), (1350234030,), (1350234035,), (1350234052,), (1350234120,), (1350234126,), (1350234129,), (1350234133,), (1350234137,), (1350234232,), (1350234240,), (1350234246,), (1350234253,), (1350234259,), (1350234293,), (1350234297,), (1350234301,), (1350234306,), (1350234313,), (1350234316,), (1350234345,), (1350234351,), (1350234354,), (1350234359,), (1350234365,), (1350234369,), (1350234406,), (1350234414,), (1350234482,), (1350234512,), (1350234539,), (1350235261,), (1350235271,), (1350235292,), (1350235364,), (1350235433,), (1350235489,), (1350235661,), (1350235714,), (1350235783,), (1350235815,), (1350236180,), (1350235975,), (1350236020,), (1350236062,), (1350236099,), (1350236147,), (1350236586,), (1350236650,), (1350238000,), (1350238599,), (1350241109,), (1350248851,), (1350262728,), (1350263127,), (1350263132,), (1350263136,), (1350263239,), (1350263248,), (1350263256,), (1350263267,), (1350263268,), (1350263288,), (1350263329,), (1350263336,), (1350263341,), (1350263345,), (1350263349,), (1350263393,), (1350263397,), (1350263401,), (1350263405,), (1350263409,), (1350263412,), (1350263485,), (1350263512,), (1350263539,), (1350263565,), (1350263586,), (1350263590,), (1350263658,), (1350263689,), (1350263719,), (1350263755,), (1350264143,), (1350264177,), (1350264224,), (1350264254,), (1350264290,), (1350264319,), (1350264536,), (1350264545,), (1350264550,), (1350264554,), (1350264571,), (1350264599,), (1350264759,), (1350264765,), (1350264770,), (1350264774,), (1350264833,), (1350264838,), (1350264847,), (1350264851,), (1350264855,), (1350264929,), (1350264910,), (1350264917,), (1350264922,), (1350264925,), (1350265005,), (1350265014,), (1350265063,), (1350265067,), (1350265071,), (1350265074,), (1350265077,), (1350265083,), (1350265118,), (1350265125,), (1350265130,), (1350265195,), (1350265203,), (1350265208,), (1350265212,), (1350265254,), (1350265263,), (1350265272,), (1350265320,), (1350265325,), (1350265329,), (1350265335,), (1350265377,), (1350265385,), (1350265389,), (1350265573,), (1350265580,), (1350265585,), (1350265590,), (1350265593,), (1350265597,), (1350265631,), (1350265635,), (1350265639,), (1350265674,), (1350265695,), (1350265727,), (1350266349,), (1350266356,), (1350266363,), (1350266366,), (1350266642,), (1350266698,), (1350266764,), (1350266826,), (1350266889,), (1350266957,), (1350267179,), (1350267238,), (1350267339,), (1350267392,), (1350267723,), (1350267611,), (1350267669,), (1350268235,), (1350268269,), (1350268300,), (1350268331,), (1350268363,), (1350268444,), (1350268451,), (1350268455,), (1350268460,), (1350268855,), (1350268912,), (1350268973,), (1350269029,), (1350269083,), (1350269140,), (1350269464,), (1350269505,), (1350269559,), (1350269587,), (1350269904,), (1350269909,), (1350269920,), (1350270773,), (1350270778,), (1350271268,), (1350271273,), (1350271329,), (1350271333,), (1350271336,), (1350271340,), (1350271378,), (1350271402,), (1350271422,), (1350271426,), (1350271445,), (1350271477,), (1350271725,), (1350271758,), (1350271788,), (1350272284,), (1350272329,), (1350272358,), (1350272387,), (1350272418,), (1350272466,), (1350273071,), (1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,), (1350274862,), (1350274867,), (1350274873,), (1350274878,), (1350274882,), (1350274887,), (1350274925,), (1350274933,), (1350274937,), (1350274940,), (1350274987,), (1350274991,), (1350274995,), (1350275002,), (1350275006,), (1350275036,), (1350275042,), (1350275050,), (1350275054,), (1350275057,), (1350275102,), (1350275106,), (1350275114,), (1350275120,), (1350275179,), (1350275182,), (1350275188,), (1350275193,), (1350275199,), (1350275204,), (1350275292,), (1350275312,), (1350275318,), (1350275323,), (1350275361,), (1350275365,), (1350275368,), (1350275371,), (1350275376,), (1350275382,), (1350275421,), (1350275427,), (1350275433,), (1350275437,), (1350275441,), (1350275446,), (1350275488,), (1350275493,), (1350275496,), (1350275500,), (1350275597,), (1350275569,), (1350275583,), (1350275588,), (1350275593,), (1350275631,), (1350275635,), (1350275639,), (1350275643,), (1350275651,), (1350275693,), (1350275697,), (1350275702,), (1350275706,), (1350275710,), (1350275768,), (1350275775,), (1350275779,), (1350275923,), (1350275951,), (1350275984,), (1350276019,), (1350276023,), (1350276026,), (1350276402,), (1350276409,), (1350276422,), (1350276432,), (1350276443,), (1350276481,), (1350276869,), (1350276919,), (1350276964,), (1350277000,), (1350277493,), (1350277524,), (1350277577,), (1350277639,), (1350278141,), (1350279009,), (1350279015,), (1350279020,), (1350279028,), (1350279083,), (1350279107,), (1350279139,), (1350279168,), (1350279199,), (1350279620,), (1350279654,), (1350279958,), (1350279987,), (1350280017,), (1350280048,), (1350280278,), (1350280307,), (1350280366,), (1350280430,), (1350280490,), (1350281019,), (1350281049,), (1350281085,), (1350281115,), (1350281184,), (1350281175,), (1350281179,), (1350281479,), (1350281533,), (1350281561,), (1350281586,), (1350281617,), (1350281647,), (1350282268,), (1350282349,), (1350282417,), (1350282470,), (1350282520,), (1350282705,), (1350282707,), (1350282710,), (1350282713,), (1350283142,), (1350283228,), (1350283308,), (1350283361,), (1350283395,), (1350283772,), (1350283803,), (1350283835,), (1350283862,), (1350284412,), (1350284444,), (1350284478,), (1350284918,), (1350284971,), (1350285133,), (1350285204,), (1350285282,), (1350285874,), (1350285916,), (1350285967,), (1350286182,), (1350286595,), (1350286656,), (1350286708,), (1350286792,), (1350286900,), (1350287013,), (1350287016,), (1350287021,), (1350287026,), (1350287030,), (1350287048,), (1350287447,), (1350287509,), (1350287567,), (1350287626,), (1350287685,), (1350287734,), (1350288705,), (1350288762,), (1350288888,), (1350288947,), (1350289009,), (1350289073,), (1350290320,), (1350289919,), (1350289987,), (1350290045,), (1350290118,), (1350290218,), (1350291381,), (1350291479,), (1350291541,), (1350292087,), (1350292156,), (1350292232,), (1350292326,), (1350293782,), (1350293910,), (1350294032,), (1350294182,), (1350294301,), (1350295095,), (1350295172,), (1350295264,), (1350295320,), (1350296025,), (1350296052,), (1350296089,), (1350296100,), (1350296154,), (1350296161,), (1350296165,), (1350296170,), (1350296263,), (1350296268,), (1350296293,), (1350296343,), (1350296647,), (1350296675,), (1350296700,), (1350296705,), (1350296828,), (1350296836,), (1350296852,), (1350297072,), (1350297078,), (1350297082,), (1350297085,), (1350297156,), (1350297162,), (1350297171,), (1350297177,), (1350297199,), (1350297253,), (1350297258,), (1350297263,), (1350297267,), (1350297271,), (1350297312,), (1350297322,), (1350297330,), (1350297509,), (1350297524,), (1350297673,), (1350298077,), (1350297913,), (1350297945,), (1350297976,), (1350297999,), (1350298006,), (1350298161,), (1350298165,), (1350298171,), (1350298175,), (1350298324,), (1350298328,), (1350298362,), (1350298376,), (1350298386,), (1350298469,), (1350298476,), (1350298483,), (1350298511,), (1350298519,), (1350298557,), (1350298562,), (1350298784,), (1350298789,), (1350298795,), (1350298801,), (1350298806,), (1350298835,), (1350298841,), (1350298846,), (1350298860,), (1350298866,), (1350298871,), (1350298903,), (1350298909,), (1350298913,), (1350298916,), (1350298963,), (1350298969,), (1350298975,), (1350299018,), (1350299022,), (1350299030,), (1350299037,), (1350299045,), (1350299276,), (1350299289,), (1350299325,), (1350299409,), (1350299414,), (1350299418,), (1350299422,), (1350299427,), (1350299432,), (1350299465,), (1350299470,), (1350299476,), (1350299480,), (1350299536,), (1350299542,), (1350299545,), (1350299598,), (1350299602,), (1350299605,), (1350299608,), (1350299611,), (1350299614,), (1350299681,), (1350299665,), (1350299675,), (1350299678,), (1350299726,), (1350299730,), (1350300093,), (1350300096,), (1350300100,), (1350300103,), (1350300111,), (1350300157,), (1350300162,), (1350300163,), (1350300170,), (1350300175,), (1350300182,), (1350300237,), (1350300242,), (1350300248,), (1350300253,), (1350300315,), (1350300320,), (1350300325,), (1350300329,), (1350300335,), (1350300337,), (1350300401,), (1350300403,), (1350300406,), (1350300408,), (1350300421,), (1350300453,), (1350300611,), (1350300615,), (1350300629,), (1350300633,), (1350301099,), (1350301110,), (1350301113,), (1350301130,), (1350301133,), (1350301251,), (1350301257,), (1350301262,), (1350301266,), (1350301267,), (1350301270,), (1350301324,), (1350301332,), (1350301347,), (1350301438,), (1350301457,), (1350301465,), (1350301479,), (1350301625,), (1350301669,), (1350301710,), (1350301759,), (1350301775,), (1350301782,), (1350301848,), (1350301933,), (1350301959,), (1350301979,), (1350302033,), (1350302035,), (1350302037,), (1350302040,), (1350302176,), (1350302124,), (1350302129,), (1350302159,), (1350302167,), (1350302171,), (1350302374,), (1350302416,), (1350302428,), (1350302434,), (1350302650,), (1350302655,), (1350302659,), (1350302708,), (1350303003,), (1350303013,), (1350303022,), (1350303026,), (1350303028,), (1350303195,), (1350303262,), (1350303306,), (1350303334,), (1350303360,), (1350303369,), (1350303422,), (1350303425,), (1350303427,), (1350303429,), (1350303432,), (1350303477,), (1350303489,), (1350303550,), (1350303553,), (1350303555,), (1350303556,), (1350303557,), (1350303610,), (1350303614,), (1350303623,), (1350303636,), (1350303681,), (1350303686,), (1350303689,), (1350303690,), (1350303756,), (1350303763,), (1350303768,), (1350303810,), (1350303815,), (1350303819,), (1350303824,), (1350303828,), (1350303968,), (1350303983,), (1350304000,), (1350304908,), (1350304940,), (1350304976,), (1350305008,), (1350305100,), (1350305127,), (1350305149,), (1350305166,), (1350305382,), (1350305362,), (1350305753,), (1350305781,), (1350305817,), (1350306220,), (1350306252,), (1350306277,), (1350306303,), (1350306330,), (1350306378,), (1350306382,), (1350306386,), (1350306409,), (1350306703,), (1350306715,), (1350306717,), (1350306862,), (1350306886,), (1350306889,), (1350306892,), (1350306896,), (1350307407,), (1350307434,), (1350307472,), (1350307520,), (1350307548,), (1350307732,), (1350307760,), (1350307789,), (1350307806,), (1350307818,), (1350307925,), (1350307928,), (1350307938,), (1350308422,), (1350308456,), (1350308489,), (1350308514,), (1350308812,), (1350308837,), (1350308871,), (1350308875,), (1350308879,), (1350309044,), (1350309049,), (1350309054,), (1350309111,), (1350309143,), (1350309170,), (1350309194,), (1350309220,), (1350309255,), (1350309622,), (1350309666,), (1350309702,), (1350309736,), (1350309790,), (1350309839,), (1350310383,), (1350310415,), (1350310440,), (1350310878,), (1350310790,), (1350310832,), (1350310863,), (1350310875,), (1350311255,), (1350311258,), (1350311272,), (1350311302,), (1350311337,), (1350311368,), (1350311795,), (1350311824,), (1350311862,), (1350311919,), (1350311960,), (1350312142,), (1350312145,), (1350312163,), (1350312188,), (1350312195,), (1350312373,), (1350312380,), (1350312386,), (1350312392,), (1350312396,), (1350312451,), (1350312453,), (1350312456,), (1350313592,), (1350313676,), (1350313683,), (1350313906,), (1350313960,), (1350314016,), (1350314066,), (1350314599,), (1350314645,), (1350314700,), (1350314757,), (1350314811,), (1350314877,), (1350315427,), (1350315483,), (1350315500,), (1350315506,), (1350315520,), (1350315773,), (1350315810,), (1350315840,), (1350316725,), (1350316498,), (1350316563,), (1350316663,), (1350317196,), (1350317336,), (1350317411,), (1350317489,), (1350317576,), (1350317653,), (1350318327,), (1350318379,), (1350318441,), (1350318517,), (1350319569,), (1350319649,), (1350319708,), (1350319750,), (1350319813,), (1350320152,), (1350320222,), (1350320322,), (1350320432,), (1350320535,), (1350320935,), (1350320939,), (1350320944,), (1350320956,), (1350321340,), (1350321380,), (1350321429,), (1350321460,), (1350321586,), (1350321590,), (1350321593,), (1350321597,), (1350321602,), (1350321737,), (1350321771,), (1350321803,), (1350321835,), (1350321902,), (1350321906,), (1350321910,), (1350321915,), (1350321958,), (1350321970,), (1350321990,), (1350321995,), (1350322106,), (1350322145,), (1350322431,), (1350322462,), (1350322492,), (1350322520,), (1350322554,), (1350322883,), (1350322896,), (1350322900,), (1350322906,), (1350323022,), (1350323060,), (1350323087,), (1350323118,), (1350323152,), (1350323183,), (1350323501,), (1350323439,), (1350323471,), (1350324173,), (1350324178,), (1350324207,), (1350324393,), (1350324473,), (1350324511,), (1350324538,), (1350324891,), (1350324935,), (1350325866,), (1350325952,), (1350326047,), (1350326130,), (1350326713,), (1350326816,), (1350326905,), (1350326979,), (1350327061,), (1350327881,), (1350327936,), (1350328907,), (1350328951,), (1350328977,), (1350328993,), (1350329357,), (1350329428,), (1350329494,), (1350329546,), (1350329875,), (1350329901,), (1350329934,), (1350329985,), (1350330796,), (1350330867,), (1350330936,), (1350331020,), (1350331683,), (1350331726,), (1350331774,), (1350331802,), (1350331842,), (1350331899,), (1350332223,), (1350332252,), (1350332281,), (1350332311,), (1350333703,), (1350333793,), (1350333820,), (1350333853,), (1350333867,), (1350333961,), (1350334015,), (1350334072,), (1350334133,), (1350334355,), (1350334319,), (1350334345,), (1350335461,), (1350335486,), (1350335556,), (1350335598,), (1350335660,), (1350336140,), (1350336240,), (1350336303,), (1350336380,), (1350336433,), (1350336956,), (1350337016,), (1350337045,), (1350337094,), (1350337135,), (1350337423,), (1350337450,), (1350337481,), (1350337510,), (1350338086,), (1350338193,), (1350338269,), (1350338338,), (1350338398,), (1350338452,), (1350339370,), (1350339410,), (1350339467,), (1350339483,), (1350339753,), (1350339783,), (1350339814,), (1350339845,), (1350339893,), (1350339949,), (1350340526,), (1350340558,), (1350340584,), (1350340606,), (1350340612,), (1350340628,), (1350340821,), (1350340831,), (1350340842,), (1350341042,), (1350341080,), (1350341130,), (1350341157,), (1350341189,), (1350341216,), (1350341524,), (1350341555,), (1350341562,), (1350341567,), (1350341605,), (1350341725,), (1350341730,), (1350341735,), (1350341752,), (1350341780,), (1350341807,), (1350342271,), (1350342328,), (1350342632,), (1350342662,), (1350342719,), (1350342754,), (1350342778,), (1350343160,), (1350343063,), (1350343097,), (1350343129,), (1350343142,), (1350343359,), (1350343383,), (1350343389,), (1350343409,), (1350343654,), (1350343663,), (1350343702,), (1350343718,), (1350343724,), (1350343833,), (1350343861,), (1350343896,), (1350343924,), (1350343958,), (1350343994,), (1350344000,), (1350344008,), (1350344240,), (1350344269,), (1350344274,), (1350344279,), (1350344283,), (1350344325,), (1350344332,), (1350344371,), (1350344405,), (1350344420,), (1350344425,), (1350344459,), (1350344466,), (1350344470,), (1350344476,), (1350344667,), (1350344696,), (1350344724,), (1350344754,), (1350345227,), (1350345257,), (1350345284,), (1350345314,), (1350345367,), (1350345856,), (1350345871,), (1350345879,), (1350345908,), (1350345939,), (1350346383,), (1350346427,), (1350346481,), (1350346736,), (1350346763,), (1350346774,), (1350346777,), (1350346877,), (1350346886,), (1350346892,), (1350346897,), (1350346968,), (1350346975,), (1350346997,), (1350347029,), (1350347060,), (1350347568,), (1350360239,), (1350361235,), (1350361270,), (1350361603,), (1350361639,), (1350361669,), (1350361706,), (1350361931,), (1350361993,), (1350361994,), (1350361996,), (1350361997,), (1350362001,), (1350362003,), (1350362046,), (1350362052,), (1350362055,), (1350362193,), (1350362220,), (1350362246,), (1350362275,), (1350362302,), (1350362577,), (1350362581,), (1350362846,), (1350362918,), (1350363005,), (1350363078,), (1350363123,), (1350363170,), (1350363440,), (1350363491,), (1350363562,), (1350363624,), (1350363667,), (1350364208,), (1350364271,), (1350365019,), (1350365059,), (1350365123,), (1350365180,), (1350365244,), (1350365292,), (1350365814,), (1350365876,), (1350365956,), (1350366028,), (1350366100,), (1350366178,), (1350366765,), (1350366794,), (1350366820,), (1350367242,), (1350367300,), (1350367460,), (1350367550,), (1350367609,), (1350367642,), (1350368278,), (1350368162,), (1350368196,), (1350368230,), (1350368640,), (1350368669,), (1350368697,), (1350369152,), (1350369199,), (1350369252,), (1350369284,), (1350369323,), (1350369615,), (1350369684,), (1350369755,), (1350369833,), (1350369912,), (1350370536,), (1350370561,), (1350370592,), (1350370635,), (1350370688,), (1350370748,), (1350371474,), (1350371758,), (1350372045,), (1350373599,), (1350373672,), (1350373738,), (1350374552,), (1350374689,), (1350374745,), (1350374782,), (1350374933,), (1350375388,), (1350375414,), (1350375422,), (1350376253,), (1350376280,), (1350376295,), (1350376479,), (1350376512,), (1350377157,), (1350377220,), (1350377296,), (1350377361,), (1350377414,), (1350377860,), (1350377888,), (1350377912,), (1350377917,), (1350377923,), (1350377928,), (1350378061,), (1350378065,), (1350378069,), (1350378087,), (1350378120,), (1350378137,), (1350378366,), (1350378369,), (1350378372,), (1350378464,), (1350378446,), (1350378450,), (1350378454,), (1350378458,), (1350378605,), (1350378611,), (1350378615,), (1350378637,), (1350378666,), (1350378844,), (1350378870,), (1350378905,), (1350378934,), (1350378937,), (1350378941,), (1350379231,), (1350379403,), (1350379589,), (1350379783,), (1350380029,), (1350380065,), (1350380071,), (1350380090,), (1350380266,), (1350380571,), (1350380576,), (1350380580,), (1350380581,), (1350380761,), (1350380836,), (1350380841,), (1350380847,), (1350380851,), (1350380857,), (1350380978,), (1350380990,), (1350381020,), (1350381051,), (1350381145,), (1350381149,), (1350381153,), (1350381156,), (1350381161,), (1350381226,), (1350381230,), (1350381233,), (1350381238,), (1350381242,), (1350381283,), (1350381289,), (1350381326,), (1350381344,), (1350381548,), (1350381560,), (1350381567,), (1350382239,), (1350382324,), (1350382384,), (1350382426,), (1350382455,), (1350382808,), (1350382868,), (1350382919,), (1350382966,), (1350383025,), (1350386749,), (1350386674,), (1350388034,), (1350388141,), (1350388233,), (1350388413,), (1350388495,), (1350388577,), (1350389002,), (1350389058,), (1350389119,), (1350389188,), (1350390192,), (1350390350,), (1350390456,), (1350390545,), (1350390607,), (1350391572,), (1350391648,), (1350391729,), (1350392274,), (1350392374,), (1350392453,), (1350392577,), (1350392640,), (1350393150,), (1350393204,), (1350393284,), (1350394068,), (1350394102,), (1350394143,), (1350394191,), (1350394253,), (1350394459,), (1350394463,), (1350394468,), (1350394739,), (1350394764,), (1350394798,), (1350394823,), (1350394857,), (1350394889,), (1350395021,), (1350395049,), (1350395078,), (1350395105,), (1350395130,), (1350395162,), (1350395649,), (1350395655,), (1350395664,), (1350396185,), (1350396066,), (1350396082,), (1350396110,), (1350396662,), (1350396711,), (1350396778,), (1350396811,), (1350397539,), (1350397612,), (1350397682,), (1350397749,), (1350397862,), (1350397953,), (1350398471,), (1350398511,), (1350398568,), (1350398857,), (1350399630,), (1350399673,), (1350399705,), (1350399758,), (1350400475,), (1350400532,), (1350400589,), (1350400645,), (1350400709,), (1350401249,), (1350401256,), (1350401306,), (1350401380,), (1350401478,), (1350402359,), (1350402391,), (1350402497,), (1350402553,), (1350402578,), (1350402713,), (1350402747,), (1350402786,), (1350402818,), (1350403059,), (1350403108,), (1350403130,), (1350403136,), (1350403137,), (1350403146,), (1350403454,), (1350403535,), (1350403564,), (1350403595,), (1350403623,), (1350403999,), (1350404027,), (1350404071,), (1350404098,), (1350404137,), (1350404401,), (1350404411,), (1350404496,), (1350404867,), (1350404896,), (1350404928,), (1350404934,), (1350405275,), (1350405301,), (1350405323,), (1350405326,), (1350405329,), (1350405332,), (1350405698,), (1350405547,), (1350405597,), (1350405648,), (1350406179,), (1350406206,), (1350406234,), (1350406414,), (1350406596,), (1350406650,), (1350407226,), (1350407264,), (1350407297,), (1350407657,), (1350407685,), (1350407773,), (1350407857,), (1350407951,), (1350408046,), (1350408411,), (1350408437,), (1350408458,), (1350408478,), (1350408513,), (1350408901,), (1350408950,), (1350408975,), (1350409002,), (1350409029,), (1350409429,), (1350409468,), (1350409504,), (1350409541,), (1350409571,), (1350409875,), (1350409882,), (1350409888,), (1350409909,), (1350409917,), (1350409952,), (1350410247,), (1350410274,), (1350410316,), (1350411047,), (1350411051,), (1350411074,), (1350411135,), (1350411211,), (1350411281,), (1350411952,), (1350412008,), (1350412066,), (1350412790,), (1350412839,), (1350412870,), (1350412899,), (1350413386,), (1350413418,), (1350413447,), (1350413476,), (1350413504,), (1350413536,), (1350413664,), (1350424165,), (1350424115,), (1350427485,), (1350427561,), (1350427650,), (1350427723,), (1350427794,), (1350427844,), (1350428372,), (1350428444,), (1350429546,), (1350429606,), (1350429633,), (1350430263,), (1350430380,), (1350430470,), (1350430562,), (1350430758,), (1350430817,), (1350431124,), (1350431155,), (1350431205,), (1350431636,), (1350431665,), (1350431696,), (1350431725,), (1350431753,), (1350432152,), (1350432178,), (1350432205,), (1350432234,), (1350432268,), (1350432401,), (1350432406,), (1350433030,), (1350433037,), (1350433045,), (1350433331,), (1350433292,), (1350433301,), (1350433663,), (1350433700,), (1350433730,), (1350433747,), (1350433749,), (1350433835,), (1350433869,), (1350433880,), (1350433883,), (1350433887,), (1350434098,), (1350434126,), (1350434155,), (1350434770,), (1350434804,), (1350434888,), (1350435695,), (1350435882,), (1350436209,), (1350436271,), (1350436351,), (1350437079,), (1350437242,), (1350437287,), (1350437389,), (1350437486,), (1350437584,), (1350438235,), (1350438287,), (1350438337,), (1350438393,), (1350438446,), (1350439130,), (1350439160,), (1350439165,), (1350439190,), (1350439588,), (1350439661,), (1350439706,), (1350439752,), (1350439814,), (1350439852,), (1350440503,), (1350440546,), (1350440561,), (1350440571,), (1350440585,), (1350440660,), (1350440664,), (1350440668,), (1350441111,), (1350441164,), (1350441547,), (1350441592,), (1350441624,), (1350441642,), (1350441899,), (1350441929,), (1350441955,), (1350441967,), (1350442516,), (1350442407,), (1350442452,), (1350442484,), (1350443115,), (1350443170,), (1350443206,), (1350443729,), (1350443758,), (1350443812,), (1350444186,), (1350444195,), (1350444340,), (1350444345,), (1350444359,), (1350444365,), (1350444499,), (1350444527,), (1350444555,), (1350444829,), (1350444841,), (1350444847,), (1350444869,), (1350445251,), (1350445264,), (1350445291,), (1350445457,), (1350445460,), (1350445464,), (1350445468,), (1350445472,), (1350445514,), (1350445522,), (1350445526,), (1350445970,), (1350446029,), (1350446063,), (1350446111,), (1350446533,), (1350446588,), (1350446639,), (1350446672,), (1350446705,), (1350446733,), (1350446946,), (1350447064,), (1350447085,), (1350447304,), (1350447311,), (1350447316,), (1350447321,), (1350447326,), (1350447330,), (1350447564,), (1350447569,), (1350447573,), (1350449196,), (1350448940,), (1350448991,), (1350449039,), (1350449079,), (1350449135,), (1350449638,), (1350449691,), (1350449750,), (1350450145,), (1350450172,), (1350450199,), (1350450230,), (1350450258,), (1350450289,), (1350450565,), (1350450593,), (1350450622,), (1350451022,), (1350451089,), (1350451091,), (1350451110,), (1350451645,), (1350451699,), (1350451752,), (1350451806,), (1350451860,), (1350452626,), (1350452703,), (1350452806,), (1350453682,), (1350453739,), (1350454215,), (1350454244,), (1350454283,), (1350454349,), (1350454396,), (1350455148,), (1350464185,), (1350470077,), (1350470572,), (1350470901,), (1350470914,), (1350471243,), (1350471293,), (1350471348,), (1350471815,), (1350471862,), (1350471897,), (1350471924,), (1350471954,), (1350472366,), (1350472370,), (1350472374,), (1350472377,), (1350472596,), (1350472632,), (1350472668,), (1350473145,), (1350473154,), (1350473163,), (1350473178,), (1350473233,), (1350473277,), (1350473677,), (1350473726,), (1350473773,), (1350474035,), (1350474040,), (1350474077,), (1350474106,), (1350474131,), (1350474537,), (1350474608,), (1350475277,), (1350475160,), (1350475165,), (1350475183,), (1350475235,), (1350475553,), (1350475557,), (1350475561,), (1350475669,), (1350476397,), (1350476420,), (1350476432,), (1350476465,), (1350476545,), (1350476688,), (1350476691,), (1350476694,), (1350476706,), (1350477045,), (1350477074,), (1350477107,), (1350477135,), (1350477165,), (1350477471,), (1350477503,), (1350477523,), (1350477540,), (1350477576,), (1350477768,), (1350477771,), (1350477795,), (1350477818,), (1350477828,), (1350477918,), (1350477921,), (1350477924,), (1350477926,), (1350478086,), (1350478115,), (1350478163,), (1350478185,), (1350478189,), (1350478332,), (1350478348,), (1350478377,), (1350478423,), (1350478429,), (1350478502,), (1350478648,), (1350478662,), (1350478675,), (1350478735,), (1350478743,), (1350478773,), (1350478800,), (1350478836,), (1350479053,), (1350479093,), (1350479127,), (1350479177,), (1350479194,), (1350479199,), (1350479297,), (1350479304,), (1350479308,), (1350479311,), (1350479318,), (1350479796,), (1350479841,), (1350479881,), (1350480366,), (1350480237,), (1350480266,), (1350480299,), (1350480337,), (1350480428,), (1350480449,), (1350480482,), (1350480512,), (1350480544,), (1350480574,), (1350480723,), (1350480729,), (1350480735,), (1350480885,), (1350480891,), (1350480899,), (1350480911,), (1350480959,), (1350481557,), (1350481615,), (1350481672,), (1350487437,), (1350491659,), (1350490969,), (1350491646,), (1350491651,), (1350491656,), (1350491736,), (1350491783,), (1350491836,), (1350491879,), (1350495010,), (1350495399,), (1350496652,), (1350496848,), (1350496938,), (1350497038,), (1350501830,), (1350504960,), (1350505026,), (1350510998,), (1350510330,), (1350510947,), (1350510971,), (1350511972,), (1350512030,), (1350512047,), (1350512059,), (1350512335,), (1350512353,), (1350512371,), (1350512385,), (1350512392,), (1350512395,), (1350512468,), (1350512482,), (1350512493,), (1350512547,), (1350512574,), (1350512907,), (1350512909,), (1350512911,), (1350512913,), (1350512931,), (1350512958,), (1350513101,), (1350513115,), (1350513126,), (1350513133,), (1350513140,), (1350513146,), (1350513451,), (1350513560,), (1350513569,), (1350513583,), (1350513710,), (1350513715,), (1350513719,), (1350513722,), (1350513739,), (1350513742,), (1350513770,), (1350513772,), (1350513774,), (1350513781,), (1350513972,), (1350513976,), (1350513989,), (1350513998,), (1350514000,), (1350514054,), (1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,), (1350515626,), (1350515630,), (1350515633,), (1350515636,), (1350515638,), (1350515759,), (1350559544,), (1350560434,), (1350560570,), (1350560626,), (1350560693,), (1350560751,), (1350561411,), (1350561456,), (1350561508,), (1350561827,), (1350561839,), (1350561846,), (1350562135,), (1350562188,), (1350562240,), (1350562832,), (1350562623,), (1350562650,), (1350562678,), (1350562718,), (1350562779,), (1350563128,), (1350563150,), (1350563178,), (1350563184,), (1350563195,), (1350563255,), (1350563282,), (1350563308,), (1350563333,), (1350563366,), (1350563752,), (1350563754,), (1350563756,), (1350563787,), (1350563797,), (1350563802,), (1350563808,), (1350563809,), (1350563814,), (1350563831,), (1350563836,), (1350563874,), (1350563876,), (1350563878,), (1350563879,), (1350563881,), (1350563919,), (1350563923,), (1350563927,), (1350563980,), (1350563983,), (1350563986,), (1350563989,), (1350564185,), (1350564212,), (1350564221,), (1350564223,), (1350564226,), (1350564229,), (1350564265,), (1350564268,), (1350564271,), (1350564281,), (1350564302,), (1350564314,), (1350564319,), (1350564322,), (1350564325,), (1350564331,), (1350564361,), (1350564363,), (1350564366,), (1350564368,), (1350564372,), (1350564373,), (1350564405,), (1350564408,), (1350565710,), (1350565650,), (1350565654,), (1350565657,), (1350565661,), (1350565684,), (1350565844,), (1350565848,), (1350565852,), (1350565856,), (1350565858,), (1350565893,), (1350565901,), (1350565905,), (1350565934,), (1350565935,), (1350565938,), (1350566009,), (1350566011,), (1350566560,), (1350567399,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 13, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22061488]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] map_info['map_portfolio_photo'] : {22061488: [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782]} final : True mtd_id 4302 list_pids : [1350169341, 1350169033, 1350169032, 1350169029, 1350168993, 1350168990, 1350168987, 1350168979, 1350168962, 1350168952, 1350168787, 1350168784, 1350168782] Looping around the photos to save general results len do output : 1 /22061488Didn'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, '2729187') ('4302', '22061488', '1350169341', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187') ('4302', None, None, None, None, None, None, None, '2729187') ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22061488', 'None', None, None, None, None, '2729187'), ('4302', '22061488', '1350169341', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169033', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169032', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350169029', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168993', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168990', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168987', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168979', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168962', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168952', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168787', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168784', None, None, None, None, None, '2729187'), ('4302', '22061488', '1350168782', None, None, None, None, None, '2729187')] time used for this insertion : 0.015382051467895508 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5488991737365723 time spend to save output : 0.015618324279785156 total time spend for step 5 : 3.5645174980163574 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 (2729187) 2.64user 2.41system 0:11.27elapsed 44%CPU (0avgtext+0avgdata 159476maxresident)k 16248inputs+11928outputs (148major+71783minor)pagefaults 0swaps