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 : 423750 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 (3436608) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3436608) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646740 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3436608'] with mtr_portfolio_ids : ['25646740'] and first list_photo_ids : [] new path : /proc/423750/ Name: python3 Umask: 0002 State: R (running) Tgid: 423750 Ngid: 0 Pid: 423750 PPid: 423746 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 423750 NSpid: 423750 NSpgid: 423223 NSsid: 423223 VmPeak: 1106968 kB VmSize: 1106968 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98764 kB VmRSS: 98764 kB RssAnon: 59824 kB RssFile: 38940 kB RssShmem: 0 kB VmData: 865720 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 41 nonvoluntary_ctxt_switches: 163 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '423750', 'Ngid': '0', 'Pid': '423750', 'PPid': '423746', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '423750', 'NSpid': '423750', 'NSpgid': '423223', 'NSsid': '423223', 'VmPeak': '1106968 kB', 'VmSize': '1106968 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98764 kB', 'VmRSS': '98764 kB', 'RssAnon': '59824 kB', 'RssFile': '38940 kB', 'RssShmem': '0 kB', 'VmData': '865720 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '41', 'nonvoluntary_ctxt_switches': '163'} ('datou_batch_current', '423750', '1106968', '0', '1106968', '865720', '98764', b'', 'marlene', '3436608') 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 (25646740) 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 (3436608 ) ) 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 (25646740) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375150593, 'portfolio_id': 25646740}, {'photo_id': 1375150591, 'portfolio_id': 25646740}, {'photo_id': 1375150588, 'portfolio_id': 25646740}, {'photo_id': 1375150584, 'portfolio_id': 25646740}, {'photo_id': 1375150583, 'portfolio_id': 25646740}, {'photo_id': 1375150578, 'portfolio_id': 25646740}, {'photo_id': 1375150575, 'portfolio_id': 25646740}, {'photo_id': 1375150572, 'portfolio_id': 25646740}, {'photo_id': 1375150567, 'portfolio_id': 25646740}, {'photo_id': 1375150562, 'portfolio_id': 25646740}, {'photo_id': 1375150558, 'portfolio_id': 25646740}, {'photo_id': 1375150527, 'portfolio_id': 25646740}, {'photo_id': 1375150523, 'portfolio_id': 25646740}, {'photo_id': 1375150518, 'portfolio_id': 25646740}, {'photo_id': 1375150515, 'portfolio_id': 25646740}, {'photo_id': 1375150513, 'portfolio_id': 25646740}, {'photo_id': 1375150511, 'portfolio_id': 25646740}, {'photo_id': 1375150475, 'portfolio_id': 25646740}, {'photo_id': 1375150473, 'portfolio_id': 25646740}, {'photo_id': 1375150471, 'portfolio_id': 25646740}, {'photo_id': 1375150469, 'portfolio_id': 25646740}, {'photo_id': 1375150447, 'portfolio_id': 25646740}, {'photo_id': 1375150444, 'portfolio_id': 25646740}, {'photo_id': 1375150441, 'portfolio_id': 25646740}, {'photo_id': 1375150440, 'portfolio_id': 25646740}, {'photo_id': 1375150436, 'portfolio_id': 25646740}, {'photo_id': 1375150404, 'portfolio_id': 25646740}, {'photo_id': 1375150401, 'portfolio_id': 25646740}, {'photo_id': 1375150399, 'portfolio_id': 25646740}, {'photo_id': 1375150397, 'portfolio_id': 25646740}, {'photo_id': 1375150372, 'portfolio_id': 25646740}, {'photo_id': 1375150368, 'portfolio_id': 25646740}, {'photo_id': 1375150367, 'portfolio_id': 25646740}, {'photo_id': 1375150365, 'portfolio_id': 25646740}, {'photo_id': 1375150363, 'portfolio_id': 25646740}, {'photo_id': 1375150330, 'portfolio_id': 25646740}, {'photo_id': 1375150322, 'portfolio_id': 25646740}, {'photo_id': 1375150318, 'portfolio_id': 25646740}, {'photo_id': 1375150314, 'portfolio_id': 25646740}, {'photo_id': 1375150310, 'portfolio_id': 25646740}, {'photo_id': 1375150307, 'portfolio_id': 25646740}, {'photo_id': 1375150278, 'portfolio_id': 25646740}, {'photo_id': 1375150274, 'portfolio_id': 25646740}, {'photo_id': 1375150272, 'portfolio_id': 25646740}, {'photo_id': 1375150271, 'portfolio_id': 25646740}, {'photo_id': 1375150269, 'portfolio_id': 25646740}] map_portfolio_id_photo_id: {25646740: [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511, 1375150475, 1375150473, 1375150471, 1375150469, 1375150447, 1375150444, 1375150441, 1375150440, 1375150436, 1375150404, 1375150401, 1375150399, 1375150397, 1375150372, 1375150368, 1375150367, 1375150365, 1375150363, 1375150330, 1375150322, 1375150318, 1375150314, 1375150310, 1375150307, 1375150278, 1375150274, 1375150272, 1375150271, 1375150269]} ##### 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.015826702117919922 #### 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 19:24: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25646740) 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 : 25646740 get user id for portfolio 25646740 get sub ptf for main ptf 25646740, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'metal', 'papier', 'Carton_brun', 'kraft', 'cartonnette', 'Carton_gris', 'environnement', 'plastique', 'autre_refus', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25646740 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','papier','Carton_brun','kraft','cartonnette','Carton_gris','environnement','plastique','autre_refus','mal_croppe')) 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`=25646740 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','papier','Carton_brun','kraft','cartonnette','Carton_gris','environnement','plastique','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25646740, 'sub_port_id': 25646776, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292120, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'kraft': {'main_port_id': 25646740, 'sub_port_id': 25646777, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292121, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'flou': {'main_port_id': 25646740, 'sub_port_id': 25646778, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292122, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'Carton_brun': {'main_port_id': 25646740, 'sub_port_id': 25646779, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292123, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'mal_croppe': {'main_port_id': 25646740, 'sub_port_id': 25646780, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292124, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'papier': {'main_port_id': 25646740, 'sub_port_id': 25646781, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292125, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'Carton_gris': {'main_port_id': 25646740, 'sub_port_id': 25646782, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292126, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'metal': {'main_port_id': 25646740, 'sub_port_id': 25646783, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292127, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'autre_refus': {'main_port_id': 25646740, 'sub_port_id': 25646784, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292128, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'plastique': {'main_port_id': 25646740, 'sub_port_id': 25646785, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292129, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 25646740, 'sub_port_id': 25646786, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292130, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}, 'environnement': {'main_port_id': 25646740, 'sub_port_id': 25646787, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292131, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646776 , 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=25646740 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 (25646776) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646777 , 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=25646740 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 (25646777) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646778 , 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=25646740 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 (25646778) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646779 , 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=25646740 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 (25646779) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646780 , 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=25646740 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 (25646780) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646781 , 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=25646740 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 (25646781) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646782 , 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=25646740 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 (25646782) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646783 , 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=25646740 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 (25646783) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646784 , 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=25646740 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 (25646784) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646785 , 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=25646740 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 (25646785) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646786 , 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=25646740 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 (25646786) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25646787 , 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=25646740 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 (25646787) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25646740) result : ((1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25646740 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','papier','Carton_brun','kraft','cartonnette','Carton_gris','environnement','plastique','autre_refus','mal_croppe')) 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`=25646740 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','metal','papier','Carton_brun','kraft','cartonnette','Carton_gris','environnement','plastique','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25646740, 'sub_port_id': 25646788, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292132, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'kraft': {'main_port_id': 25646740, 'sub_port_id': 25646789, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292133, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'flou': {'main_port_id': 25646740, 'sub_port_id': 25646790, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292134, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'Carton_brun': {'main_port_id': 25646740, 'sub_port_id': 25646791, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292135, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'mal_croppe': {'main_port_id': 25646740, 'sub_port_id': 25646792, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292136, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'papier': {'main_port_id': 25646740, 'sub_port_id': 25646793, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292137, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'Carton_gris': {'main_port_id': 25646740, 'sub_port_id': 25646794, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292138, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'metal': {'main_port_id': 25646740, 'sub_port_id': 25646795, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292139, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'autre_refus': {'main_port_id': 25646740, 'sub_port_id': 25646796, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292140, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'plastique': {'main_port_id': 25646740, 'sub_port_id': 25646797, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292141, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25646740, 'sub_port_id': 25646798, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292142, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}, 'environnement': {'main_port_id': 25646740, 'sub_port_id': 25646799, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17292143, 'last_updated_at': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_desc': datetime.datetime(2025, 8, 4, 19, 23), 'last_updated_at_asc': datetime.datetime(2025, 8, 4, 19, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646777 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646778 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646780 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25646799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25646787 lien utilise dans velours : https://www.fotonower.com/velours/25646788,25646789,25646790,25646791,25646792,25646793,25646794,25646795,25646796,25646797,25646798,25646799?tags=cartonnette,kraft,flou,Carton_brun,mal_croppe,papier,Carton_gris,metal,autre_refus,plastique,Teint_Dans_La_Masse,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25646740]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] map_info['map_portfolio_photo'] : {25646740: [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511, 1375150475, 1375150473, 1375150471, 1375150469, 1375150447, 1375150444, 1375150441, 1375150440, 1375150436, 1375150404, 1375150401, 1375150399, 1375150397, 1375150372, 1375150368, 1375150367, 1375150365, 1375150363, 1375150330, 1375150322, 1375150318, 1375150314, 1375150310, 1375150307, 1375150278, 1375150274, 1375150272, 1375150271, 1375150269]} final : False mtd_id 4302 list_pids : [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] Looping around the photos to save general results len do output : 1 /25646740. 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, '3436608') ('4302', '25646740', '1375150593', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '25646740', "{'cartonnette': 25646776, 'kraft': 25646777, 'flou': 25646778, 'Carton_brun': 25646779, 'mal_croppe': 25646780, 'papier': 25646781, 'Carton_gris': 25646782, 'metal': 25646783, 'autre_refus': 25646784, 'plastique': 25646785, 'Teint_Dans_La_Masse': 25646786, 'environnement': 25646787}", None, None, None, None, '3436608'), ('4302', '25646740', '1375150593', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608')] time used for this insertion : 0.017924785614013672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.525024652481079 time spend to save output : 0.018201828002929688 total time spend for step 1 : 1.5432264804840088 step2:final Mon Aug 4 19:24: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 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 (25646740) 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 25646740 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375150278,1375150274,1375150272,1375150271,1375150269,1375150330,1375150322,1375150318,1375150314,1375150310,1375150307,1375150372,1375150368,1375150367,1375150365,1375150363,1375150404,1375150401,1375150399,1375150397,1375150447,1375150444,1375150441,1375150440,1375150436,1375150475,1375150473,1375150471,1375150469,1375150593,1375150527,1375150523,1375150591,1375150518,1375150588,1375150515,1375150584,1375150513,1375150583,1375150578,1375150511,1375150575,1375150572,1375150567,1375150562,1375150558); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25646740]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} new output for save of step final : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] map_info['map_portfolio_photo'] : {25646740: [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511, 1375150475, 1375150473, 1375150471, 1375150469, 1375150447, 1375150444, 1375150441, 1375150440, 1375150436, 1375150404, 1375150401, 1375150399, 1375150397, 1375150372, 1375150368, 1375150367, 1375150365, 1375150363, 1375150330, 1375150322, 1375150318, 1375150314, 1375150310, 1375150307, 1375150278, 1375150274, 1375150272, 1375150271, 1375150269]} final : False mtd_id 4302 list_pids : [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] Looping around the photos to save general results len do output : 17 /1375150593.Didn't retrieve data . /1375150591.Didn't retrieve data . /1375150588.Didn't retrieve data . /1375150584.Didn't retrieve data . /1375150583.Didn't retrieve data . /1375150578.Didn't retrieve data . /1375150575.Didn't retrieve data . /1375150572.Didn't retrieve data . /1375150567.Didn't retrieve data . /1375150562.Didn't retrieve data . /1375150558.Didn't retrieve data . /1375150527.Didn't retrieve data . /1375150523.Didn't retrieve data . /1375150518.Didn't retrieve data . /1375150515.Didn't retrieve data . /1375150513.Didn't retrieve data . /1375150511.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, '3436608') ('4302', '25646740', '1375150593', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '25646740', '1375150593', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150591', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150588', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150584', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150583', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150578', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150575', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150572', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150567', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150562', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150558', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150527', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150523', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150518', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150515', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150513', '0.0', None, None, None, None, '3436608'), ('4302', '25646740', '1375150511', '0.0', None, None, None, None, '3436608')] time used for this insertion : 0.016093015670776367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.051043033599853516 time spend to save output : 0.01675271987915039 total time spend for step 2 : 0.0677957534790039 step3:velours_tree Mon Aug 4 19:24: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 : {25646740: [{'cartonnette': 25646776, 'kraft': 25646777, 'flou': 25646778, 'Carton_brun': 25646779, 'mal_croppe': 25646780, 'papier': 25646781, 'Carton_gris': 25646782, 'metal': 25646783, 'autre_refus': 25646784, 'plastique': 25646785, 'Teint_Dans_La_Masse': 25646786, 'environnement': 25646787}]} input_args_next_step : {25646740: ()} output_args : {25646740: [{'cartonnette': 25646776, 'kraft': 25646777, 'flou': 25646778, 'Carton_brun': 25646779, 'mal_croppe': 25646780, 'papier': 25646781, 'Carton_gris': 25646782, 'metal': 25646783, 'autre_refus': 25646784, 'plastique': 25646785, 'Teint_Dans_La_Masse': 25646786, 'environnement': 25646787}]} args : 25646740 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 : ({'cartonnette': 25646776, 'kraft': 25646777, 'flou': 25646778, 'Carton_brun': 25646779, 'mal_croppe': 25646780, 'papier': 25646781, 'Carton_gris': 25646782, 'metal': 25646783, 'autre_refus': 25646784, 'plastique': 25646785, 'Teint_Dans_La_Masse': 25646786, 'environnement': 25646787},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25646740) 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([25646740]) 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.3195221424102783 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.31957483291625977 step4:send_mail_cod Mon Aug 4 19:24: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 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 : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} input_args_next_step : {1375150593: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150593 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150591 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150588 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150584 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150583 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150578 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150575 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150572 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150567 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150562 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150558 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150527 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150523 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150518 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150515 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150513 depend.output_id : 0 input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ()} output_args : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',)} args : 1375150511 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 : {25646740: [{'cartonnette': 25646776, 'kraft': 25646777, 'flou': 25646778, 'Carton_brun': 25646779, 'mal_croppe': 25646780, 'papier': 25646781, 'Carton_gris': 25646782, 'metal': 25646783, 'autre_refus': 25646784, 'plastique': 25646785, 'Teint_Dans_La_Masse': 25646786, 'environnement': 25646787}]} input_args_next_step : {1375150593: ('0.0',), 1375150591: ('0.0',), 1375150588: ('0.0',), 1375150584: ('0.0',), 1375150583: ('0.0',), 1375150578: ('0.0',), 1375150575: ('0.0',), 1375150572: ('0.0',), 1375150567: ('0.0',), 1375150562: ('0.0',), 1375150558: ('0.0',), 1375150527: ('0.0',), 1375150523: ('0.0',), 1375150518: ('0.0',), 1375150515: ('0.0',), 1375150513: ('0.0',), 1375150511: ('0.0',), 25646740: ()} output_args : {25646740: [{'cartonnette': 25646776, 'kraft': 25646777, 'flou': 25646778, 'Carton_brun': 25646779, 'mal_croppe': 25646780, 'papier': 25646781, 'Carton_gris': 25646782, 'metal': 25646783, 'autre_refus': 25646784, 'plastique': 25646785, 'Teint_Dans_La_Masse': 25646786, 'environnement': 25646787}]} args : 25646740 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 :18, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25646740) 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 (1375150593,1375150591,1375150588,1375150584,1375150583,1375150578,1375150575,1375150572,1375150567,1375150562,1375150558,1375150527,1375150523,1375150518,1375150515,1375150513,1375150511) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375150511 begin to download photo : 1375150523 begin to download photo : 1375150567 begin to download photo : 1375150583 begin to download photo : 1375150593 download finish for photo 1375150523 begin to download photo : 1375150527 download finish for photo 1375150583 begin to download photo : 1375150584 download finish for photo 1375150567 begin to download photo : 1375150572 download finish for photo 1375150511 begin to download photo : 1375150513 download finish for photo 1375150593 download finish for photo 1375150527 begin to download photo : 1375150558 download finish for photo 1375150584 begin to download photo : 1375150588 download finish for photo 1375150513 begin to download photo : 1375150515 download finish for photo 1375150572 begin to download photo : 1375150575 download finish for photo 1375150588 begin to download photo : 1375150591 download finish for photo 1375150558 begin to download photo : 1375150562 download finish for photo 1375150515 begin to download photo : 1375150518 download finish for photo 1375150575 begin to download photo : 1375150578 download finish for photo 1375150562 download finish for photo 1375150591 download finish for photo 1375150518 download finish for photo 1375150578 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette256467761754328273/ imagette256467771754328273/ imagette256467781754328273/ imagette256467801754328273/ imagette256467831754328273/ imagette256467841754328273/ imagette256467851754328273/ imagette256467791754328273/ imagette256467821754328273/ imagette256467861754328273/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P25646740_04-08-2025_19_24_33.pdf 25646776 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=25646776 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467761754328273 25646777 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=25646777 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467771754328273 25646778 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=25646778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467781754328273 25646780 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=25646780 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467801754328273 25646783 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=25646783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467831754328273 25646784 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=25646784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467841754328273 25646785 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=25646785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467851754328273 25646779 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=25646779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467791754328273 25646782 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=25646782 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467821754328273 25646786 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=25646786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette256467861754328273 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25646740 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25646788,25646789,25646790,25646791,25646792,25646793,25646794,25646795,25646796,25646797,25646798,25646799?tags=cartonnette,kraft,flou,Carton_brun,mal_croppe,papier,Carton_gris,metal,autre_refus,plastique,Teint_Dans_La_Masse,environnement your option no_mail is active, we will not send the real mail to your client args[1375150593] : ('0.0',) no score found for photo 1375150593 We are sending mail with results at report@fotonower.com args[1375150591] : ('0.0',) no score found for photo 1375150591 We are sending mail with results at report@fotonower.com args[1375150588] : ('0.0',) no score found for photo 1375150588 We are sending mail with results at report@fotonower.com args[1375150584] : ('0.0',) no score found for photo 1375150584 We are sending mail with results at report@fotonower.com args[1375150583] : ('0.0',) no score found for photo 1375150583 We are sending mail with results at report@fotonower.com args[1375150578] : ('0.0',) no score found for photo 1375150578 We are sending mail with results at report@fotonower.com args[1375150575] : ('0.0',) no score found for photo 1375150575 We are sending mail with results at report@fotonower.com args[1375150572] : ('0.0',) no score found for photo 1375150572 We are sending mail with results at report@fotonower.com args[1375150567] : ('0.0',) no score found for photo 1375150567 We are sending mail with results at report@fotonower.com args[1375150562] : ('0.0',) no score found for photo 1375150562 We are sending mail with results at report@fotonower.com args[1375150558] : ('0.0',) no score found for photo 1375150558 We are sending mail with results at report@fotonower.com args[1375150527] : ('0.0',) no score found for photo 1375150527 We are sending mail with results at report@fotonower.com args[1375150523] : ('0.0',) no score found for photo 1375150523 We are sending mail with results at report@fotonower.com args[1375150518] : ('0.0',) no score found for photo 1375150518 We are sending mail with results at report@fotonower.com args[1375150515] : ('0.0',) no score found for photo 1375150515 We are sending mail with results at report@fotonower.com args[1375150513] : ('0.0',) no score found for photo 1375150513 We are sending mail with results at report@fotonower.com args[1375150511] : ('0.0',) no score found for photo 1375150511 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=25646740 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_P25646740_04-08-2025_19_24_33.pdf results_Auto_P25646740_04-08-2025_19_24_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_24_33.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','25646740','results_Auto_P25646740_04-08-2025_19_24_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_24_33.pdf','pdf','','0.13','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25646740]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] map_info['map_portfolio_photo'] : {25646740: [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511, 1375150475, 1375150473, 1375150471, 1375150469, 1375150447, 1375150444, 1375150441, 1375150440, 1375150436, 1375150404, 1375150401, 1375150399, 1375150397, 1375150372, 1375150368, 1375150367, 1375150365, 1375150363, 1375150330, 1375150322, 1375150318, 1375150314, 1375150310, 1375150307, 1375150278, 1375150274, 1375150272, 1375150271, 1375150269]} final : False mtd_id 4302 list_pids : [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] 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, '3436608') ('4302', '25646740', '1375150593', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '25646740', '1375150593', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608')] time used for this insertion : 0.01654362678527832 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7470660209655762 time spend to save output : 0.016858577728271484 total time spend for step 4 : 1.7639245986938477 step5:split_time_score Mon Aug 4 19:24:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25646740'] 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 : [('25646740',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25646740) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375150593: {'path': 'temp/1754328272_423750_1375150593_cb59fabf490ba26e5a9cfbb1bd30bdc2.jpg', 'extension': 'jpg'}, 1375150523: {'path': 'temp/1754328272_423750_1375150523_f251d892b8ee946879819af9866135ff.jpg', 'extension': 'jpg'}, 1375150527: {'path': 'temp/1754328272_423750_1375150527_2dcfd2b78c26d37e4280e1db9c51a7c3.jpg', 'extension': 'jpg'}, 1375150558: {'path': 'temp/1754328272_423750_1375150558_c9c4688b6275c28247e0f065708f632a.jpg', 'extension': 'jpg'}, 1375150562: {'path': 'temp/1754328272_423750_1375150562_6798d7b00b63b96d62a3b3da664d896c.jpg', 'extension': 'jpg'}, 1375150583: {'path': 'temp/1754328272_423750_1375150583_ce94f44af71ea0a02e713c381d89d67d.jpg', 'extension': 'jpg'}, 1375150584: {'path': 'temp/1754328272_423750_1375150584_3a868608a13e5f847b2d5cef85423266.jpg', 'extension': 'jpg'}, 1375150588: {'path': 'temp/1754328272_423750_1375150588_abc4785b6f345f3e39d0e76099402e3e.jpg', 'extension': 'jpg'}, 1375150591: {'path': 'temp/1754328272_423750_1375150591_78535487c2d8e98ff6c213219370d8ed.jpg', 'extension': 'jpg'}, 1375150511: {'path': 'temp/1754328272_423750_1375150511_83251f56ad6cb564042495083bfb6738.jpg', 'extension': 'jpg'}, 1375150513: {'path': 'temp/1754328272_423750_1375150513_85dca49b836c4ad881da31ba309750f7.jpg', 'extension': 'jpg'}, 1375150515: {'path': 'temp/1754328272_423750_1375150515_4aa451844eb83784c423e4f3a2aa9f5c.jpg', 'extension': 'jpg'}, 1375150518: {'path': 'temp/1754328272_423750_1375150518_cbce83066ccce34740c5801a516edde6.jpg', 'extension': 'jpg'}, 1375150567: {'path': 'temp/1754328272_423750_1375150567_c34f11bc671b3ae90a841ac54a92e019.jpg', 'extension': 'jpg'}, 1375150572: {'path': 'temp/1754328272_423750_1375150572_1bbc5ac42226fa82dd20e8411f62f246.jpg', 'extension': 'jpg'}, 1375150575: {'path': 'temp/1754328272_423750_1375150575_acaf2d49a7d350acc34f9b8abb7ca5c4.jpg', 'extension': 'jpg'}, 1375150578: {'path': 'temp/1754328272_423750_1375150578_9c040291c9403c7824675df86f8a2b0f.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 = 25646740; (('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 = 25646740 group by h (('19', 46),) 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=25646740 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 (25646740) 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 (25646740) 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 25646740 Nombre de photos uploadées : 46 / 23040 (0%) 04082025 25646740 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 04082025 25646740 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1375150278, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/dc0cb638622e92d5510443db1a6d1975.jpg', 'username': None, 'uploaded_at': 1754327768, 'text': 'image_04082025_19_15_04_10139.jpg'}, {'photo_id': 1375150274, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/6431a6ec93ab5480d5cce36da271bb72.jpg', 'username': None, 'uploaded_at': 1754327768, 'text': 'image_04082025_19_15_14_10133.jpg'}, {'photo_id': 1375150272, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/35e97c860e8ccd7d1cbff1c3799879b4.jpg', 'username': None, 'uploaded_at': 1754327768, 'text': 'image_04082025_19_15_24_10142.jpg'}, {'photo_id': 1375150271, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/4/f5f7f462ea4add0685673a25b258e34c.jpg', 'username': None, 'uploaded_at': 1754327768, 'text': 'image_04082025_19_15_34_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004452228546142578 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25646740, '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.23598098754882812 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': 2067729, 'mtr_portfolio_id': 25626685, 'dashboard_result_id': 13551443, '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': 2067729, 'mtr_portfolio_id': 25626882, 'dashboard_result_id': 13551444, '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': 2067729, 'mtr_portfolio_id': 25627175, 'dashboard_result_id': 13551445, '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': 2067729, 'mtr_portfolio_id': 25627892, 'dashboard_result_id': 13551446, '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': 2067729, 'mtr_portfolio_id': 25628013, 'dashboard_result_id': 13551447, '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': 2067729, 'mtr_portfolio_id': 25628303, 'dashboard_result_id': 13551448, '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': 2067729, 'mtr_portfolio_id': 25629056, 'dashboard_result_id': 13551449, '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': 2067729, 'mtr_portfolio_id': 25629211, 'dashboard_result_id': 13551450, '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': 2067729, 'mtr_portfolio_id': 25629456, 'dashboard_result_id': 13551451, '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': 2067729, 'mtr_portfolio_id': 25629837, 'dashboard_result_id': 13551452, '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': 2067729, 'mtr_portfolio_id': 25630398, 'dashboard_result_id': 13551453, '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': 2067729, 'mtr_portfolio_id': 25630863, 'dashboard_result_id': 13551454, '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': 2067729, 'mtr_portfolio_id': 25631422, 'dashboard_result_id': 13551455, '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': 2067729, 'mtr_portfolio_id': 25632607, 'dashboard_result_id': 13551456, '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': 2067729, 'mtr_portfolio_id': 25633178, 'dashboard_result_id': 13551457, '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': 2067729, 'mtr_portfolio_id': 25633267, 'dashboard_result_id': 13551458, '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': 2067729, 'mtr_portfolio_id': 25633910, 'dashboard_result_id': 13551459, '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': 2067729, 'mtr_portfolio_id': 25634253, 'dashboard_result_id': 13551460, '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': 2067729, 'mtr_portfolio_id': 25634599, 'dashboard_result_id': 13551461, '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': 2067729, 'mtr_portfolio_id': 25635026, 'dashboard_result_id': 13551462, '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': 2067729, 'mtr_portfolio_id': 25635624, 'dashboard_result_id': 13551463, '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': 2067729, 'mtr_portfolio_id': 25636062, 'dashboard_result_id': 13551464, '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': 2067729, 'mtr_portfolio_id': 25636503, 'dashboard_result_id': 13551465, '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': 2067729, 'mtr_portfolio_id': 25636886, 'dashboard_result_id': 13551466, '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': 2067729, 'mtr_portfolio_id': 25638616, 'dashboard_result_id': 13551467, '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': 2067729, 'mtr_portfolio_id': 25638768, 'dashboard_result_id': 13551468, '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': 2067729, 'mtr_portfolio_id': 25639033, 'dashboard_result_id': 13551469, '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': 2067729, 'mtr_portfolio_id': 25639429, 'dashboard_result_id': 13551470, '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': 2067729, 'mtr_portfolio_id': 25639623, 'dashboard_result_id': 13551471, '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': 2067729, 'mtr_portfolio_id': 25639888, 'dashboard_result_id': 13551472, '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_16_25_59.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': 2067729, 'mtr_portfolio_id': 25640848, 'dashboard_result_id': 13551473, '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': 2067729, 'mtr_portfolio_id': 25641106, 'dashboard_result_id': 13551474, '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_18_58.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}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25641532, 'dashboard_result_id': 13551475, '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_P25641532_04-08-2025_17_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641569, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25641959, 'dashboard_result_id': 13551476, '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_P25641959_04-08-2025_16_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25641981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641992, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25642597, 'dashboard_result_id': 13551477, '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_P25642597_04-08-2025_17_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642612, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25642797, 'dashboard_result_id': 13551478, '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_P25642797_04-08-2025_17_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642827, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25643206, 'dashboard_result_id': 13551479, '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_P25643206_04-08-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25643241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25643242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25643243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25643244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25643245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25643246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25643247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25643248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25643249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25643250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25643251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25643252, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25644407, 'dashboard_result_id': 13551480, '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_P25644407_04-08-2025_18_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25644505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644516, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25644820, 'dashboard_result_id': 13551481, '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_P25644820_04-08-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25644862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644865, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25645214, 'dashboard_result_id': 13551482, '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_P25645214_04-08-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25645250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645261, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25645634, 'dashboard_result_id': 13551483, '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_P25645634_04-08-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25645656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645660, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25646118, 'dashboard_result_id': 13551484, '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_P25646118_04-08-2025_19_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646194, 'pht': 3726}}"}, {'dashboat_entry_day': 2055199, 'dashboard_run_id': 2067729, 'mtr_portfolio_id': 25646740, 'dashboard_result_id': 13551485, '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_P25646740_04-08-2025_19_23_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646787, '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 = 2067729 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 (13551443, 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 = 2067729 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 (13551444, 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 = 2067729 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 (13551445, 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 = 2067729 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 (13551446, 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 = 2067729 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 (13551447, 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 = 2067729 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 (13551448, 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 = 2067729 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 (13551449, 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 = 2067729 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 (13551450, 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 = 2067729 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 (13551451, 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 = 2067729 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 (13551452, 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 = 2067729 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 (13551453, 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 = 2067729 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 (13551454, 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 = 2067729 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 (13551455, 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 = 2067729 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 (13551456, 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 = 2067729 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 (13551457, 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 = 2067729 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 (13551458, 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 = 2067729 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 (13551459, 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 = 2067729 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 (13551460, 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 = 2067729 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 (13551461, 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 = 2067729 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 (13551462, 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 = 2067729 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 (13551463, 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 = 2067729 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 (13551464, 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 = 2067729 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 (13551465, 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 = 2067729 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 (13551466, 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 = 2067729 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 (13551467, 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 = 2067729 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 (13551468, 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 = 2067729 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 (13551469, 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 = 2067729 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 (13551470, 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 = 2067729 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 (13551471, 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 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3434287, 'mtr_portfolio_id': 25639888, 'created_at': datetime.datetime(2025, 8, 4, 16, 25, 58), 'result': '0.08677193086211935', 'result_long': None, 'result_double': None}] Qualite : 0.08677193086211935 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_16_25_59.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_16_25_59.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 = 2067729 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`=25639888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551472, 0.08677193086211935, "{'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_16_25_59.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}}") 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 = 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 = 2067729 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 (13551473, 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, 18, 58), 'result': '0.039771584218669796', 'result_long': None, 'result_double': None}] Qualite : 0.039771584218669796 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_18_58.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_18_58.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 = 2067729 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 (13551474, 0.039771584218669796, "{'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_18_58.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 mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25641532 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': 3434776, 'mtr_portfolio_id': 25641532, 'created_at': datetime.datetime(2025, 8, 4, 17, 46, 1), 'result': '0.04311517764378336', 'result_long': None, 'result_double': None}] Qualite : 0.04311517764378336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25641532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641532_04-08-2025_17_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25641532 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_P25641532_04-08-2025_17_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641569, 'pht': 3726}}" where mtr_portfolio_id = 25641532 and dashboard_run_id = 2067729 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`=25641532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551475, 0.04311517764378336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641532_04-08-2025_17_46_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25641562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641569, '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 = 25641959 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': 3434914, 'mtr_portfolio_id': 25641959, 'created_at': datetime.datetime(2025, 8, 4, 16, 50, 30), 'result': '0.028608476345594318', 'result_long': None, 'result_double': None}] Qualite : 0.028608476345594318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25641959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641959_04-08-2025_16_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25641959 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_P25641959_04-08-2025_16_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25641981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641992, 'pht': 3726}}" where mtr_portfolio_id = 25641959 and dashboard_run_id = 2067729 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`=25641959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551476, 0.028608476345594318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25641959_04-08-2025_16_50_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25641981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25641982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25641983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25641984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25641985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25641986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25641987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25641988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25641989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25641990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25641991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25641992, '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 = 25642597 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 = 25642597 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 = 25642597 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25642597 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 = 25642597 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 = 25642597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642597_04-08-2025_17_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25642597 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_P25642597_04-08-2025_17_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642604, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642612, 'pht': 3726}}" where mtr_portfolio_id = 25642597 and dashboard_run_id = 2067729 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 = 25642797 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': 3435183, 'mtr_portfolio_id': 25642797, 'created_at': datetime.datetime(2025, 8, 4, 17, 16, 59), 'result': '0.0555831347668337', 'result_long': None, 'result_double': None}] Qualite : 0.0555831347668337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25642797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642797_04-08-2025_17_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25642797 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_P25642797_04-08-2025_17_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642827, 'pht': 3726}}" where mtr_portfolio_id = 25642797 and dashboard_run_id = 2067729 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`=25642797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551478, 0.0555831347668337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25642797_04-08-2025_17_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25642816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25642817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25642818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25642819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25642820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25642821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25642822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25642823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25642824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25642825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25642826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25642827, '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 = 25643206 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': 3435291, 'mtr_portfolio_id': 25643206, 'created_at': datetime.datetime(2025, 8, 4, 18, 2, 59), 'result': '0.048897836367251965', 'result_long': None, 'result_double': None}] Qualite : 0.048897836367251965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25643206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25643206_04-08-2025_18_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25643206 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_P25643206_04-08-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25643241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25643242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25643243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25643244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25643245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25643246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25643247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25643248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25643249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25643250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25643251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25643252, 'pht': 3726}}" where mtr_portfolio_id = 25643206 and dashboard_run_id = 2067729 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`=25643206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551479, 0.048897836367251965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25643206_04-08-2025_18_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25643241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25643242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25643243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25643244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25643245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25643246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25643247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25643248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25643249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25643250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25643251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25643252, '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 = 25644407 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': 3435749, 'mtr_portfolio_id': 25644407, 'created_at': datetime.datetime(2025, 8, 4, 18, 17), 'result': '0.05938662517163282', 'result_long': None, 'result_double': None}] Qualite : 0.05938662517163282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25644407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644407_04-08-2025_18_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25644407 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_P25644407_04-08-2025_18_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25644505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644516, 'pht': 3726}}" where mtr_portfolio_id = 25644407 and dashboard_run_id = 2067729 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`=25644407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551480, 0.05938662517163282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644407_04-08-2025_18_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25644505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644516, '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 = 25644820 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': 3435853, 'mtr_portfolio_id': 25644820, 'created_at': datetime.datetime(2025, 8, 4, 18, 32, 59), 'result': '0.03394024305837034', 'result_long': None, 'result_double': None}] Qualite : 0.03394024305837034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25644820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644820_04-08-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25644820 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_P25644820_04-08-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25644862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644865, 'pht': 3726}}" where mtr_portfolio_id = 25644820 and dashboard_run_id = 2067729 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`=25644820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551481, 0.03394024305837034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25644820_04-08-2025_18_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25644854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25644855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25644856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25644857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25644858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25644859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25644860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25644861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25644862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25644863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25644864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25644865, '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 = 25645214 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': 3435949, 'mtr_portfolio_id': 25645214, 'created_at': datetime.datetime(2025, 8, 4, 18, 46, 58), 'result': '0.10474727337663416', 'result_long': None, 'result_double': None}] Qualite : 0.10474727337663416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25645214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645214_04-08-2025_18_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25645214 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_P25645214_04-08-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25645250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645261, 'pht': 3726}}" where mtr_portfolio_id = 25645214 and dashboard_run_id = 2067731 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`=25645214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551482, 0.10474727337663416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645214_04-08-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25645250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645261, '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 = 25645634 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': 3436105, 'mtr_portfolio_id': 25645634, 'created_at': datetime.datetime(2025, 8, 4, 19, 2, 58), 'result': '0.01161932050816592', 'result_long': None, 'result_double': None}] Qualite : 0.01161932050816592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25645634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645634_04-08-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25645634 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_P25645634_04-08-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25645656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645660, 'pht': 3726}}" where mtr_portfolio_id = 25645634 and dashboard_run_id = 2067731 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`=25645634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551483, 0.01161932050816592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25645634_04-08-2025_19_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25645649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25645650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25645651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25645652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25645653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25645654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25645655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25645656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25645657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25645658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25645659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25645660, '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 = 25646118 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': 3436373, 'mtr_portfolio_id': 25646118, 'created_at': datetime.datetime(2025, 8, 4, 19, 18, 58), 'result': '0.05051556666714217', 'result_long': None, 'result_double': None}] Qualite : 0.05051556666714217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25646118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646118_04-08-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25646118 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_P25646118_04-08-2025_19_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646194, 'pht': 3726}}" where mtr_portfolio_id = 25646118 and dashboard_run_id = 2067731 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`=25646118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13551484, 0.05051556666714217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646118_04-08-2025_19_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646194, '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 = 25646740 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 = 25646740 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 = 25646740 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25646740 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 = 25646740 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 = 25646740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25646740_04-08-2025_19_24_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25646740 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_P25646740_04-08-2025_19_24_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25646776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25646777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25646778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25646779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25646780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25646781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25646782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25646783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25646784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25646785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25646786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25646787, 'pht': 3726}}" where mtr_portfolio_id = 25646740 and dashboard_run_id = 2067731 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,25641532,25641959,25642597,25642797,25643206,25644407,25644820,25645214,25645634,25646118,25646740) 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,), (1375129630,), (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,), (1375133445,), (1375133446,), (1375133448,), (1375133452,), (1375133456,), (1375133458,), (1375133478,), (1375133481,), (1375133484,), (1375133488,), (1375133491,), (1375133493,), (1375133505,), (1375133509,), (1375133513,), (1375133515,), (1375133518,), (1375133520,), (1375133531,), (1375133535,), (1375133544,), (1375133548,), (1375133554,), (1375133557,), (1375133584,), (1375133595,), (1375133598,), (1375133572,), (1375133574,), (1375133576,), (1375133579,), (1375133582,), (1375133603,), (1375133606,), (1375133607,), (1375133684,), (1375133687,), (1375133689,), (1375133692,), (1375133695,), (1375133697,), (1375133716,), (1375133719,), (1375133721,), (1375133725,), (1375133728,), (1375133742,), (1375133744,), (1375133745,), (1375133746,), (1375133748,), (1375133787,), (1375133789,), (1375133811,), (1375133813,), (1375133814,), (1375133816,), (1375133820,), (1375133843,), (1375133853,), (1375133859,), (1375133869,), (1375133873,), (1375133876,), (1375133902,), (1375133904,), (1375133907,), (1375133909,), (1375133913,), (1375133916,), (1375133926,), (1375133929,), (1375133936,), (1375133943,), (1375133947,), (1375133950,), (1375133960,), (1375133961,), (1375133965,), (1375133966,), (1375133970,), (1375133971,), (1375133976,), (1375133977,), (1375133980,), (1375133981,), (1375133983,), (1375133984,), (1375133993,), (1375133995,), (1375133996,), (1375133999,), (1375134002,), (1375134006,), (1375134015,), (1375134030,), (1375134033,), (1375134035,), (1375134036,), (1375134039,), (1375134044,), (1375134059,), (1375134061,), (1375134063,), (1375134065,), (1375134090,), (1375134092,), (1375134093,), (1375134096,), (1375134118,), (1375134122,), (1375134123,), (1375134126,), (1375134128,), (1375134133,), (1375134173,), (1375134179,), (1375134182,), (1375134183,), (1375134184,), (1375134186,), (1375134187,), (1375134157,), (1375134159,), (1375134162,), (1375134166,), (1375134169,), (1375134193,), (1375134196,), (1375134200,), (1375134212,), (1375134214,), (1375134216,), (1375134217,), (1375134235,), (1375134332,), (1375134414,), (1375134418,), (1375134421,), (1375134424,), (1375134428,), (1375134433,), (1375134440,), (1375134442,), (1375134459,), (1375135458,), (1375135496,), (1375135745,), (1375135746,), (1375135750,), (1375135768,), (1375135923,), (1375135924,), (1375135925,), (1375135932,), (1375136038,), (1375136039,), (1375136040,), (1375136180,), (1375136181,), (1375136182,), (1375136184,), (1375136273,), (1375136298,), (1375136320,), (1375136622,), (1375136628,), (1375136632,), (1375136635,), (1375136638,), (1375136894,), (1375136922,), (1375136956,), (1375137072,), (1375137099,), (1375137123,), (1375137150,), (1375137177,), (1375137185,), (1375137358,), (1375137382,), (1375136813,), (1375136842,), (1375136867,), (1375137191,), (1375137192,), (1375137194,), (1375137196,), (1375137213,), (1375137241,), (1375137431,), (1375137452,), (1375137472,), (1375137499,), (1375137529,), (1375137841,), (1375137865,), (1375137888,), (1375138050,), (1375138074,), (1375138098,), (1375138108,), (1375138111,), (1375138117,), (1375138203,), (1375138214,), (1375138220,), (1375138222,), (1375138225,), (1375138229,), (1375138250,), (1375138252,), (1375138254,), (1375138257,), (1375138280,), (1375138282,), (1375138284,), (1375138287,), (1375138292,), (1375138316,), (1375138317,), (1375138318,), (1375138320,), (1375138322,), (1375138352,), (1375138353,), (1375138354,), (1375138356,), (1375138421,), (1375138423,), (1375138424,), (1375138426,), (1375138447,), (1375138449,), (1375138471,), (1375138473,), (1375138475,), (1375138490,), (1375138497,), (1375138499,), (1375138503,), (1375138525,), (1375138528,), (1375138567,), (1375138564,), (1375138565,), (1375138595,), (1375138596,), (1375138598,), (1375138620,), (1375138622,), (1375138623,), (1375138625,), (1375138627,), (1375138630,), (1375138643,), (1375138645,), (1375138646,), (1375138657,), (1375138664,), (1375138686,), (1375138688,), (1375138689,), (1375138738,), (1375138740,), (1375138741,), (1375138743,), (1375138747,), (1375138749,), (1375138768,), (1375138771,), (1375138772,), (1375138774,), (1375138778,), (1375138780,), (1375138793,), (1375138794,), (1375138796,), (1375138800,), (1375138804,), (1375138807,), (1375138816,), (1375138819,), (1375138821,), (1375138823,), (1375138846,), (1375138849,), (1375138853,), (1375138859,), (1375138864,), (1375138868,), (1375138885,), (1375138889,), (1375138894,), (1375138896,), (1375138900,), (1375138902,), (1375138934,), (1375138938,), (1375138950,), (1375138955,), (1375138960,), (1375138962,), (1375138969,), (1375138971,), (1375138973,), (1375138975,), (1375138995,), (1375141509,), (1375141496,), (1375141540,), (1375141544,), (1375141547,), (1375141548,), (1375141581,), (1375141583,), (1375141586,), (1375141590,), (1375141609,), (1375141612,), (1375141615,), (1375141809,), (1375141831,), (1375141856,), (1375141878,), (1375142204,), (1375142227,), (1375142256,), (1375142281,), (1375142309,), (1375142335,), (1375142377,), (1375142378,), (1375142379,), (1375142401,), (1375142426,), (1375142655,), (1375142661,), (1375142662,), (1375142791,), (1375142793,), (1375142795,), (1375142798,), (1375142801,), (1375142831,), (1375142832,), (1375142833,), (1375142835,), (1375142840,), (1375142940,), (1375142942,), (1375143103,), (1375143104,), (1375143117,), (1375143148,), (1375143171,), (1375143202,), (1375143203,), (1375143204,), (1375143206,), (1375143230,), (1375143231,), (1375143232,), (1375143246,), (1375143272,), (1375143274,), (1375143275,), (1375143277,), (1375143492,), (1375143427,), (1375143453,), (1375143932,), (1375143934,), (1375143952,), (1375143955,), (1375144028,), (1375144029,), (1375144030,), (1375144031,), (1375144037,), (1375144061,), (1375144063,), (1375144064,), (1375144066,), (1375144321,), (1375144348,), (1375144372,), (1375144398,), (1375144428,), (1375144475,), (1375144477,), (1375144478,), (1375144480,), (1375144495,), (1375144608,), (1375144610,), (1375144641,), (1375144644,), (1375144647,), (1375144674,), (1375144677,), (1375144679,), (1375144706,), (1375144708,), (1375144710,), (1375144712,), (1375144716,), (1375144721,), (1375144742,), (1375144744,), (1375144746,), (1375144749,), (1375144816,), (1375144818,), (1375144820,), (1375144823,), (1375144852,), (1375144853,), (1375144854,), (1375144891,), (1375144893,), (1375144951,), (1375144947,), (1375144948,), (1375144949,), (1375144986,), (1375144989,), (1375144991,), (1375144994,), (1375144996,), (1375145042,), (1375145044,), (1375145045,), (1375145047,), (1375145050,), (1375145069,), (1375145073,), (1375145076,), (1375145079,), (1375145108,), (1375145110,), (1375145113,), (1375145118,), (1375145122,), (1375145125,), (1375145150,), (1375145152,), (1375145156,), (1375145160,), (1375145165,), (1375145181,), (1375145183,), (1375145186,), (1375145198,), (1375145236,), (1375145238,), (1375145240,), (1375145243,), (1375145275,), (1375145277,), (1375145279,), (1375145280,), (1375145283,), (1375145313,), (1375145314,), (1375145343,), (1375145344,), (1375145345,), (1375145465,), (1375145466,), (1375145467,), (1375145469,), (1375145474,), (1375145489,), (1375145490,), (1375145491,), (1375145493,), (1375145555,), (1375145557,), (1375145559,), (1375145698,), (1375145699,), (1375145700,), (1375145724,), (1375145742,), (1375145749,), (1375145882,), (1375145819,), (1375145843,), (1375145872,), (1375145904,), (1375145905,), (1375145906,), (1375145908,), (1375145912,), (1375145970,), (1375145980,), (1375145981,), (1375145982,), (1375145984,), (1375145988,), (1375146003,), (1375146004,), (1375146005,), (1375146007,), (1375146040,), (1375146041,), (1375146042,), (1375146063,), (1375146064,), (1375146065,), (1375146067,), (1375146072,), (1375146074,), (1375146092,), (1375146093,), (1375146094,), (1375146096,), (1375146097,), (1375146102,), (1375146169,), (1375146175,), (1375146180,), (1375146185,), (1375146190,), (1375146192,), (1375146199,), (1375146206,), (1375146233,), (1375146260,), (1375146701,), (1375146724,), (1375146740,), (1375146741,), (1375146748,), (1375146764,), (1375146856,), (1375146858,), (1375146862,), (1375146863,), (1375146866,), (1375146867,), (1375146870,), (1375146871,), (1375146875,), (1375146876,), (1375146880,), (1375146881,), (1375146892,), (1375146893,), (1375146894,), (1375146896,), (1375146901,), (1375146905,), (1375146915,), (1375146918,), (1375146920,), (1375146924,), (1375146925,), (1375146926,), (1375146928,), (1375146932,), (1375146935,), (1375146973,), (1375146976,), (1375146977,), (1375147571,), (1375147584,), (1375147629,), (1375147653,), (1375147674,), (1375147719,), (1375147726,), (1375147744,), (1375147801,), (1375147829,), (1375147857,), (1375147705,), (1375147708,), (1375147711,), (1375147935,), (1375147961,), (1375148401,), (1375148426,), (1375148453,), (1375148798,), (1375148823,), (1375148871,), (1375148922,), (1375148971,), (1375149026,), (1375149276,), (1375149299,), (1375149326,), (1375149352,), (1375149398,), (1375149454,), (1375149571,), (1375149573,), (1375149587,), (1375149619,), (1375149637,), (1375149641,), (1375149646,), (1375149650,), (1375149653,), (1375149656,), (1375149665,), (1375149666,), (1375149667,), (1375149669,), (1375149691,), (1375149692,), (1375149693,), (1375149716,), (1375149717,), (1375149723,), (1375149743,), (1375149874,), (1375149875,), (1375149876,), (1375149878,), (1375149883,), (1375149946,), (1375149955,), (1375149959,), (1375149965,), (1375150003,), (1375150005,), (1375150007,), (1375150085,), (1375150088,), (1375150096,), (1375150171,), (1375150175,), (1375150177,), (1375150195,), (1375150199,), (1375150202,), (1375150206,), (1375150209,), (1375150232,), (1375150233,), (1375150236,), (1375150239,), (1375150243,), (1375150246,), (1375150256,), (1375150260,), (1375150281,), (1375150269,), (1375150271,), (1375150272,), (1375150274,), (1375150278,), (1375150307,), (1375150310,), (1375150314,), (1375150318,), (1375150322,), (1375150330,), (1375150363,), (1375150365,), (1375150367,), (1375150368,), (1375150372,), (1375150397,), (1375150399,), (1375150401,), (1375150404,), (1375150436,), (1375150440,), (1375150441,), (1375150444,), (1375150447,), (1375150469,), (1375150471,), (1375150473,), (1375150475,), (1375150511,), (1375150513,), (1375150515,), (1375150518,), (1375150523,), (1375150527,), (1375150558,), (1375150562,), (1375150567,), (1375150572,), (1375150575,), (1375150578,), (1375150583,), (1375150584,), (1375150588,), (1375150591,), (1375150593,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04082025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25646740]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] map_info['map_portfolio_photo'] : {25646740: [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511, 1375150475, 1375150473, 1375150471, 1375150469, 1375150447, 1375150444, 1375150441, 1375150440, 1375150436, 1375150404, 1375150401, 1375150399, 1375150397, 1375150372, 1375150368, 1375150367, 1375150365, 1375150363, 1375150330, 1375150322, 1375150318, 1375150314, 1375150310, 1375150307, 1375150278, 1375150274, 1375150272, 1375150271, 1375150269]} final : True mtd_id 4302 list_pids : [1375150593, 1375150591, 1375150588, 1375150584, 1375150583, 1375150578, 1375150575, 1375150572, 1375150567, 1375150562, 1375150558, 1375150527, 1375150523, 1375150518, 1375150515, 1375150513, 1375150511] Looping around the photos to save general results len do output : 1 /25646740Didn'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, '3436608') ('4302', '25646740', '1375150593', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608') ('4302', None, None, None, None, None, None, None, '3436608') ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '25646740', 'None', None, None, None, None, '3436608'), ('4302', '25646740', '1375150593', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150591', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150588', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150584', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150583', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150578', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150575', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150572', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150567', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150562', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150558', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150527', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150523', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150518', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150515', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150513', None, None, None, None, None, '3436608'), ('4302', '25646740', '1375150511', None, None, None, None, None, '3436608')] time used for this insertion : 0.0176088809967041 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.74873948097229 time spend to save output : 0.017920494079589844 total time spend for step 5 : 2.76665997505188 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 (3436608) 2.79user 2.12system 0:11.32elapsed 43%CPU (0avgtext+0avgdata 159900maxresident)k 320inputs+8712outputs (0major+73986minor)pagefaults 0swaps