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 : 19342 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 (3434656) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3434656) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641106 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3434656'] with mtr_portfolio_ids : ['25641106'] and first list_photo_ids : [] new path : /proc/19342/ Name: python3 Umask: 0002 State: R (running) Tgid: 19342 Ngid: 0 Pid: 19342 PPid: 19341 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 19342 NSpid: 19342 NSpgid: 18106 NSsid: 18106 VmPeak: 1106968 kB VmSize: 1106968 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98792 kB VmRSS: 98792 kB RssAnon: 59816 kB RssFile: 38976 kB RssShmem: 0 kB VmData: 865720 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 40 nonvoluntary_ctxt_switches: 118 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '19342', 'Ngid': '0', 'Pid': '19342', 'PPid': '19341', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '19342', 'NSpid': '19342', 'NSpgid': '18106', 'NSsid': '18106', 'VmPeak': '1106968 kB', 'VmSize': '1106968 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98792 kB', 'VmRSS': '98792 kB', 'RssAnon': '59816 kB', 'RssFile': '38976 kB', 'RssShmem': '0 kB', 'VmData': '865720 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '40', 'nonvoluntary_ctxt_switches': '118'} ('datou_batch_current', '19342', '1106968', '0', '1106968', '865720', '98792', b'', 'marlene', '3434656') 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 (25641106) 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 (3434656 ) ) 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 (25641106) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375133424, 'portfolio_id': 25641106}, {'photo_id': 1375133422, 'portfolio_id': 25641106}, {'photo_id': 1375133421, 'portfolio_id': 25641106}, {'photo_id': 1375133419, 'portfolio_id': 25641106}, {'photo_id': 1375133406, 'portfolio_id': 25641106}, {'photo_id': 1375133403, 'portfolio_id': 25641106}, {'photo_id': 1375133394, 'portfolio_id': 25641106}, {'photo_id': 1375133389, 'portfolio_id': 25641106}, {'photo_id': 1375133386, 'portfolio_id': 25641106}, {'photo_id': 1375133384, 'portfolio_id': 25641106}, {'photo_id': 1375133340, 'portfolio_id': 25641106}, {'photo_id': 1375133335, 'portfolio_id': 25641106}, {'photo_id': 1375133331, 'portfolio_id': 25641106}, {'photo_id': 1375133328, 'portfolio_id': 25641106}, {'photo_id': 1375133326, 'portfolio_id': 25641106}, {'photo_id': 1375133325, 'portfolio_id': 25641106}, {'photo_id': 1375133304, 'portfolio_id': 25641106}, {'photo_id': 1375133302, 'portfolio_id': 25641106}, {'photo_id': 1375133301, 'portfolio_id': 25641106}, {'photo_id': 1375133300, 'portfolio_id': 25641106}, {'photo_id': 1375133299, 'portfolio_id': 25641106}, {'photo_id': 1375133278, 'portfolio_id': 25641106}, {'photo_id': 1375133277, 'portfolio_id': 25641106}, {'photo_id': 1375133276, 'portfolio_id': 25641106}, {'photo_id': 1375133242, 'portfolio_id': 25641106}, {'photo_id': 1375133236, 'portfolio_id': 25641106}, {'photo_id': 1375133223, 'portfolio_id': 25641106}, {'photo_id': 1375133220, 'portfolio_id': 25641106}, {'photo_id': 1375133218, 'portfolio_id': 25641106}, {'photo_id': 1375133216, 'portfolio_id': 25641106}, {'photo_id': 1375133202, 'portfolio_id': 25641106}, {'photo_id': 1375133200, 'portfolio_id': 25641106}, {'photo_id': 1375133198, 'portfolio_id': 25641106}, {'photo_id': 1375133196, 'portfolio_id': 25641106}, {'photo_id': 1375133184, 'portfolio_id': 25641106}, {'photo_id': 1375133182, 'portfolio_id': 25641106}, {'photo_id': 1375133180, 'portfolio_id': 25641106}, {'photo_id': 1375133179, 'portfolio_id': 25641106}, {'photo_id': 1375133176, 'portfolio_id': 25641106}, {'photo_id': 1375133175, 'portfolio_id': 25641106}, {'photo_id': 1375133170, 'portfolio_id': 25641106}, {'photo_id': 1375133169, 'portfolio_id': 25641106}, {'photo_id': 1375133165, 'portfolio_id': 25641106}, {'photo_id': 1375133164, 'portfolio_id': 25641106}, {'photo_id': 1375133161, 'portfolio_id': 25641106}, {'photo_id': 1375133160, 'portfolio_id': 25641106}, {'photo_id': 1375133146, 'portfolio_id': 25641106}, {'photo_id': 1375133145, 'portfolio_id': 25641106}, {'photo_id': 1375133142, 'portfolio_id': 25641106}, {'photo_id': 1375133136, 'portfolio_id': 25641106}, {'photo_id': 1375133127, 'portfolio_id': 25641106}, {'photo_id': 1375133101, 'portfolio_id': 25641106}, {'photo_id': 1375133048, 'portfolio_id': 25641106}, {'photo_id': 1375133047, 'portfolio_id': 25641106}, {'photo_id': 1375133042, 'portfolio_id': 25641106}, {'photo_id': 1375133009, 'portfolio_id': 25641106}, {'photo_id': 1375132993, 'portfolio_id': 25641106}, {'photo_id': 1375132990, 'portfolio_id': 25641106}, {'photo_id': 1375132786, 'portfolio_id': 25641106}, {'photo_id': 1375132783, 'portfolio_id': 25641106}, {'photo_id': 1375132779, 'portfolio_id': 25641106}, {'photo_id': 1375132776, 'portfolio_id': 25641106}, {'photo_id': 1375132773, 'portfolio_id': 25641106}, {'photo_id': 1375132771, 'portfolio_id': 25641106}, {'photo_id': 1375132437, 'portfolio_id': 25641106}, {'photo_id': 1375132411, 'portfolio_id': 25641106}, {'photo_id': 1375132384, 'portfolio_id': 25641106}, {'photo_id': 1375132339, 'portfolio_id': 25641106}, {'photo_id': 1375132284, 'portfolio_id': 25641106}, {'photo_id': 1375131842, 'portfolio_id': 25641106}, {'photo_id': 1375131816, 'portfolio_id': 25641106}, {'photo_id': 1375131790, 'portfolio_id': 25641106}, {'photo_id': 1375131767, 'portfolio_id': 25641106}, {'photo_id': 1375131699, 'portfolio_id': 25641106}] map_portfolio_id_photo_id: {25641106: [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326, 1375133325, 1375133304, 1375133302, 1375133301, 1375133300, 1375133299, 1375133278, 1375133277, 1375133276, 1375133242, 1375133236, 1375133223, 1375133220, 1375133218, 1375133216, 1375133202, 1375133200, 1375133198, 1375133196, 1375133184, 1375133182, 1375133180, 1375133179, 1375133176, 1375133175, 1375133170, 1375133169, 1375133165, 1375133164, 1375133161, 1375133160, 1375133146, 1375133145, 1375133142, 1375133136, 1375133127, 1375133101, 1375133048, 1375133047, 1375133042, 1375133009, 1375132993, 1375132990, 1375132786, 1375132783, 1375132779, 1375132776, 1375132773, 1375132771, 1375132437, 1375132411, 1375132384, 1375132339, 1375132284, 1375131842, 1375131816, 1375131790, 1375131767, 1375131699]} ##### 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.015113353729248047 #### 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 Mon Aug 4 16:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25641106) 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 : 25641106 get user id for portfolio 25641106 get sub ptf for main ptf 25641106, type 3726 and hashtags ['environnement', 'cartonnette', 'kraft', 'mal_croppe', 'autre_refus', 'flou', 'Carton_brun', 'Carton_gris', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25641106 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','kraft','mal_croppe','autre_refus','flou','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier')) 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`=25641106 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','kraft','mal_croppe','autre_refus','flou','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25641106, 'sub_port_id': 25641164, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288505, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'papier': {'main_port_id': 25641106, 'sub_port_id': 25641165, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288506, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'Carton_gris': {'main_port_id': 25641106, 'sub_port_id': 25641166, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288507, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'cartonnette': {'main_port_id': 25641106, 'sub_port_id': 25641167, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288508, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25641106, 'sub_port_id': 25641168, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288509, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'plastique': {'main_port_id': 25641106, 'sub_port_id': 25641169, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288510, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'autre_refus': {'main_port_id': 25641106, 'sub_port_id': 25641170, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288511, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'mal_croppe': {'main_port_id': 25641106, 'sub_port_id': 25641171, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288512, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'flou': {'main_port_id': 25641106, 'sub_port_id': 25641172, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288513, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'environnement': {'main_port_id': 25641106, 'sub_port_id': 25641173, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288514, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'Carton_brun': {'main_port_id': 25641106, 'sub_port_id': 25641174, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288515, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}, 'metal': {'main_port_id': 25641106, 'sub_port_id': 25641175, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288516, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641164 , 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=25641106 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 (25641164) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641165 , 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=25641106 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 (25641165) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641166 , 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=25641106 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 (25641166) result : ((1375133190,), (1375133191,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641167 , 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=25641106 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 (25641167) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641168 , 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=25641106 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 (25641168) result : ((1375133186,), (1375133187,), (1375133188,), (1375133377,), (1375133378,), (1375133379,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641169 , 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=25641106 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 (25641169) result : ((1375133323,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641170 , 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=25641106 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 (25641170) result : ((1375133189,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641171 , 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=25641106 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 (25641171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641172 , 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=25641106 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 (25641172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641173 , 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=25641106 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 (25641173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641174 , 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=25641106 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 (25641174) result : ((1375133192,), (1375133193,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25641175 , 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=25641106 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 (25641175) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25641106) result : ((1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) 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 (1375133200,1375133300) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25641106 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','kraft','mal_croppe','autre_refus','flou','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier')) 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`=25641106 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','kraft','mal_croppe','autre_refus','flou','Carton_brun','Carton_gris','Teint_Dans_La_Masse','plastique','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25641106, 'sub_port_id': 25641178, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288517, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'papier': {'main_port_id': 25641106, 'sub_port_id': 25641179, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288518, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'Carton_gris': {'main_port_id': 25641106, 'sub_port_id': 25641180, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288519, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'cartonnette': {'main_port_id': 25641106, 'sub_port_id': 25641181, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288520, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 25641106, 'sub_port_id': 25641182, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288521, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'plastique': {'main_port_id': 25641106, 'sub_port_id': 25641183, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288522, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'autre_refus': {'main_port_id': 25641106, 'sub_port_id': 25641184, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288523, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'mal_croppe': {'main_port_id': 25641106, 'sub_port_id': 25641185, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288524, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'flou': {'main_port_id': 25641106, 'sub_port_id': 25641186, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288525, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'environnement': {'main_port_id': 25641106, 'sub_port_id': 25641187, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288526, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'Carton_brun': {'main_port_id': 25641106, 'sub_port_id': 25641188, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288527, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}, 'metal': {'main_port_id': 25641106, 'sub_port_id': 25641189, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17288528, 'last_updated_at': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 16, 10, 56), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 16, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25641189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25641175 lien utilise dans velours : https://www.fotonower.com/velours/25641178,25641179,25641180,25641181,25641182,25641183,25641184,25641185,25641186,25641187,25641188,25641189?tags=kraft,papier,Carton_gris,cartonnette,Teint_Dans_La_Masse,plastique,autre_refus,mal_croppe,flou,environnement,Carton_brun,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25641106]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] map_info['map_portfolio_photo'] : {25641106: [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326, 1375133325, 1375133304, 1375133302, 1375133301, 1375133300, 1375133299, 1375133278, 1375133277, 1375133276, 1375133242, 1375133236, 1375133223, 1375133220, 1375133218, 1375133216, 1375133202, 1375133200, 1375133198, 1375133196, 1375133184, 1375133182, 1375133180, 1375133179, 1375133176, 1375133175, 1375133170, 1375133169, 1375133165, 1375133164, 1375133161, 1375133160, 1375133146, 1375133145, 1375133142, 1375133136, 1375133127, 1375133101, 1375133048, 1375133047, 1375133042, 1375133009, 1375132993, 1375132990, 1375132786, 1375132783, 1375132779, 1375132776, 1375132773, 1375132771, 1375132437, 1375132411, 1375132384, 1375132339, 1375132284, 1375131842, 1375131816, 1375131790, 1375131767, 1375131699]} final : False mtd_id 4302 list_pids : [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] Looping around the photos to save general results len do output : 1 /25641106. 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, '3434656') ('4302', '25641106', '1375133424', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '25641106', "{'kraft': 25641164, 'papier': 25641165, 'Carton_gris': 25641166, 'cartonnette': 25641167, 'Teint_Dans_La_Masse': 25641168, 'plastique': 25641169, 'autre_refus': 25641170, 'mal_croppe': 25641171, 'flou': 25641172, 'environnement': 25641173, 'Carton_brun': 25641174, 'metal': 25641175}", None, None, None, None, '3434656'), ('4302', '25641106', '1375133424', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656')] time used for this insertion : 0.017432451248168945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43437790870666504 time spend to save output : 0.017822980880737305 total time spend for step 1 : 0.45220088958740234 step2:final Mon Aug 4 16:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25641106) 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 25641106 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375131699,1375131842,1375131816,1375131790,1375131767,1375133182,1375133184,1375132437,1375132411,1375133146,1375132384,1375133145,1375132339,1375133142,1375132284,1375133136,1375132786,1375133127,1375132783,1375133101,1375132779,1375133048,1375132776,1375133047,1375133042,1375132773,1375133009,1375132771,1375132993,1375132990,1375133180,1375133179,1375133175,1375133176,1375133170,1375133169,1375133165,1375133164,1375133161,1375133160,1375133202,1375133200,1375133198,1375133196,1375133242,1375133236,1375133223,1375133220,1375133218,1375133216,1375133278,1375133277,1375133276,1375133304,1375133302,1375133301,1375133300,1375133299,1375133340,1375133335,1375133331,1375133325,1375133328,1375133326,1375133406,1375133403,1375133394,1375133389,1375133386,1375133384,1375133424,1375133422,1375133421,1375133419); 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([25641106]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} new output for save of step final : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] map_info['map_portfolio_photo'] : {25641106: [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326, 1375133325, 1375133304, 1375133302, 1375133301, 1375133300, 1375133299, 1375133278, 1375133277, 1375133276, 1375133242, 1375133236, 1375133223, 1375133220, 1375133218, 1375133216, 1375133202, 1375133200, 1375133198, 1375133196, 1375133184, 1375133182, 1375133180, 1375133179, 1375133176, 1375133175, 1375133170, 1375133169, 1375133165, 1375133164, 1375133161, 1375133160, 1375133146, 1375133145, 1375133142, 1375133136, 1375133127, 1375133101, 1375133048, 1375133047, 1375133042, 1375133009, 1375132993, 1375132990, 1375132786, 1375132783, 1375132779, 1375132776, 1375132773, 1375132771, 1375132437, 1375132411, 1375132384, 1375132339, 1375132284, 1375131842, 1375131816, 1375131790, 1375131767, 1375131699]} final : False mtd_id 4302 list_pids : [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] Looping around the photos to save general results len do output : 15 /1375133424.Didn't retrieve data . /1375133422.Didn't retrieve data . /1375133421.Didn't retrieve data . /1375133419.Didn't retrieve data . /1375133406.Didn't retrieve data . /1375133403.Didn't retrieve data . /1375133394.Didn't retrieve data . /1375133389.Didn't retrieve data . /1375133386.Didn't retrieve data . /1375133384.Didn't retrieve data . /1375133340.Didn't retrieve data . /1375133335.Didn't retrieve data . /1375133331.Didn't retrieve data . /1375133328.Didn't retrieve data . /1375133326.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, '3434656') ('4302', '25641106', '1375133424', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '25641106', '1375133424', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133422', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133421', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133419', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133406', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133403', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133394', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133389', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133386', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133384', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133340', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133335', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133331', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133328', '0.03810333483516373', None, None, None, None, '3434656'), ('4302', '25641106', '1375133326', '0.03810333483516373', None, None, None, None, '3434656')] time used for this insertion : 0.013476848602294922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06491875648498535 time spend to save output : 0.014008522033691406 total time spend for step 2 : 0.07892727851867676 step3:velours_tree Mon Aug 4 16:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25641106: [{'kraft': 25641164, 'papier': 25641165, 'Carton_gris': 25641166, 'cartonnette': 25641167, 'Teint_Dans_La_Masse': 25641168, 'plastique': 25641169, 'autre_refus': 25641170, 'mal_croppe': 25641171, 'flou': 25641172, 'environnement': 25641173, 'Carton_brun': 25641174, 'metal': 25641175}]} input_args_next_step : {25641106: ()} output_args : {25641106: [{'kraft': 25641164, 'papier': 25641165, 'Carton_gris': 25641166, 'cartonnette': 25641167, 'Teint_Dans_La_Masse': 25641168, 'plastique': 25641169, 'autre_refus': 25641170, 'mal_croppe': 25641171, 'flou': 25641172, 'environnement': 25641173, 'Carton_brun': 25641174, 'metal': 25641175}]} args : 25641106 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 : ({'kraft': 25641164, 'papier': 25641165, 'Carton_gris': 25641166, 'cartonnette': 25641167, 'Teint_Dans_La_Masse': 25641168, 'plastique': 25641169, 'autre_refus': 25641170, 'mal_croppe': 25641171, 'flou': 25641172, 'environnement': 25641173, 'Carton_brun': 25641174, 'metal': 25641175},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25641106) 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([25641106]) 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.31200098991394043 time spend to save output : 4.458427429199219e-05 total time spend for step 3 : 0.3120455741882324 step4:send_mail_cod Mon Aug 4 16:12:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} input_args_next_step : {1375133424: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133424 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133422 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133421 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133419 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133406 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133403 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133394 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133389 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133386 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133384 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133340 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133335 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133331 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133328 depend.output_id : 0 input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ()} output_args : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',)} args : 1375133326 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 : {25641106: [{'kraft': 25641164, 'papier': 25641165, 'Carton_gris': 25641166, 'cartonnette': 25641167, 'Teint_Dans_La_Masse': 25641168, 'plastique': 25641169, 'autre_refus': 25641170, 'mal_croppe': 25641171, 'flou': 25641172, 'environnement': 25641173, 'Carton_brun': 25641174, 'metal': 25641175}]} input_args_next_step : {1375133424: ('0.03810333483516373',), 1375133422: ('0.03810333483516373',), 1375133421: ('0.03810333483516373',), 1375133419: ('0.03810333483516373',), 1375133406: ('0.03810333483516373',), 1375133403: ('0.03810333483516373',), 1375133394: ('0.03810333483516373',), 1375133389: ('0.03810333483516373',), 1375133386: ('0.03810333483516373',), 1375133384: ('0.03810333483516373',), 1375133340: ('0.03810333483516373',), 1375133335: ('0.03810333483516373',), 1375133331: ('0.03810333483516373',), 1375133328: ('0.03810333483516373',), 1375133326: ('0.03810333483516373',), 25641106: ()} output_args : {25641106: [{'kraft': 25641164, 'papier': 25641165, 'Carton_gris': 25641166, 'cartonnette': 25641167, 'Teint_Dans_La_Masse': 25641168, 'plastique': 25641169, 'autre_refus': 25641170, 'mal_croppe': 25641171, 'flou': 25641172, 'environnement': 25641173, 'Carton_brun': 25641174, 'metal': 25641175}]} args : 25641106 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 :16, first value : ('0.03810333483516373',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25641106) 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 (1375133424,1375133422,1375133421,1375133419,1375133406,1375133403,1375133394,1375133389,1375133386,1375133384,1375133340,1375133335,1375133331,1375133328,1375133326) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375133326 begin to download photo : 1375133340 begin to download photo : 1375133394 begin to download photo : 1375133421 download finish for photo 1375133326 begin to download photo : 1375133328 download finish for photo 1375133421 begin to download photo : 1375133422 download finish for photo 1375133394 begin to download photo : 1375133403 download finish for photo 1375133340 begin to download photo : 1375133384 download finish for photo 1375133403 begin to download photo : 1375133406 download finish for photo 1375133422 begin to download photo : 1375133424 download finish for photo 1375133328 begin to download photo : 1375133331 download finish for photo 1375133384 begin to download photo : 1375133386 download finish for photo 1375133406 begin to download photo : 1375133419 download finish for photo 1375133424 download finish for photo 1375133331 begin to download photo : 1375133335 download finish for photo 1375133386 begin to download photo : 1375133389 download finish for photo 1375133419 download finish for photo 1375133335 download finish for photo 1375133389 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette256411641754316750/ imagette256411671754316750/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P25641106_04-08-2025_16_12_30.pdf 25641164 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=25641164 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256411641754316750 25641167 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=25641167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256411671754316750 25641169 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=25641169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375133323: '1754316564_1232239_1375133196_b5ed623cb24cb53c1d67a821bfe5c7a7_rle_crop_3902632611_0.png'} change filename to text .imagette256411691754316750/ imagette256411691754316750/1754316564_1232239_1375133196_b5ed623cb24cb53c1d67a821bfe5c7a7_rle_crop_3902632611_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/f896bcad0185e814936a929a725d851c_47518862.png imagette256411691754316750 25641170 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=25641170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375133189: '1754316326_1226927_1375132411_165ac9bfb90a86909d3c32b811896e8a_rle_crop_3902632262_0.png'} change filename to text .imagette256411701754316750/ imagette256411701754316750/1754316326_1226927_1375132411_165ac9bfb90a86909d3c32b811896e8a_rle_crop_3902632262_0.png.png imagette256411711754316750/ imagette256411721754316750/ imagette256411751754316750/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/544222ec4481c15c6543fc865c68a58d_38609230.png imagette256411701754316750 25641171 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=25641171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256411711754316750 25641172 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=25641172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256411721754316750 25641175 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=25641175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256411751754316750 25641166 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=25641166 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375133190: '1754316326_1226927_1375132384_15984451881e8c531d43a7a10fbd97a3_rle_crop_3902632275_0.png', 1375133191: '1754316326_1226927_1375132284_9e97614ef371f234b98667e6f615ac87_rle_crop_3902632292_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/7617868d50dae406ec11fa394b918dc8_79620710.png change filename to text .imagette256411661754316750/ imagette256411661754316750/1754316326_1226927_1375132284_9e97614ef371f234b98667e6f615ac87_rle_crop_3902632292_0.png.png imagette256411661754316750/1754316326_1226927_1375132384_15984451881e8c531d43a7a10fbd97a3_rle_crop_3902632275_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/e81d311ca1a4e25c50934d8d99629ffe_34524922.png imagette256411661754316750 25641168 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=25641168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375133186: '1754316326_1226927_1375132384_15984451881e8c531d43a7a10fbd97a3_rle_crop_3902632276_0.png', 1375133187: '1754316326_1226927_1375132339_ce10b9dc68192a7f17f77b8c20906d14_rle_crop_3902632280_0.png', 1375133188: '1754316326_1226927_1375132339_ce10b9dc68192a7f17f77b8c20906d14_rle_crop_3902632282_0.png', 1375133377: '1754316626_1235038_1375133236_526155910a26fca3c16eb6a0ac341d01_rle_crop_3902632741_0.png', 1375133378: '1754316626_1235038_1375133236_526155910a26fca3c16eb6a0ac341d01_rle_crop_3902632742_0.png', 1375133379: '1754316626_1235038_1375133236_526155910a26fca3c16eb6a0ac341d01_rle_crop_3902632743_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/2dea02d66c1ac29e07541df71ab99d81_23424881.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/b1fe8126ed968823c293c0240f447023_60163901.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/3bc497b74c5c81209db87fc4fdd4b82f_4583521.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/18c6570f0ed7b9a6adfc29dfcb98ce6b_57387396.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/72356ce9ba8912a941cf48f122ff4338_5829608.png change filename to text .imagette256411681754316750/ imagette256411681754316750/1754316326_1226927_1375132339_ce10b9dc68192a7f17f77b8c20906d14_rle_crop_3902632282_0.png.png imagette256411681754316750/1754316626_1235038_1375133236_526155910a26fca3c16eb6a0ac341d01_rle_crop_3902632743_0.png.png imagette256411681754316750/1754316326_1226927_1375132339_ce10b9dc68192a7f17f77b8c20906d14_rle_crop_3902632280_0.png.png imagette256411681754316750/1754316626_1235038_1375133236_526155910a26fca3c16eb6a0ac341d01_rle_crop_3902632741_0.png.png imagette256411681754316750/1754316626_1235038_1375133236_526155910a26fca3c16eb6a0ac341d01_rle_crop_3902632742_0.png.png imagette256411681754316750/1754316326_1226927_1375132384_15984451881e8c531d43a7a10fbd97a3_rle_crop_3902632276_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/b1b753fe00b9312917d8f9fe52488f0b_73920101.png imagette256411681754316750 25641174 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=25641174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375133192: '1754316326_1226927_1375132411_165ac9bfb90a86909d3c32b811896e8a_rle_crop_3902632264_0.png', 1375133193: '1754316326_1226927_1375132339_ce10b9dc68192a7f17f77b8c20906d14_rle_crop_3902632284_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/7d649e7748aab6993f20fedf7aa88ca8_56825120.png change filename to text .imagette256411741754316751/ imagette256411741754316751/1754316326_1226927_1375132339_ce10b9dc68192a7f17f77b8c20906d14_rle_crop_3902632284_0.png.png imagette256411741754316751/1754316326_1226927_1375132411_165ac9bfb90a86909d3c32b811896e8a_rle_crop_3902632264_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/74bf3d461520c88532882c18492d7e50_65119340.png imagette256411741754316751 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25641106 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25641178,25641179,25641180,25641181,25641182,25641183,25641184,25641185,25641186,25641187,25641188,25641189?tags=kraft,papier,Carton_gris,cartonnette,Teint_Dans_La_Masse,plastique,autre_refus,mal_croppe,flou,environnement,Carton_brun,metal your option no_mail is active, we will not send the real mail to your client args[1375133424] : ('0.03810333483516373',) no score found for photo 1375133424 We are sending mail with results at report@fotonower.com args[1375133422] : ('0.03810333483516373',) no score found for photo 1375133422 We are sending mail with results at report@fotonower.com args[1375133421] : ('0.03810333483516373',) no score found for photo 1375133421 We are sending mail with results at report@fotonower.com args[1375133419] : ('0.03810333483516373',) no score found for photo 1375133419 We are sending mail with results at report@fotonower.com args[1375133406] : ('0.03810333483516373',) no score found for photo 1375133406 We are sending mail with results at report@fotonower.com args[1375133403] : ('0.03810333483516373',) no score found for photo 1375133403 We are sending mail with results at report@fotonower.com args[1375133394] : ('0.03810333483516373',) no score found for photo 1375133394 We are sending mail with results at report@fotonower.com args[1375133389] : ('0.03810333483516373',) no score found for photo 1375133389 We are sending mail with results at report@fotonower.com args[1375133386] : ('0.03810333483516373',) no score found for photo 1375133386 We are sending mail with results at report@fotonower.com args[1375133384] : ('0.03810333483516373',) no score found for photo 1375133384 We are sending mail with results at report@fotonower.com args[1375133340] : ('0.03810333483516373',) no score found for photo 1375133340 We are sending mail with results at report@fotonower.com args[1375133335] : ('0.03810333483516373',) no score found for photo 1375133335 We are sending mail with results at report@fotonower.com args[1375133331] : ('0.03810333483516373',) no score found for photo 1375133331 We are sending mail with results at report@fotonower.com args[1375133328] : ('0.03810333483516373',) no score found for photo 1375133328 We are sending mail with results at report@fotonower.com args[1375133326] : ('0.03810333483516373',) no score found for photo 1375133326 We are sending mail with results at report@fotonower.com refus_total : 0.03810333483516373 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=25641106 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_P25641106_04-08-2025_16_12_30.pdf results_Auto_P25641106_04-08-2025_16_12_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_12_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25641106','results_Auto_P25641106_04-08-2025_16_12_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_12_30.pdf','pdf','','0.16','0.03810333483516373') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25641106]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] map_info['map_portfolio_photo'] : {25641106: [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326, 1375133325, 1375133304, 1375133302, 1375133301, 1375133300, 1375133299, 1375133278, 1375133277, 1375133276, 1375133242, 1375133236, 1375133223, 1375133220, 1375133218, 1375133216, 1375133202, 1375133200, 1375133198, 1375133196, 1375133184, 1375133182, 1375133180, 1375133179, 1375133176, 1375133175, 1375133170, 1375133169, 1375133165, 1375133164, 1375133161, 1375133160, 1375133146, 1375133145, 1375133142, 1375133136, 1375133127, 1375133101, 1375133048, 1375133047, 1375133042, 1375133009, 1375132993, 1375132990, 1375132786, 1375132783, 1375132779, 1375132776, 1375132773, 1375132771, 1375132437, 1375132411, 1375132384, 1375132339, 1375132284, 1375131842, 1375131816, 1375131790, 1375131767, 1375131699]} final : False mtd_id 4302 list_pids : [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] 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, '3434656') ('4302', '25641106', '1375133424', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '25641106', '1375133424', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656')] time used for this insertion : 0.01277017593383789 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6566450595855713 time spend to save output : 0.012984752655029297 total time spend for step 4 : 2.6696298122406006 step5:split_time_score Mon Aug 4 16:12:32 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 : ['25641106'] 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 : [('25641106',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25641106) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375133421: {'path': 'temp/1754316750_19342_1375133421_116ec57addd81ea52c76c68bf07b4189.jpg', 'extension': 'jpg'}, 1375133422: {'path': 'temp/1754316750_19342_1375133422_f2c00a39e16ac9c26c14807052727f4c.jpg', 'extension': 'jpg'}, 1375133424: {'path': 'temp/1754316750_19342_1375133424_e1081651513c866a8b55e46917c2cbac.jpg', 'extension': 'jpg'}, 1375133394: {'path': 'temp/1754316750_19342_1375133394_af084decb9b3da8f623309c22d461f60.jpg', 'extension': 'jpg'}, 1375133403: {'path': 'temp/1754316750_19342_1375133403_d156135499d63745921044f2ad898144.jpg', 'extension': 'jpg'}, 1375133406: {'path': 'temp/1754316750_19342_1375133406_becc941b202aa09dafe4f175e8042fa1.jpg', 'extension': 'jpg'}, 1375133419: {'path': 'temp/1754316750_19342_1375133419_4158b2146cbd1699578a9fe48e3c4ffe.jpg', 'extension': 'jpg'}, 1375133326: {'path': 'temp/1754316750_19342_1375133326_f52ddc4589ae21701bd9aa65f9748a7e.jpg', 'extension': 'jpg'}, 1375133328: {'path': 'temp/1754316750_19342_1375133328_a439dc6e0449691e9fcac4a883ac3493.jpg', 'extension': 'jpg'}, 1375133331: {'path': 'temp/1754316750_19342_1375133331_e6f44ab3a1801f719a466232a4ce8bd4.jpg', 'extension': 'jpg'}, 1375133335: {'path': 'temp/1754316750_19342_1375133335_db80eb332233bebd7e943263c780a6d3.jpg', 'extension': 'jpg'}, 1375133340: {'path': 'temp/1754316750_19342_1375133340_247ea0a83e1af4a83290a55857cc4e6a.jpg', 'extension': 'jpg'}, 1375133384: {'path': 'temp/1754316750_19342_1375133384_3aeb46ce9924725e9d5fb4a84520fc31.jpg', 'extension': 'jpg'}, 1375133386: {'path': 'temp/1754316750_19342_1375133386_03b48b13108769e83fc0a7b9c7d92158.jpg', 'extension': 'jpg'}, 1375133389: {'path': 'temp/1754316750_19342_1375133389_25152c3695c95307891e8f110b3e1e1e.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 = 25641106; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25641106 group by h (('16', 74),) 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=25641106 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 (25641106) 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 (25641106) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04082025 25641106 Nombre de photos uploadées : 74 / 23040 (0%) 04082025 25641106 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 04082025 25641106 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1375131699, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/2df3047fb7c020c4b8d8f5a9f641836e.jpg', 'username': None, 'uploaded_at': 1754316062, 'text': 'image_04082025_16_00_04_10144.jpg'}, {'photo_id': 1375131842, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/be386bdce911499b408e6b1176400fbf.jpg', 'username': None, 'uploaded_at': 1754316077, 'text': 'image_04082025_16_00_14_10136.jpg'}, {'photo_id': 1375131816, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/44727e401a1aa7ca331d9488e7e1ca86.jpg', 'username': None, 'uploaded_at': 1754316077, 'text': 'image_04082025_16_00_24_10135.jpg'}, {'photo_id': 1375131790, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/30ea977c8377b64be2a311b6a8d4fb94.jpg', 'username': None, 'uploaded_at': 1754316077, 'text': 'image_04082025_16_00_34_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004119873046875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25641106, '2025-08-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2055199,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20394563674926758 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= 2055199 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25626685, 'dashboard_result_id': 13543381, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626698, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25626882, 'dashboard_result_id': 13543382, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626901, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25627175, 'dashboard_result_id': 13543383, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25627185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627195, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25627892, 'dashboard_result_id': 13543384, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25627896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627907, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25628013, 'dashboard_result_id': 13543385, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628034, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25628303, 'dashboard_result_id': 13543386, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628325, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25629056, 'dashboard_result_id': 13543387, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629068, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25629211, 'dashboard_result_id': 13543388, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629234, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25629456, 'dashboard_result_id': 13543389, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629478, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25629837, 'dashboard_result_id': 13543390, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25629886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629897, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25630398, 'dashboard_result_id': 13543391, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630417, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25630863, 'dashboard_result_id': 13543392, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630939, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25631422, 'dashboard_result_id': 13543393, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25631429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25631430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25631431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25631432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25631433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25631434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25631435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25631436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25631437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25631438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25631439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25631440, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25632607, 'dashboard_result_id': 13543394, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25632611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25632612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25632613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25632614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25632615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25632616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25632617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25632618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25632620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25632621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25632622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25632624, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25633178, 'dashboard_result_id': 13543395, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633194, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25633267, 'dashboard_result_id': 13543396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633316, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25633910, 'dashboard_result_id': 13543397, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633926, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25634253, 'dashboard_result_id': 13543398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634273, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25634599, 'dashboard_result_id': 13543399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634646, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25635026, 'dashboard_result_id': 13543400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25635050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635051, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25635624, 'dashboard_result_id': 13543401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25635639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635650, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25636062, 'dashboard_result_id': 13543402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25636095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636106, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25636503, 'dashboard_result_id': 13543403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636520, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25636886, 'dashboard_result_id': 13543404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636921, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25638616, 'dashboard_result_id': 13543405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638628, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25638768, 'dashboard_result_id': 13543406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638803, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25639033, 'dashboard_result_id': 13543407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639055, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25639429, 'dashboard_result_id': 13543408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25639430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639441, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25639623, 'dashboard_result_id': 13543409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639646, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25639888, 'dashboard_result_id': 13543410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_14_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639915, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25640848, 'dashboard_result_id': 13543411, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25640849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25640850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25640851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25640852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25640853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25640854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25640855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25640856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25640857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25640858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25640859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25640860, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2066499, 'mtr_portfolio_id': 25641106, 'dashboard_result_id': 13543412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_10_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641175, '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 = 25626685 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429655, 'mtr_portfolio_id': 25626685, 'created_at': datetime.datetime(2025, 8, 4, 5, 17), 'result': '0.05648562522524135', 'result_long': None, 'result_double': None}] Qualite : 0.05648562522524135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25626685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25626685 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626698, 'pht': 3726}}" where mtr_portfolio_id = 25626685 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25626685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543381, 0.05648562522524135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626685_04-08-2025_05_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626692, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626698, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25626882 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429694, 'mtr_portfolio_id': 25626882, 'created_at': datetime.datetime(2025, 8, 4, 5, 36, 31), 'result': '0.029916060513912043', 'result_long': None, 'result_double': None}] Qualite : 0.029916060513912043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25626882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25626882 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626901, 'pht': 3726}}" where mtr_portfolio_id = 25626882 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25626882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543382, 0.029916060513912043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25626882_04-08-2025_05_36_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25626890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25626891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25626892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25626893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25626894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25626895, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25626896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25626897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25626898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25626899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25626900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25626901, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25627175 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429790, 'mtr_portfolio_id': 25627175, 'created_at': datetime.datetime(2025, 8, 4, 6, 20, 58), 'result': '0.03489243569320978', 'result_long': None, 'result_double': None}] Qualite : 0.03489243569320978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25627175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25627175 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25627185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627195, 'pht': 3726}}" where mtr_portfolio_id = 25627175 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25627175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543383, 0.03489243569320978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627175_04-08-2025_06_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25627185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627195, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25627892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3429979, 'mtr_portfolio_id': 25627892, 'created_at': datetime.datetime(2025, 8, 4, 6, 34, 59), 'result': '0.043597261028997226', 'result_long': None, 'result_double': None}] Qualite : 0.043597261028997226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25627892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25627892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25627896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627907, 'pht': 3726}}" where mtr_portfolio_id = 25627892 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25627892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543384, 0.043597261028997226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25627892_04-08-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25627896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25627897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25627898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25627899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25627900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25627901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25627902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25627903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25627904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25627905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25627906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25627907, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25628013 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430010, 'mtr_portfolio_id': 25628013, 'created_at': datetime.datetime(2025, 8, 4, 6, 47, 1), 'result': '0.07528744149381071', 'result_long': None, 'result_double': None}] Qualite : 0.07528744149381071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25628013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25628013 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628034, 'pht': 3726}}" where mtr_portfolio_id = 25628013 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25628013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543385, 0.07528744149381071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628013_04-08-2025_06_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628034, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25628303 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430097, 'mtr_portfolio_id': 25628303, 'created_at': datetime.datetime(2025, 8, 4, 7, 21, 28), 'result': '0.031837840229790776', 'result_long': None, 'result_double': None}] Qualite : 0.031837840229790776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25628303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25628303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628325, 'pht': 3726}}" where mtr_portfolio_id = 25628303 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25628303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543386, 0.031837840229790776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25628303_04-08-2025_07_21_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25628314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25628315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25628316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25628317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25628318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25628319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25628320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25628321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25628322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25628323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25628324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25628325, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25629056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430339, 'mtr_portfolio_id': 25629056, 'created_at': datetime.datetime(2025, 8, 4, 7, 32, 59), 'result': '0.031762630395397166', 'result_long': None, 'result_double': None}] Qualite : 0.031762630395397166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629068, 'pht': 3726}}" where mtr_portfolio_id = 25629056 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543387, 0.031762630395397166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629056_04-08-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629068, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25629211 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430405, 'mtr_portfolio_id': 25629211, 'created_at': datetime.datetime(2025, 8, 4, 7, 47), 'result': '0.054070794273323806', 'result_long': None, 'result_double': None}] Qualite : 0.054070794273323806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629211 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629234, 'pht': 3726}}" where mtr_portfolio_id = 25629211 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543388, 0.054070794273323806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629211_04-08-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629234, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25629456 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430493, 'mtr_portfolio_id': 25629456, 'created_at': datetime.datetime(2025, 8, 4, 8, 3), 'result': '0.0425232015476235', 'result_long': None, 'result_double': None}] Qualite : 0.0425232015476235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629456 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629478, 'pht': 3726}}" where mtr_portfolio_id = 25629456 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543389, 0.0425232015476235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629456_04-08-2025_08_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629469, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629471, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25629476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629477, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629478, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25629837 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430672, 'mtr_portfolio_id': 25629837, 'created_at': datetime.datetime(2025, 8, 4, 8, 16, 59), 'result': '0.07792245153552262', 'result_long': None, 'result_double': None}] Qualite : 0.07792245153552262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25629837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25629837 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25629886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629897, 'pht': 3726}}" where mtr_portfolio_id = 25629837 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25629837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543390, 0.07792245153552262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25629837_04-08-2025_08_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25629886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25629887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25629888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25629889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25629890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25629891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25629892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25629893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25629894, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25629895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25629896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25629897, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25630398 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3430905, 'mtr_portfolio_id': 25630398, 'created_at': datetime.datetime(2025, 8, 4, 8, 32, 57), 'result': '0.08088320189388051', 'result_long': None, 'result_double': None}] Qualite : 0.08088320189388051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25630398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25630398 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630417, 'pht': 3726}}" where mtr_portfolio_id = 25630398 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25630398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543391, 0.08088320189388051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630398_04-08-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630417, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25630863 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431125, 'mtr_portfolio_id': 25630863, 'created_at': datetime.datetime(2025, 8, 4, 8, 46, 57), 'result': '0.04889978098275844', 'result_long': None, 'result_double': None}] Qualite : 0.04889978098275844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25630863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25630863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630939, 'pht': 3726}}" where mtr_portfolio_id = 25630863 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25630863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543392, 0.04889978098275844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25630863_04-08-2025_08_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25630928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25630929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25630930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25630931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25630932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25630933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25630934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25630935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25630936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25630937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25630938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25630939, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25631422 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431362, 'mtr_portfolio_id': 25631422, 'created_at': datetime.datetime(2025, 8, 4, 9, 34, 59), 'result': '0.0493744862914315', 'result_long': None, 'result_double': None}] Qualite : 0.0493744862914315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25631422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25631422 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25631429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25631430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25631431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25631432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25631433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25631434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25631435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25631436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25631437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25631438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25631439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25631440, 'pht': 3726}}" where mtr_portfolio_id = 25631422 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25631422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543393, 0.0493744862914315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25631422_04-08-2025_09_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25631429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25631430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25631431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25631432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25631433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25631434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25631435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25631436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25631437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25631438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25631439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25631440, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25632607 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431849, 'mtr_portfolio_id': 25632607, 'created_at': datetime.datetime(2025, 8, 4, 9, 56, 59), 'result': '0.043566782272666464', 'result_long': None, 'result_double': None}] Qualite : 0.043566782272666464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25632607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25632607 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25632611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25632612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25632613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25632614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25632615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25632616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25632617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25632618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25632620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25632621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25632622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25632624, 'pht': 3726}}" where mtr_portfolio_id = 25632607 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25632607 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543394, 0.043566782272666464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25632607_04-08-2025_09_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25632611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25632612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25632613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25632614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25632615, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25632616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25632617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25632618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25632620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25632621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25632622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25632624, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25633178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431971, 'mtr_portfolio_id': 25633178, 'created_at': datetime.datetime(2025, 8, 4, 10, 3), 'result': '0.03506150318190517', 'result_long': None, 'result_double': None}] Qualite : 0.03506150318190517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25633178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25633178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633194, 'pht': 3726}}" where mtr_portfolio_id = 25633178 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25633178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543395, 0.03506150318190517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633178_04-08-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633183, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633194, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25633267 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3431998, 'mtr_portfolio_id': 25633267, 'created_at': datetime.datetime(2025, 8, 4, 10, 17), 'result': '0.024798719441786084', 'result_long': None, 'result_double': None}] Qualite : 0.024798719441786084 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25633267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25633267 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633316, 'pht': 3726}}" where mtr_portfolio_id = 25633267 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25633267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543396, 0.024798719441786084, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633267_04-08-2025_10_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633316, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25633910 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432109, 'mtr_portfolio_id': 25633910, 'created_at': datetime.datetime(2025, 8, 4, 10, 33, 31), 'result': '0.08209164754837169', 'result_long': None, 'result_double': None}] Qualite : 0.08209164754837169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25633910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25633910 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633926, 'pht': 3726}}" where mtr_portfolio_id = 25633910 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25633910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543397, 0.08209164754837169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25633910_04-08-2025_10_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25633915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25633916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25633917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25633918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25633919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25633920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25633921, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25633922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25633923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25633924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25633925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25633926, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25634253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432203, 'mtr_portfolio_id': 25634253, 'created_at': datetime.datetime(2025, 8, 4, 10, 47), 'result': '0.0692149309258792', 'result_long': None, 'result_double': None}] Qualite : 0.0692149309258792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25634253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25634253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634273, 'pht': 3726}}" where mtr_portfolio_id = 25634253 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25634253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543398, 0.0692149309258792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634253_04-08-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634262, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634273, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25634599 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432340, 'mtr_portfolio_id': 25634599, 'created_at': datetime.datetime(2025, 8, 4, 11, 3, 29), 'result': '0.036726822047875356', 'result_long': None, 'result_double': None}] Qualite : 0.036726822047875356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25634599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25634599 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634646, 'pht': 3726}}" where mtr_portfolio_id = 25634599 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25634599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543399, 0.036726822047875356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25634599_04-08-2025_11_03_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25634635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25634636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25634637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25634638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25634639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25634640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25634641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25634642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25634643, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25634644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25634645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25634646, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25635026 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432547, 'mtr_portfolio_id': 25635026, 'created_at': datetime.datetime(2025, 8, 4, 11, 18, 59), 'result': '0.030708449498992468', 'result_long': None, 'result_double': None}] Qualite : 0.030708449498992468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25635026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25635026 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25635050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635051, 'pht': 3726}}" where mtr_portfolio_id = 25635026 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25635026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543400, 0.030708449498992468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635026_04-08-2025_11_19_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25635050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635051, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25635624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432765, 'mtr_portfolio_id': 25635624, 'created_at': datetime.datetime(2025, 8, 4, 11, 34, 59), 'result': '0.058176054194406863', 'result_long': None, 'result_double': None}] Qualite : 0.058176054194406863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25635624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25635624 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25635639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635650, 'pht': 3726}}" where mtr_portfolio_id = 25635624 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25635624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543401, 0.058176054194406863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25635624_04-08-2025_11_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25635639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25635640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25635641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25635642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25635643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25635644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25635645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25635646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25635647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25635648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25635649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25635650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25636062 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3432985, 'mtr_portfolio_id': 25636062, 'created_at': datetime.datetime(2025, 8, 4, 11, 49, 29), 'result': '0.06652880728973268', 'result_long': None, 'result_double': None}] Qualite : 0.06652880728973268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25636062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25636062 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25636095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636106, 'pht': 3726}}" where mtr_portfolio_id = 25636062 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25636062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543402, 0.06652880728973268, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636062_04-08-2025_11_49_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25636095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636106, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25636503 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433179, 'mtr_portfolio_id': 25636503, 'created_at': datetime.datetime(2025, 8, 4, 12, 2, 58), 'result': '0.04148410780394579', 'result_long': None, 'result_double': None}] Qualite : 0.04148410780394579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25636503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25636503 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636520, 'pht': 3726}}" where mtr_portfolio_id = 25636503 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25636503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543403, 0.04148410780394579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636503_04-08-2025_12_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636511, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636520, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25636886 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433380, 'mtr_portfolio_id': 25636886, 'created_at': datetime.datetime(2025, 8, 4, 13, 59, 58), 'result': '0.04813636538281493', 'result_long': None, 'result_double': None}] Qualite : 0.04813636538281493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25636886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25636886 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636921, 'pht': 3726}}" where mtr_portfolio_id = 25636886 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25636886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543404, 0.04813636538281493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25636886_04-08-2025_13_59_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25636910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25636911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25636912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25636913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25636914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25636915, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25636916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25636917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25636918, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25636919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25636920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25636921, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25638616 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433980, 'mtr_portfolio_id': 25638616, 'created_at': datetime.datetime(2025, 8, 4, 13, 46, 58), 'result': '0.13976115487838234', 'result_long': None, 'result_double': None}] Qualite : 0.13976115487838234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25638616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25638616 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638628, 'pht': 3726}}" where mtr_portfolio_id = 25638616 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25638616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543405, 0.13976115487838234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638616_04-08-2025_13_46_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25638768 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3433999, 'mtr_portfolio_id': 25638768, 'created_at': datetime.datetime(2025, 8, 4, 14, 3), 'result': '0.03345273200558115', 'result_long': None, 'result_double': None}] Qualite : 0.03345273200558115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25638768 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25638768 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638803, 'pht': 3726}}" where mtr_portfolio_id = 25638768 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25638768 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543406, 0.03345273200558115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25638768_04-08-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25638792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25638793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25638794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25638795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25638796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25638797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25638798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25638799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25638800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25638801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25638802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25638803, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639033 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434077, 'mtr_portfolio_id': 25639033, 'created_at': datetime.datetime(2025, 8, 4, 14, 21, 32), 'result': '0.03070413069196656', 'result_long': None, 'result_double': None}] Qualite : 0.03070413069196656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639033 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639055, 'pht': 3726}}" where mtr_portfolio_id = 25639033 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543407, 0.03070413069196656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639033_04-08-2025_14_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639055, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639429 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434152, 'mtr_portfolio_id': 25639429, 'created_at': datetime.datetime(2025, 8, 4, 14, 33), 'result': '0.030554129115213123', 'result_long': None, 'result_double': None}] Qualite : 0.030554129115213123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639429 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25639430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639441, 'pht': 3726}}" where mtr_portfolio_id = 25639429 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543408, 0.030554129115213123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639429_04-08-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25639430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639441, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639623 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434194, 'mtr_portfolio_id': 25639623, 'created_at': datetime.datetime(2025, 8, 4, 14, 47), 'result': '0.08073807902156382', 'result_long': None, 'result_double': None}] Qualite : 0.08073807902156382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639623 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639646, 'pht': 3726}}" where mtr_portfolio_id = 25639623 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25639623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543409, 0.08073807902156382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639623_04-08-2025_14_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639646, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639888 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639888 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25639888 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639888 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25639888 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25639888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_14_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25639888 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25639888_04-08-2025_14_51_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25639904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25639905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25639906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25639907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25639908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25639909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25639910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25639911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25639912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25639913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25639914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25639915, 'pht': 3726}}" where mtr_portfolio_id = 25639888 and dashboard_run_id = 2066499 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25640848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434578, 'mtr_portfolio_id': 25640848, 'created_at': datetime.datetime(2025, 8, 4, 16, 3), 'result': '0.04104678386786433', 'result_long': None, 'result_double': None}] Qualite : 0.04104678386786433 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25640848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25640848 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25640849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25640850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25640851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25640852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25640853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25640854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25640855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25640856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25640857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25640858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25640859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25640860, 'pht': 3726}}" where mtr_portfolio_id = 25640848 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25640848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543411, 0.04104678386786433, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25640848_04-08-2025_16_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25640849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25640850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25640851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25640852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25640853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25640854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25640855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25640856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25640857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25640858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25640859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25640860, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25641106 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434656, 'mtr_portfolio_id': 25641106, 'created_at': datetime.datetime(2025, 8, 4, 16, 12, 29), 'result': '0.03810333483516373', 'result_long': None, 'result_double': None}] Qualite : 0.03810333483516373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25641106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25641106 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_12_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641175, 'pht': 3726}}" where mtr_portfolio_id = 25641106 and dashboard_run_id = 2066499 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25641106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13543412, 0.03810333483516373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641106_04-08-2025_16_12_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641168, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641175, '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 (25626685,25626882,25627175,25627892,25628013,25628303,25629056,25629211,25629456,25629837,25630398,25630863,25631422,25632607,25633178,25633267,25633910,25634253,25634599,25635026,25635624,25636062,25636503,25636886,25638616,25638768,25639033,25639429,25639623,25639888,25640848,25641106) result : ((1375079294,), (1375079309,), (1375079310,), (1375079311,), (1375079318,), (1375079319,), (1375079320,), (1375079321,), (1375079329,), (1375079330,), (1375079352,), (1375079353,), (1375079364,), (1375079366,), (1375079380,), (1375079381,), (1375079389,), (1375079390,), (1375079391,), (1375079392,), (1375079393,), (1375079401,), (1375079403,), (1375079405,), (1375079406,), (1375079408,), (1375079411,), (1375079417,), (1375079419,), (1375079424,), (1375079425,), (1375079426,), (1375079427,), (1375079436,), (1375079437,), (1375079446,), (1375079447,), (1375079448,), (1375079449,), (1375079458,), (1375079460,), (1375079461,), (1375079462,), (1375079472,), (1375079470,), (1375079471,), (1375079480,), (1375079485,), (1375079487,), (1375079488,), (1375079489,), (1375079495,), (1375079496,), (1375079502,), (1375079510,), (1375079521,), (1375079522,), (1375079523,), (1375079524,), (1375079525,), (1375079527,), (1375079528,), (1375079529,), (1375079530,), (1375079531,), (1375079533,), (1375079538,), (1375079540,), (1375079541,), (1375079542,), (1375079543,), (1375079544,), (1375079566,), (1375079567,), (1375079568,), (1375079603,), (1375079614,), (1375079600,), (1375079601,), (1375079602,), (1375079604,), (1375079605,), (1375079606,), (1375079607,), (1375079608,), (1375079609,), (1375079618,), (1375079619,), (1375079620,), (1375079621,), (1375079629,), (1375079630,), (1375079631,), (1375079632,), (1375079633,), (1375079640,), (1375079641,), (1375079642,), (1375079643,), (1375079650,), (1375079651,), (1375079652,), (1375079653,), (1375079654,), (1375079657,), (1375079658,), (1375079659,), (1375079660,), (1375081088,), (1375081082,), (1375081084,), (1375081085,), (1375081086,), (1375081087,), (1375081098,), (1375081101,), (1375081102,), (1375081114,), (1375081116,), (1375081126,), (1375081128,), (1375081130,), (1375081131,), (1375081145,), (1375081148,), (1375081150,), (1375081153,), (1375081156,), (1375081160,), (1375081174,), (1375081176,), (1375081202,), (1375081226,), (1375081230,), (1375081231,), (1375081234,), (1375081246,), (1375081248,), (1375081249,), (1375081264,), (1375081267,), (1375081268,), (1375081269,), (1375081271,), (1375081277,), (1375081278,), (1375081279,), (1375081280,), (1375081282,), (1375081323,), (1375081325,), (1375081330,), (1375081341,), (1375081342,), (1375081343,), (1375081344,), (1375081345,), (1375081357,), (1375081359,), (1375081360,), (1375081361,), (1375081366,), (1375081368,), (1375081390,), (1375081419,), (1375081380,), (1375081381,), (1375081382,), (1375081384,), (1375081388,), (1375081400,), (1375081401,), (1375081403,), (1375081406,), (1375081408,), (1375081411,), (1375081417,), (1375081422,), (1375081424,), (1375081426,), (1375081430,), (1375081432,), (1375081436,), (1375081459,), (1375081461,), (1375081464,), (1375081467,), (1375081471,), (1375081474,), (1375081481,), (1375081482,), (1375081484,), (1375081486,), (1375081490,), (1375081494,), (1375081498,), (1375081501,), (1375081511,), (1375081512,), (1375081528,), (1375081529,), (1375081547,), (1375081552,), (1375081557,), (1375081559,), (1375081572,), (1375081574,), (1375081576,), (1375081603,), (1375081605,), (1375081606,), (1375081620,), (1375081621,), (1375081623,), (1375081626,), (1375081628,), (1375081649,), (1375081650,), (1375081651,), (1375081653,), (1375081657,), (1375081671,), (1375081672,), (1375081673,), (1375081675,), (1375081679,), (1375081696,), (1375081697,), (1375081698,), (1375081700,), (1375081727,), (1375081728,), (1375081762,), (1375081752,), (1375081754,), (1375081756,), (1375081759,), (1375081780,), (1375081781,), (1375081813,), (1375081816,), (1375081846,), (1375081847,), (1375081848,), (1375081850,), (1375081876,), (1375081877,), (1375081878,), (1375081898,), (1375081899,), (1375081900,), (1375081902,), (1375081926,), (1375081927,), (1375081928,), (1375081952,), (1375081953,), (1375081954,), (1375081986,), (1375081988,), (1375081990,), (1375082014,), (1375082016,), (1375082045,), (1375084121,), (1375084087,), (1375084116,), (1375084119,), (1375084160,), (1375084190,), (1375084193,), (1375084194,), (1375084197,), (1375084220,), (1375084222,), (1375084225,), (1375084229,), (1375084257,), (1375084258,), (1375084259,), (1375084287,), (1375084289,), (1375084319,), (1375084321,), (1375084322,), (1375084324,), (1375084355,), (1375084358,), (1375084360,), (1375084363,), (1375084383,), (1375084385,), (1375084386,), (1375084411,), (1375084414,), (1375084416,), (1375084452,), (1375084455,), (1375084456,), (1375084458,), (1375084462,), (1375084501,), (1375084496,), (1375084498,), (1375084525,), (1375084526,), (1375084528,), (1375084530,), (1375084533,), (1375084554,), (1375084557,), (1375084559,), (1375084562,), (1375084564,), (1375084569,), (1375084584,), (1375084587,), (1375084589,), (1375084592,), (1375084595,), (1375084614,), (1375084617,), (1375084648,), (1375084653,), (1375084655,), (1375084658,), (1375084661,), (1375084664,), (1375084687,), (1375084688,), (1375084690,), (1375084692,), (1375084695,), (1375084718,), (1375084720,), (1375084722,), (1375084725,), (1375084751,), (1375084783,), (1375084785,), (1375084786,), (1375084788,), (1375084791,), (1375084827,), (1375084830,), (1375084832,), (1375084835,), (1375084870,), (1375084873,), (1375084874,), (1375084876,), (1375084896,), (1375084899,), (1375084901,), (1375084904,), (1375084930,), (1375084932,), (1375084955,), (1375084959,), (1375084961,), (1375084993,), (1375084990,), (1375084992,), (1375085018,), (1375085020,), (1375085023,), (1375085026,), (1375085029,), (1375085057,), (1375085059,), (1375085088,), (1375085090,), (1375085113,), (1375085116,), (1375085154,), (1375085179,), (1375085181,), (1375085183,), (1375085187,), (1375085216,), (1375085217,), (1375085219,), (1375085222,), (1375085225,), (1375085227,), (1375085247,), (1375085251,), (1375085256,), (1375085259,), (1375085263,), (1375085266,), (1375085276,), (1375085277,), (1375085279,), (1375085281,), (1375085289,), (1375085294,), (1375085299,), (1375085303,), (1375085307,), (1375085312,), (1375085321,), (1375085324,), (1375085327,), (1375085330,), (1375085351,), (1375085354,), (1375085357,), (1375085516,), (1375085540,), (1375085564,), (1375085587,), (1375085612,), (1375086038,), (1375086041,), (1375086045,), (1375086049,), (1375086053,), (1375086057,), (1375086102,), (1375086098,), (1375086450,), (1375086475,), (1375086498,), (1375086912,), (1375086940,), (1375086961,), (1375087002,), (1375087189,), (1375087191,), (1375087194,), (1375087197,), (1375087201,), (1375087204,), (1375087223,), (1375087226,), (1375087228,), (1375087230,), (1375087258,), (1375087260,), (1375087337,), (1375087351,), (1375087361,), (1375087406,), (1375087434,), (1375087462,), (1375087464,), (1375087488,), (1375087490,), (1375087503,), (1375087529,), (1375087531,), (1375087533,), (1375087535,), (1375087538,), (1375087555,), (1375087558,), (1375087583,), (1375087688,), (1375087738,), (1375087741,), (1375087743,), (1375087801,), (1375087809,), (1375087815,), (1375088009,), (1375088019,), (1375088153,), (1375088155,), (1375088157,), (1375088205,), (1375088207,), (1375088211,), (1375088213,), (1375088216,), (1375088219,), (1375088274,), (1375088301,), (1375088330,), (1375088355,), (1375088597,), (1375088600,), (1375088683,), (1375088684,), (1375088685,), (1375088704,), (1375088705,), (1375088728,), (1375088729,), (1375088753,), (1375088755,), (1375088780,), (1375088781,), (1375088844,), (1375088843,), (1375088926,), (1375089003,), (1375089038,), (1375089039,), (1375089095,), (1375089194,), (1375089222,), (1375089223,), (1375089259,), (1375089288,), (1375089289,), (1375089312,), (1375089315,), (1375089317,), (1375089425,), (1375089763,), (1375089764,), (1375089765,), (1375089964,), (1375089966,), (1375089968,), (1375089999,), (1375090001,), (1375090002,), (1375090280,), (1375090259,), (1375090390,), (1375090392,), (1375090393,), (1375090437,), (1375090466,), (1375090469,), (1375090471,), (1375090532,), (1375090558,), (1375090614,), (1375090618,), (1375090621,), (1375090625,), (1375090629,), (1375090632,), (1375090644,), (1375090646,), (1375090678,), (1375090679,), (1375090707,), (1375090708,), (1375090709,), (1375090711,), (1375090737,), (1375090739,), (1375090741,), (1375090744,), (1375090748,), (1375090751,), (1375090767,), (1375090768,), (1375090769,), (1375090771,), (1375090804,), (1375090836,), (1375090861,), (1375090890,), (1375090916,), (1375091143,), (1375091881,), (1375091893,), (1375091955,), (1375091959,), (1375091962,), (1375091966,), (1375091985,), (1375091988,), (1375091990,), (1375091991,), (1375091994,), (1375091997,), (1375093488,), (1375093485,), (1375093487,), (1375093680,), (1375093687,), (1375093689,), (1375093692,), (1375093694,), (1375093712,), (1375093714,), (1375093715,), (1375093890,), (1375093915,), (1375093939,), (1375094168,), (1375094187,), (1375094210,), (1375094235,), (1375094237,), (1375094239,), (1375094336,), (1375094338,), (1375094339,), (1375094348,), (1375094408,), (1375094410,), (1375094411,), (1375094446,), (1375094448,), (1375094451,), (1375094454,), (1375094459,), (1375094460,), (1375094479,), (1375094481,), (1375094484,), (1375094487,), (1375094573,), (1375094579,), (1375094592,), (1375094594,), (1375094803,), (1375094805,), (1375094806,), (1375094915,), (1375095788,), (1375095786,), (1375095812,), (1375095814,), (1375095815,), (1375095834,), (1375095836,), (1375095837,), (1375095839,), (1375096249,), (1375096297,), (1375096344,), (1375096373,), (1375096480,), (1375096516,), (1375096562,), (1375096906,), (1375096788,), (1375096794,), (1375096817,), (1375096847,), (1375097072,), (1375097263,), (1375097289,), (1375097749,), (1375097775,), (1375097779,), (1375097824,), (1375097942,), (1375097960,), (1375098002,), (1375098013,), (1375098080,), (1375098085,), (1375098087,), (1375098090,), (1375098103,), (1375098355,), (1375098359,), (1375098361,), (1375098489,), (1375098515,), (1375098869,), (1375098894,), (1375099473,), (1375099822,), (1375099848,), (1375099846,), (1375099924,), (1375099937,), (1375100191,), (1375100193,), (1375100210,), (1375100329,), (1375100331,), (1375100333,), (1375100335,), (1375100339,), (1375100362,), (1375100364,), (1375100377,), (1375100402,), (1375100427,), (1375100470,), (1375100471,), (1375100472,), (1375100498,), (1375100541,), (1375100542,), (1375100543,), (1375100545,), (1375100548,), (1375100550,), (1375100561,), (1375100563,), (1375100565,), (1375100567,), (1375100569,), (1375100571,), (1375100572,), (1375100574,), (1375100577,), (1375100580,), (1375100583,), (1375100593,), (1375100594,), (1375100595,), (1375100628,), (1375100630,), (1375100633,), (1375100635,), (1375100638,), (1375100641,), (1375100666,), (1375100667,), (1375100668,), (1375100670,), (1375100673,), (1375100686,), (1375100687,), (1375100699,), (1375100704,), (1375100706,), (1375100722,), (1375100723,), (1375100724,), (1375100727,), (1375100753,), (1375100755,), (1375100756,), (1375100758,), (1375100760,), (1375100763,), (1375100804,), (1375100789,), (1375100793,), (1375100795,), (1375100798,), (1375100801,), (1375100823,), (1375100838,), (1375100839,), (1375100841,), (1375100855,), (1375100857,), (1375100858,), (1375100860,), (1375100863,), (1375100865,), (1375100873,), (1375100875,), (1375100876,), (1375100879,), (1375100882,), (1375100884,), (1375100901,), (1375100903,), (1375100904,), (1375100906,), (1375100909,), (1375100928,), (1375100931,), (1375100940,), (1375100962,), (1375100964,), (1375100965,), (1375100966,), (1375100968,), (1375101024,), (1375101026,), (1375101027,), (1375101029,), (1375101031,), (1375101034,), (1375101052,), (1375101054,), (1375101055,), (1375101074,), (1375101077,), (1375101079,), (1375101138,), (1375101144,), (1375101149,), (1375101151,), (1375101153,), (1375101155,), (1375101163,), (1375101165,), (1375101168,), (1375101174,), (1375101178,), (1375101181,), (1375101201,), (1375101202,), (1375101205,), (1375101209,), (1375101226,), (1375101230,), (1375101258,), (1375101260,), (1375101261,), (1375101262,), (1375101264,), (1375101300,), (1375101296,), (1375101299,), (1375101318,), (1375101321,), (1375101322,), (1375101324,), (1375101342,), (1375101344,), (1375101345,), (1375101347,), (1375101350,), (1375101354,), (1375101372,), (1375101374,), (1375101375,), (1375101377,), (1375101396,), (1375101397,), (1375101399,), (1375101401,), (1375101437,), (1375101439,), (1375101442,), (1375101445,), (1375101449,), (1375101453,), (1375101465,), (1375101467,), (1375101468,), (1375101470,), (1375101490,), (1375101495,), (1375101498,), (1375101501,), (1375101528,), (1375101529,), (1375101531,), (1375101554,), (1375101556,), (1375101558,), (1375101561,), (1375101585,), (1375101612,), (1375101616,), (1375101648,), (1375101651,), (1375101653,), (1375101712,), (1375101717,), (1375101729,), (1375101945,), (1375101894,), (1375101919,), (1375102281,), (1375102329,), (1375102374,), (1375102418,), (1375103387,), (1375103845,), (1375104054,), (1375104077,), (1375104208,), (1375104210,), (1375104211,), (1375104281,), (1375104285,), (1375104303,), (1375104486,), (1375104511,), (1375104799,), (1375104824,), (1375104845,), (1375104987,), (1375105219,), (1375105240,), (1375105242,), (1375105245,), (1375105248,), (1375105265,), (1375105267,), (1375105269,), (1375105272,), (1375105276,), (1375105352,), (1375105351,), (1375105420,), (1375105782,), (1375105783,), (1375105784,), (1375105811,), (1375105812,), (1375105813,), (1375105815,), (1375106012,), (1375106035,), (1375106060,), (1375106085,), (1375106211,), (1375106236,), (1375106271,), (1375106272,), (1375106305,), (1375106308,), (1375106310,), (1375106313,), (1375106317,), (1375106338,), (1375106339,), (1375106341,), (1375106344,), (1375106348,), (1375106371,), (1375106380,), (1375106384,), (1375106386,), (1375106563,), (1375106551,), (1375106554,), (1375106555,), (1375106557,), (1375106559,), (1375106600,), (1375106613,), (1375106616,), (1375106621,), (1375106726,), (1375106728,), (1375106763,), (1375106770,), (1375106774,), (1375106788,), (1375106886,), (1375106889,), (1375106899,), (1375106940,), (1375106944,), (1375106946,), (1375106948,), (1375106951,), (1375106979,), (1375106981,), (1375106983,), (1375106986,), (1375107055,), (1375107062,), (1375107064,), (1375107089,), (1375107092,), (1375107094,), (1375107095,), (1375107116,), (1375107117,), (1375107172,), (1375107179,), (1375107192,), (1375107194,), (1375107326,), (1375107327,), (1375107337,), (1375107340,), (1375107484,), (1375107516,), (1375107552,), (1375107598,), (1375107645,), (1375107677,), (1375107943,), (1375107949,), (1375107953,), (1375107960,), (1375107964,), (1375107970,), (1375107975,), (1375107977,), (1375107979,), (1375107980,), (1375107989,), (1375107991,), (1375107994,), (1375108034,), (1375108022,), (1375108027,), (1375108029,), (1375108031,), (1375108051,), (1375108053,), (1375108054,), (1375108056,), (1375108065,), (1375108096,), (1375108107,), (1375108110,), (1375108112,), (1375108140,), (1375108168,), (1375108170,), (1375108171,), (1375108176,), (1375108193,), (1375108219,), (1375108312,), (1375108342,), (1375108364,), (1375108386,), (1375108402,), (1375108458,), (1375108466,), (1375108467,), (1375108469,), (1375108473,), (1375108475,), (1375108488,), (1375108490,), (1375108491,), (1375108493,), (1375108518,), (1375108520,), (1375108521,), (1375108542,), (1375108545,), (1375108547,), (1375108568,), (1375108569,), (1375108571,), (1375108573,), (1375108577,), (1375108580,), (1375108597,), (1375108598,), (1375108600,), (1375108601,), (1375108850,), (1375108872,), (1375109871,), (1375109775,), (1375109777,), (1375109781,), (1375109819,), (1375110179,), (1375110203,), (1375110225,), (1375110247,), (1375110424,), (1375110426,), (1375110428,), (1375110430,), (1375110700,), (1375110704,), (1375110710,), (1375110840,), (1375110843,), (1375110845,), (1375110846,), (1375110851,), (1375110885,), (1375110886,), (1375110887,), (1375110889,), (1375110912,), (1375110935,), (1375111030,), (1375111031,), (1375111032,), (1375111033,), (1375111038,), (1375111063,), (1375111067,), (1375111068,), (1375111075,), (1375111081,), (1375111085,), (1375111113,), (1375111116,), (1375111117,), (1375111119,), (1375111121,), (1375111160,), (1375111161,), (1375111163,), (1375111165,), (1375111168,), (1375111172,), (1375111182,), (1375117404,), (1375117440,), (1375117443,), (1375117460,), (1375117462,), (1375117511,), (1375117767,), (1375118002,), (1375118006,), (1375118010,), (1375118070,), (1375118072,), (1375118074,), (1375118087,), (1375118122,), (1375118277,), (1375118253,), (1375118271,), (1375118403,), (1375118406,), (1375118408,), (1375118411,), (1375118421,), (1375118437,), (1375118460,), (1375118462,), (1375118464,), (1375118466,), (1375118476,), (1375118480,), (1375118556,), (1375118558,), (1375118623,), (1375118692,), (1375118719,), (1375118721,), (1375118743,), (1375118791,), (1375118794,), (1375118820,), (1375118846,), (1375118882,), (1375118885,), (1375119348,), (1375119353,), (1375119380,), (1375119446,), (1375119693,), (1375119665,), (1375120101,), (1375120516,), (1375120585,), (1375120653,), (1375120702,), (1375120908,), (1375121697,), (1375122274,), (1375122314,), (1375122315,), (1375123231,), (1375123234,), (1375123255,), (1375123257,), (1375123280,), (1375123282,), (1375123284,), (1375123286,), (1375123290,), (1375123311,), (1375123314,), (1375123316,), (1375123318,), (1375123347,), (1375123368,), (1375123377,), (1375123395,), (1375123416,), (1375123420,), (1375123421,), (1375123454,), (1375123458,), (1375123465,), (1375123467,), (1375123444,), (1375123445,), (1375123447,), (1375123451,), (1375123473,), (1375123475,), (1375123478,), (1375123485,), (1375123489,), (1375123494,), (1375123515,), (1375123533,), (1375123535,), (1375123538,), (1375123543,), (1375123568,), (1375123570,), (1375123591,), (1375123596,), (1375123600,), (1375123628,), (1375123629,), (1375123630,), (1375123632,), (1375123655,), (1375123657,), (1375123659,), (1375123662,), (1375123682,), (1375123693,), (1375123696,), (1375123740,), (1375123742,), (1375123744,), (1375123765,), (1375123768,), (1375123801,), (1375123833,), (1375123835,), (1375123836,), (1375124039,), (1375124064,), (1375124210,), (1375124211,), (1375124231,), (1375124234,), (1375124267,), (1375124259,), (1375124261,), (1375124264,), (1375124290,), (1375124338,), (1375124340,), (1375124342,), (1375124346,), (1375124351,), (1375124364,), (1375129623,), (1375129625,), (1375129671,), (1375129673,), (1375129674,), (1375129675,), (1375129677,), (1375129697,), (1375129699,), (1375129701,), (1375129703,), (1375129706,), (1375129726,), (1375129727,), (1375129729,), (1375129732,), (1375129736,), (1375129740,), (1375129749,), (1375129752,), (1375129763,), (1375129766,), (1375129767,), (1375129769,), (1375129805,), (1375129807,), (1375129808,), (1375129810,), (1375129814,), (1375129816,), (1375129908,), (1375129934,), (1375129958,), (1375129982,), (1375130007,), (1375130032,), (1375130203,), (1375130210,), (1375130213,), (1375130216,), (1375130243,), (1375130247,), (1375130249,), (1375130251,), (1375130256,), (1375130332,), (1375130357,), (1375130381,), (1375130384,), (1375130485,), (1375130511,), (1375130537,), (1375130562,), (1375130587,), (1375131268,), (1375131315,), (1375131349,), (1375131376,), (1375131401,), (1375131489,), (1375131516,), (1375131548,), (1375131868,), (1375131699,), (1375131767,), (1375131790,), (1375131816,), (1375131842,), (1375132284,), (1375132339,), (1375132384,), (1375132411,), (1375132437,), (1375132771,), (1375132773,), (1375132776,), (1375132779,), (1375132783,), (1375132786,), (1375132990,), (1375132993,), (1375133009,), (1375133042,), (1375133047,), (1375133048,), (1375133101,), (1375133127,), (1375133136,), (1375133142,), (1375133145,), (1375133146,), (1375133160,), (1375133161,), (1375133164,), (1375133165,), (1375133169,), (1375133170,), (1375133175,), (1375133176,), (1375133179,), (1375133180,), (1375133182,), (1375133184,), (1375133196,), (1375133198,), (1375133200,), (1375133202,), (1375133216,), (1375133218,), (1375133220,), (1375133223,), (1375133236,), (1375133242,), (1375133276,), (1375133277,), (1375133278,), (1375133299,), (1375133300,), (1375133301,), (1375133302,), (1375133304,), (1375133325,), (1375133326,), (1375133328,), (1375133331,), (1375133335,), (1375133340,), (1375133384,), (1375133386,), (1375133389,), (1375133394,), (1375133403,), (1375133406,), (1375133419,), (1375133421,), (1375133422,), (1375133424,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04082025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25641106]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] map_info['map_portfolio_photo'] : {25641106: [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326, 1375133325, 1375133304, 1375133302, 1375133301, 1375133300, 1375133299, 1375133278, 1375133277, 1375133276, 1375133242, 1375133236, 1375133223, 1375133220, 1375133218, 1375133216, 1375133202, 1375133200, 1375133198, 1375133196, 1375133184, 1375133182, 1375133180, 1375133179, 1375133176, 1375133175, 1375133170, 1375133169, 1375133165, 1375133164, 1375133161, 1375133160, 1375133146, 1375133145, 1375133142, 1375133136, 1375133127, 1375133101, 1375133048, 1375133047, 1375133042, 1375133009, 1375132993, 1375132990, 1375132786, 1375132783, 1375132779, 1375132776, 1375132773, 1375132771, 1375132437, 1375132411, 1375132384, 1375132339, 1375132284, 1375131842, 1375131816, 1375131790, 1375131767, 1375131699]} final : True mtd_id 4302 list_pids : [1375133424, 1375133422, 1375133421, 1375133419, 1375133406, 1375133403, 1375133394, 1375133389, 1375133386, 1375133384, 1375133340, 1375133335, 1375133331, 1375133328, 1375133326] Looping around the photos to save general results len do output : 1 /25641106Didn'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, '3434656') ('4302', '25641106', '1375133424', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656') ('4302', None, None, None, None, None, None, None, '3434656') ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '25641106', 'None', None, None, None, None, '3434656'), ('4302', '25641106', '1375133424', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133422', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133421', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133419', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133406', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133403', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133394', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133389', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133386', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133384', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133340', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133335', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133331', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133328', None, None, None, None, None, '3434656'), ('4302', '25641106', '1375133326', None, None, None, None, None, '3434656')] time used for this insertion : 0.014896869659423828 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.017256498336792 time spend to save output : 0.015239238739013672 total time spend for step 5 : 2.0324957370758057 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 (3434656) 2.28user 2.18system 0:08.77elapsed 50%CPU (0avgtext+0avgdata 165724maxresident)k 240inputs+9856outputs (5major+78444minor)pagefaults 0swaps