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 : 4082476 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 (3691537) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3691537) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732691 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3691537'] with mtr_portfolio_ids : ['26732691'] and first list_photo_ids : [] new path : /proc/4082476/ Name: python3 Umask: 0002 State: R (running) Tgid: 4082476 Ngid: 0 Pid: 4082476 PPid: 4082475 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4082476 NSpid: 4082476 NSpgid: 4081366 NSsid: 4081366 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98876 kB VmRSS: 98876 kB RssAnon: 60164 kB RssFile: 38712 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 50 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4082476', 'Ngid': '0', 'Pid': '4082476', 'PPid': '4082475', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4082476', 'NSpid': '4082476', 'NSpgid': '4081366', 'NSsid': '4081366', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98876 kB', 'VmRSS': '98876 kB', 'RssAnon': '60164 kB', 'RssFile': '38712 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '50', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '4082476', '1107252', '0', '1107252', '866004', '98876', b'', 'marlene', '3691537') 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 (26732691) 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 (3691537 ) ) 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 (26732691) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383155248, 'portfolio_id': 26732691}, {'photo_id': 1383155188, 'portfolio_id': 26732691}, {'photo_id': 1383155131, 'portfolio_id': 26732691}, {'photo_id': 1383154827, 'portfolio_id': 26732691}, {'photo_id': 1383154805, 'portfolio_id': 26732691}, {'photo_id': 1383154789, 'portfolio_id': 26732691}, {'photo_id': 1383154755, 'portfolio_id': 26732691}, {'photo_id': 1383154739, 'portfolio_id': 26732691}, {'photo_id': 1383154736, 'portfolio_id': 26732691}, {'photo_id': 1383154376, 'portfolio_id': 26732691}, {'photo_id': 1383154319, 'portfolio_id': 26732691}, {'photo_id': 1383154258, 'portfolio_id': 26732691}, {'photo_id': 1383154197, 'portfolio_id': 26732691}, {'photo_id': 1383154140, 'portfolio_id': 26732691}, {'photo_id': 1383153753, 'portfolio_id': 26732691}, {'photo_id': 1383153720, 'portfolio_id': 26732691}, {'photo_id': 1383153678, 'portfolio_id': 26732691}, {'photo_id': 1383153646, 'portfolio_id': 26732691}, {'photo_id': 1383153344, 'portfolio_id': 26732691}, {'photo_id': 1383153297, 'portfolio_id': 26732691}, {'photo_id': 1383153247, 'portfolio_id': 26732691}] map_portfolio_id_photo_id: {26732691: [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736, 1383154376, 1383154319, 1383154258, 1383154197, 1383154140, 1383153753, 1383153720, 1383153678, 1383153646, 1383153344, 1383153297, 1383153247]} ##### 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.014926671981811523 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Sep 10 23:06:57 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 (26732691) 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 : 26732691 get user id for portfolio 26732691 get sub ptf for main ptf 26732691, type 3726 and hashtags ['Teint_Dans_La_Masse', 'cartonnette', 'autre_refus', 'mal_croppe', 'flou', 'kraft', 'metal', 'environnement', 'papier', 'plastique', 'Carton_brun', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26732691 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','flou','kraft','metal','environnement','papier','plastique','Carton_brun','Carton_gris')) 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`=26732691 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','flou','kraft','metal','environnement','papier','plastique','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26732691, 'sub_port_id': 26732698, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024011, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'autre_refus': {'main_port_id': 26732691, 'sub_port_id': 26732699, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024012, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'cartonnette': {'main_port_id': 26732691, 'sub_port_id': 26732700, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024013, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'metal': {'main_port_id': 26732691, 'sub_port_id': 26732701, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024014, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'plastique': {'main_port_id': 26732691, 'sub_port_id': 26732702, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024015, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'flou': {'main_port_id': 26732691, 'sub_port_id': 26732703, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024016, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26732691, 'sub_port_id': 26732704, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024017, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'papier': {'main_port_id': 26732691, 'sub_port_id': 26732705, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024018, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'environnement': {'main_port_id': 26732691, 'sub_port_id': 26732706, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024019, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'Carton_brun': {'main_port_id': 26732691, 'sub_port_id': 26732707, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024020, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'Carton_gris': {'main_port_id': 26732691, 'sub_port_id': 26732708, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024021, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}, 'kraft': {'main_port_id': 26732691, 'sub_port_id': 26732709, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024022, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26732698 , 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=26732691 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 (26732698) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732699 , 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=26732691 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 (26732699) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732700 , 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=26732691 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 (26732700) result : ((1383154636,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732701 , 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=26732691 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 (26732701) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732702 , 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=26732691 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 (26732702) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732703 , 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=26732691 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 (26732703) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732704 , 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=26732691 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 (26732704) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732705 , 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=26732691 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 (26732705) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732706 , 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=26732691 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 (26732706) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732707 , 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=26732691 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 (26732707) result : ((1383155578,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732708 , 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=26732691 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 (26732708) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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 26732709 , 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=26732691 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 (26732709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26732691) result : ((1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) 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`=26732691 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','flou','kraft','metal','environnement','papier','plastique','Carton_brun','Carton_gris')) 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`=26732691 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','mal_croppe','flou','kraft','metal','environnement','papier','plastique','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26732691, 'sub_port_id': 26732710, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024023, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'autre_refus': {'main_port_id': 26732691, 'sub_port_id': 26732711, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024024, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'cartonnette': {'main_port_id': 26732691, 'sub_port_id': 26732712, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024025, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'metal': {'main_port_id': 26732691, 'sub_port_id': 26732713, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024026, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'plastique': {'main_port_id': 26732691, 'sub_port_id': 26732714, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024027, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'flou': {'main_port_id': 26732691, 'sub_port_id': 26732715, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024028, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26732691, 'sub_port_id': 26732716, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024029, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'papier': {'main_port_id': 26732691, 'sub_port_id': 26732717, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024030, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'environnement': {'main_port_id': 26732691, 'sub_port_id': 26732718, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024031, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'Carton_brun': {'main_port_id': 26732691, 'sub_port_id': 26732719, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024032, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'Carton_gris': {'main_port_id': 26732691, 'sub_port_id': 26732720, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024033, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}, 'kraft': {'main_port_id': 26732691, 'sub_port_id': 26732721, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18024034, 'last_updated_at': datetime.datetime(2025, 9, 10, 23, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 23, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 23, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732711,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732712,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732700 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732714,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26732721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26732709 lien utilise dans velours : https://marlene.fotonower.com/velours/26732710,26732711,26732712,26732713,26732714,26732715,26732716,26732717,26732718,26732719,26732720,26732721?tags=mal_croppe,autre_refus,cartonnette,metal,plastique,flou,Teint_Dans_La_Masse,papier,environnement,Carton_brun,Carton_gris,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26732691]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] map_info['map_portfolio_photo'] : {26732691: [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736, 1383154376, 1383154319, 1383154258, 1383154197, 1383154140, 1383153753, 1383153720, 1383153678, 1383153646, 1383153344, 1383153297, 1383153247]} final : False mtd_id 4302 list_pids : [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] Looping around the photos to save general results len do output : 1 /26732691. 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, '3691537') ('4302', '26732691', '1383155248', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '26732691', "{'mal_croppe': 26732698, 'autre_refus': 26732699, 'cartonnette': 26732700, 'metal': 26732701, 'plastique': 26732702, 'flou': 26732703, 'Teint_Dans_La_Masse': 26732704, 'papier': 26732705, 'environnement': 26732706, 'Carton_brun': 26732707, 'Carton_gris': 26732708, 'kraft': 26732709}", None, None, None, None, '3691537'), ('4302', '26732691', '1383155248', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537')] time used for this insertion : 0.016099214553833008 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.472142219543457 time spend to save output : 0.016357421875 total time spend for step 1 : 1.488499641418457 step2:final Wed Sep 10 23:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (26732691) 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 26732691 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383153344,1383153297,1383153247,1383153753,1383153720,1383153678,1383153646,1383154376,1383154319,1383154258,1383154197,1383154140,1383154827,1383154805,1383154789,1383154755,1383154739,1383154736,1383155248,1383155188,1383155131); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26732691]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} new output for save of step final : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] map_info['map_portfolio_photo'] : {26732691: [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736, 1383154376, 1383154319, 1383154258, 1383154197, 1383154140, 1383153753, 1383153720, 1383153678, 1383153646, 1383153344, 1383153297, 1383153247]} final : False mtd_id 4302 list_pids : [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] Looping around the photos to save general results len do output : 9 /1383155248.Didn't retrieve data . /1383155188.Didn't retrieve data . /1383155131.Didn't retrieve data . /1383154827.Didn't retrieve data . /1383154805.Didn't retrieve data . /1383154789.Didn't retrieve data . /1383154755.Didn't retrieve data . /1383154739.Didn't retrieve data . /1383154736.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, '3691537') ('4302', '26732691', '1383155248', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '26732691', '1383155248', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383155188', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383155131', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383154827', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383154805', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383154789', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383154755', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383154739', '0.06064228336635446', None, None, None, None, '3691537'), ('4302', '26732691', '1383154736', '0.06064228336635446', None, None, None, None, '3691537')] time used for this insertion : 0.014995813369750977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06499075889587402 time spend to save output : 0.015470266342163086 total time spend for step 2 : 0.08046102523803711 step3:velours_tree Wed Sep 10 23:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {26732691: [{'mal_croppe': 26732698, 'autre_refus': 26732699, 'cartonnette': 26732700, 'metal': 26732701, 'plastique': 26732702, 'flou': 26732703, 'Teint_Dans_La_Masse': 26732704, 'papier': 26732705, 'environnement': 26732706, 'Carton_brun': 26732707, 'Carton_gris': 26732708, 'kraft': 26732709}]} input_args_next_step : {26732691: ()} output_args : {26732691: [{'mal_croppe': 26732698, 'autre_refus': 26732699, 'cartonnette': 26732700, 'metal': 26732701, 'plastique': 26732702, 'flou': 26732703, 'Teint_Dans_La_Masse': 26732704, 'papier': 26732705, 'environnement': 26732706, 'Carton_brun': 26732707, 'Carton_gris': 26732708, 'kraft': 26732709}]} args : 26732691 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 : ({'mal_croppe': 26732698, 'autre_refus': 26732699, 'cartonnette': 26732700, 'metal': 26732701, 'plastique': 26732702, 'flou': 26732703, 'Teint_Dans_La_Masse': 26732704, 'papier': 26732705, 'environnement': 26732706, 'Carton_brun': 26732707, 'Carton_gris': 26732708, 'kraft': 26732709},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26732691) 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([26732691]) 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.2648627758026123 time spend to save output : 4.172325134277344e-05 total time spend for step 3 : 0.2649044990539551 step4:send_mail_cod Wed Sep 10 23:06:59 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 : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} input_args_next_step : {1383155248: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383155248 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383155188 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383155131 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383154827 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383154805 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383154789 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383154755 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383154739 depend.output_id : 0 input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ()} output_args : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',)} args : 1383154736 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 : {26732691: [{'mal_croppe': 26732698, 'autre_refus': 26732699, 'cartonnette': 26732700, 'metal': 26732701, 'plastique': 26732702, 'flou': 26732703, 'Teint_Dans_La_Masse': 26732704, 'papier': 26732705, 'environnement': 26732706, 'Carton_brun': 26732707, 'Carton_gris': 26732708, 'kraft': 26732709}]} input_args_next_step : {1383155248: ('0.06064228336635446',), 1383155188: ('0.06064228336635446',), 1383155131: ('0.06064228336635446',), 1383154827: ('0.06064228336635446',), 1383154805: ('0.06064228336635446',), 1383154789: ('0.06064228336635446',), 1383154755: ('0.06064228336635446',), 1383154739: ('0.06064228336635446',), 1383154736: ('0.06064228336635446',), 26732691: ()} output_args : {26732691: [{'mal_croppe': 26732698, 'autre_refus': 26732699, 'cartonnette': 26732700, 'metal': 26732701, 'plastique': 26732702, 'flou': 26732703, 'Teint_Dans_La_Masse': 26732704, 'papier': 26732705, 'environnement': 26732706, 'Carton_brun': 26732707, 'Carton_gris': 26732708, 'kraft': 26732709}]} args : 26732691 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 :10, first value : ('0.06064228336635446',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26732691) 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 (1383155248,1383155188,1383155131,1383154827,1383154805,1383154789,1383154755,1383154739,1383154736) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383154736 begin to download photo : 1383154755 begin to download photo : 1383154805 begin to download photo : 1383155131 begin to download photo : 1383155248 download finish for photo 1383154736 begin to download photo : 1383154739 download finish for photo 1383154805 begin to download photo : 1383154827 download finish for photo 1383155248 download finish for photo 1383154755 begin to download photo : 1383154789 download finish for photo 1383155131 begin to download photo : 1383155188 download finish for photo 1383154739 download finish for photo 1383154827 download finish for photo 1383155188 download finish for photo 1383154789 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette267326981757538419/ imagette267326991757538419/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P26732691_10-09-2025_23_06_59.pdf 26732698 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=26732698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267326981757538419 26732699 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=26732699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267326991757538419 26732700 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=26732700 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383154636: '1757538204_2163732_1383153247_00ef4900a161ab01ef4b899f472e9ea8_rle_crop_3954835075_0.png'} change filename to text .imagette267327001757538419/ imagette267327001757538419/1757538204_2163732_1383153247_00ef4900a161ab01ef4b899f472e9ea8_rle_crop_3954835075_0.png.png imagette267327011757538419/ imagette267327021757538419/ imagette267327031757538419/ imagette267327091757538419/ imagette267327041757538419/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/de956925c806803e29607ae93463399a_41074073.png imagette267327001757538419 26732701 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=26732701 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267327011757538419 26732702 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=26732702 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267327021757538419 26732703 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=26732703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267327031757538419 26732709 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=26732709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267327091757538419 26732704 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=26732704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267327041757538419 26732707 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=26732707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383155578: '1757538327_2169388_1383153678_0c9560c93e9d4604eda573add124a367_rle_crop_3954839417_0.png'} change filename to text .imagette267327071757538419/ imagette267327071757538419/1757538327_2169388_1383153678_0c9560c93e9d4604eda573add124a367_rle_crop_3954839417_0.png.png imagette267327081757538419/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/e4bc0b4d1b379cd0cd77be24c6a39042_88688800.png imagette267327071757538419 26732708 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=26732708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267327081757538419 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26732691 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26732710,26732711,26732712,26732713,26732714,26732715,26732716,26732717,26732718,26732719,26732720,26732721?tags=mal_croppe,autre_refus,cartonnette,metal,plastique,flou,Teint_Dans_La_Masse,papier,environnement,Carton_brun,Carton_gris,kraft your option no_mail is active, we will not send the real mail to your client args[1383155248] : ('0.06064228336635446',) no score found for photo 1383155248 We are sending mail with results at report@fotonower.com args[1383155188] : ('0.06064228336635446',) no score found for photo 1383155188 We are sending mail with results at report@fotonower.com args[1383155131] : ('0.06064228336635446',) no score found for photo 1383155131 We are sending mail with results at report@fotonower.com args[1383154827] : ('0.06064228336635446',) no score found for photo 1383154827 We are sending mail with results at report@fotonower.com args[1383154805] : ('0.06064228336635446',) no score found for photo 1383154805 We are sending mail with results at report@fotonower.com args[1383154789] : ('0.06064228336635446',) no score found for photo 1383154789 We are sending mail with results at report@fotonower.com args[1383154755] : ('0.06064228336635446',) no score found for photo 1383154755 We are sending mail with results at report@fotonower.com args[1383154739] : ('0.06064228336635446',) no score found for photo 1383154739 We are sending mail with results at report@fotonower.com args[1383154736] : ('0.06064228336635446',) no score found for photo 1383154736 We are sending mail with results at report@fotonower.com refus_total : 0.06064228336635446 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=26732691 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_P26732691_10-09-2025_23_06_59.pdf results_Auto_P26732691_10-09-2025_23_06_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_06_59.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','26732691','results_Auto_P26732691_10-09-2025_23_06_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_06_59.pdf','pdf','','0.12','0.06064228336635446') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26732691]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] map_info['map_portfolio_photo'] : {26732691: [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736, 1383154376, 1383154319, 1383154258, 1383154197, 1383154140, 1383153753, 1383153720, 1383153678, 1383153646, 1383153344, 1383153297, 1383153247]} final : False mtd_id 4302 list_pids : [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] 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, '3691537') ('4302', '26732691', '1383155248', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '26732691', '1383155248', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537')] time used for this insertion : 0.01573634147644043 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4453330039978027 time spend to save output : 0.01594066619873047 total time spend for step 4 : 1.4612736701965332 step5:split_time_score Wed Sep 10 23:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26732691'] 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 : [('26732691',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26732691) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383155248: {'path': 'temp/1757538419_4082476_1383155248_4f42e68dcb8a2eb693126e80e984a71b.jpg', 'extension': 'jpg'}, 1383154736: {'path': 'temp/1757538419_4082476_1383154736_2bdebc25f1e622d106a059fa938b3fce.jpg', 'extension': 'jpg'}, 1383154739: {'path': 'temp/1757538419_4082476_1383154739_68cfa47449628e2940bb849e8f4a8bf2.jpg', 'extension': 'jpg'}, 1383154805: {'path': 'temp/1757538419_4082476_1383154805_5a271e72b9c2989ee5812e518f18ab3b.jpg', 'extension': 'jpg'}, 1383154827: {'path': 'temp/1757538419_4082476_1383154827_d5c56043724a224fa99bdd4ea7a92d44.jpg', 'extension': 'jpg'}, 1383155131: {'path': 'temp/1757538419_4082476_1383155131_39c50d0ffe745943d55903071fe741c2.jpg', 'extension': 'jpg'}, 1383155188: {'path': 'temp/1757538419_4082476_1383155188_6d5543c52384c284108e9a55f4f3a6e5.jpg', 'extension': 'jpg'}, 1383154755: {'path': 'temp/1757538419_4082476_1383154755_38441662bdb55f90a991d1baa77c18d2.jpg', 'extension': 'jpg'}, 1383154789: {'path': 'temp/1757538419_4082476_1383154789_cd49d619f8b967f69fcad56bd1fc26d5.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 = 26732691; (('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 = 26732691 group by h (('23', 21),) 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=26732691 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 (26732691) 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 (26732691) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10092025 26732691 Nombre de photos uploadées : 21 / 23040 (0%) 10092025 26732691 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 10092025 26732691 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1383153344, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/babc6fd88f195a54ac8251050f98e94f.jpg', 'username': None, 'uploaded_at': 1757538068, 'text': 'image_10092025_23_00_04_010140m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1383153297, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/bb873e633894fe2e5751faa7811a569f.jpg', 'username': None, 'uploaded_at': 1757538068, 'text': 'image_10092025_23_00_24_010136m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1383153247, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/00ef4900a161ab01ef4b899f472e9ea8.jpg', 'username': None, 'uploaded_at': 1757538068, 'text': 'image_10092025_23_00_44_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1383153753, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/93309ea0257fb387b628b938a2417b84.jpg', 'username': None, 'uploaded_at': 1757538127, 'text': 'image_10092025_23_00_54_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 9.5367431640625e-07 elapsed_time : order_list_meta_photo_and_scores 3.337860107421875e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006399154663085938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26732691, '2025-09-10' ) 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-09-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2260415,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.19949626922607422 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= 2260415 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26704232, 'dashboard_result_id': 15004186, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_10-09-2025_06_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26704744, 'dashboard_result_id': 15004187, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_10-09-2025_06_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26705272, 'dashboard_result_id': 15004188, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_10-09-2025_06_03_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26705815, 'dashboard_result_id': 15004189, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_10-09-2025_06_04_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26706684, 'dashboard_result_id': 15004190, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_10-09-2025_06_04_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26706992, 'dashboard_result_id': 15004191, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_10-09-2025_06_05_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26707413, 'dashboard_result_id': 15004192, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_10-09-2025_06_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26708077, 'dashboard_result_id': 15004193, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_10-09-2025_06_06_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26708471, 'dashboard_result_id': 15004194, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_10-09-2025_06_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26708951, 'dashboard_result_id': 15004195, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_10-09-2025_06_07_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26709303, 'dashboard_result_id': 15004196, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_06_07_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26709904, 'dashboard_result_id': 15004197, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_10-09-2025_06_08_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26709905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709916, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26710287, 'dashboard_result_id': 15004198, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_10-09-2025_06_08_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26710318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710325, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26710789, 'dashboard_result_id': 15004199, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_10-09-2025_06_09_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26710815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710826, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26711220, 'dashboard_result_id': 15004200, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_10-09-2025_08_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26711267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26711268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26711269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26711270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26711271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26711273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26711274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26711275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26711276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26711277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26711278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26711279, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26718951, 'dashboard_result_id': 15004201, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_10-09-2025_14_18_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26718952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26718953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26718954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26718955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26718957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26718958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26718959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26718960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26718961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26718962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26718963, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26719327, 'dashboard_result_id': 15004202, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_10-09-2025_14_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26719339, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26719541, 'dashboard_result_id': 15004203, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26719542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719553, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26721950, 'dashboard_result_id': 15004204, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26721971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26721972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26721973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26721974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26721975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26721976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26721977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26721978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26721979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26721980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26721981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26721982, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26722692, 'dashboard_result_id': 15004205, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26722730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26722731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26722732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26722733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26722734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26722735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26722737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26722738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26722739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26722740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26722741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26722742, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26725114, 'dashboard_result_id': 15004206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26725115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26725116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26725117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26725118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26725119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26725120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26725121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26725122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26725123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26725124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26725125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26725126, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26731247, 'dashboard_result_id': 15004207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731247_10-09-2025_22_29_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731259, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26731956, 'dashboard_result_id': 15004208, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731986, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26731958, 'dashboard_result_id': 15004209, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732010, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2275649, 'mtr_portfolio_id': 26732691, 'dashboard_result_id': 15004210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26732706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732709, '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 = 26704232 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': 3688438, 'mtr_portfolio_id': 26704232, 'created_at': datetime.datetime(2025, 9, 10, 6, 2, 29), 'result': '0.05165652308854011', 'result_long': None, 'result_double': None}] Qualite : 0.05165652308854011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26704232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_10-09-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26704232 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_10-09-2025_06_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}" where mtr_portfolio_id = 26704232 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26704232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004186, 0.05165652308854011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_10-09-2025_06_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, '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 = 26704744 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': 3688439, 'mtr_portfolio_id': 26704744, 'created_at': datetime.datetime(2025, 9, 10, 6, 2, 58), 'result': '0.05321585469969135', 'result_long': None, 'result_double': None}] Qualite : 0.05321585469969135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26704744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_10-09-2025_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26704744 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_10-09-2025_06_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}" where mtr_portfolio_id = 26704744 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26704744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004187, 0.05321585469969135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_10-09-2025_06_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, '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 = 26705272 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': 3688440, 'mtr_portfolio_id': 26705272, 'created_at': datetime.datetime(2025, 9, 10, 6, 3, 28), 'result': '0.034614114634369', 'result_long': None, 'result_double': None}] Qualite : 0.034614114634369 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26705272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_10-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26705272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_10-09-2025_06_03_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}" where mtr_portfolio_id = 26705272 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26705272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004188, 0.034614114634369, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_10-09-2025_06_03_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, '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 = 26705815 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': 3688441, 'mtr_portfolio_id': 26705815, 'created_at': datetime.datetime(2025, 9, 10, 6, 3, 58), 'result': '0.049928504882734225', 'result_long': None, 'result_double': None}] Qualite : 0.049928504882734225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26705815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_10-09-2025_06_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26705815 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_10-09-2025_06_04_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}" where mtr_portfolio_id = 26705815 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26705815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004189, 0.049928504882734225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_10-09-2025_06_04_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, '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 = 26706684 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': 3688442, 'mtr_portfolio_id': 26706684, 'created_at': datetime.datetime(2025, 9, 10, 6, 4, 31), 'result': '0.027664121930937046', 'result_long': None, 'result_double': None}] Qualite : 0.027664121930937046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26706684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_10-09-2025_06_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26706684 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_10-09-2025_06_04_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}" where mtr_portfolio_id = 26706684 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26706684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004190, 0.027664121930937046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_10-09-2025_06_04_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, '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 = 26706992 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': 3688443, 'mtr_portfolio_id': 26706992, 'created_at': datetime.datetime(2025, 9, 10, 6, 4, 59), 'result': '0.033701941928507256', 'result_long': None, 'result_double': None}] Qualite : 0.033701941928507256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26706992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_10-09-2025_06_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26706992 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_10-09-2025_06_05_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}" where mtr_portfolio_id = 26706992 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26706992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004191, 0.033701941928507256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_10-09-2025_06_05_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, '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 = 26707413 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': 3688444, 'mtr_portfolio_id': 26707413, 'created_at': datetime.datetime(2025, 9, 10, 6, 5, 29), 'result': '0.030290281611055712', 'result_long': None, 'result_double': None}] Qualite : 0.030290281611055712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26707413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_10-09-2025_06_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26707413 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_10-09-2025_06_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}" where mtr_portfolio_id = 26707413 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26707413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004192, 0.030290281611055712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_10-09-2025_06_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, '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 = 26708077 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': 3688445, 'mtr_portfolio_id': 26708077, 'created_at': datetime.datetime(2025, 9, 10, 6, 6), 'result': '0.04931888103929729', 'result_long': None, 'result_double': None}] Qualite : 0.04931888103929729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_10-09-2025_06_06_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_10-09-2025_06_06_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}" where mtr_portfolio_id = 26708077 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26708077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004193, 0.04931888103929729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_10-09-2025_06_06_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, '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 = 26708471 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': 3688446, 'mtr_portfolio_id': 26708471, 'created_at': datetime.datetime(2025, 9, 10, 6, 6, 29), 'result': '0.045404050313249004', 'result_long': None, 'result_double': None}] Qualite : 0.045404050313249004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_10-09-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708471 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_10-09-2025_06_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}" where mtr_portfolio_id = 26708471 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26708471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004194, 0.045404050313249004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_10-09-2025_06_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, '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 = 26708951 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': 3688447, 'mtr_portfolio_id': 26708951, 'created_at': datetime.datetime(2025, 9, 10, 6, 6, 58), 'result': '0.04369671561182549', 'result_long': None, 'result_double': None}] Qualite : 0.04369671561182549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_10-09-2025_06_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_10-09-2025_06_07_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}" where mtr_portfolio_id = 26708951 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26708951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004195, 0.04369671561182549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_10-09-2025_06_07_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, '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 = 26709303 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': 3688448, 'mtr_portfolio_id': 26709303, 'created_at': datetime.datetime(2025, 9, 10, 6, 7, 30), 'result': '0.051271032077770666', 'result_long': None, 'result_double': None}] Qualite : 0.051271032077770666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26709303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_06_07_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26709303 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_06_07_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, 'pht': 3726}}" where mtr_portfolio_id = 26709303 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26709303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004196, 0.051271032077770666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_06_07_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, '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 = 26709904 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': 3688449, 'mtr_portfolio_id': 26709904, 'created_at': datetime.datetime(2025, 9, 10, 6, 7, 59), 'result': '0.061915655841384865', 'result_long': None, 'result_double': None}] Qualite : 0.061915655841384865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26709904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_10-09-2025_06_08_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26709904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_10-09-2025_06_08_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26709905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709916, 'pht': 3726}}" where mtr_portfolio_id = 26709904 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26709904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004197, 0.061915655841384865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709904_10-09-2025_06_08_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26709905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709916, '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 = 26710287 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': 3688450, 'mtr_portfolio_id': 26710287, 'created_at': datetime.datetime(2025, 9, 10, 6, 8, 30), 'result': '0.0696325536663468', 'result_long': None, 'result_double': None}] Qualite : 0.0696325536663468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26710287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_10-09-2025_06_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26710287 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_10-09-2025_06_08_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26710318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710325, 'pht': 3726}}" where mtr_portfolio_id = 26710287 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26710287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004198, 0.0696325536663468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710287_10-09-2025_06_08_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26710318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710325, '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 = 26710789 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': 3688451, 'mtr_portfolio_id': 26710789, 'created_at': datetime.datetime(2025, 9, 10, 6, 8, 59), 'result': '0.03896280222581451', 'result_long': None, 'result_double': None}] Qualite : 0.03896280222581451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26710789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_10-09-2025_06_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26710789 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_10-09-2025_06_09_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26710815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710826, 'pht': 3726}}" where mtr_portfolio_id = 26710789 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26710789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004199, 0.03896280222581451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26710789_10-09-2025_06_09_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26710815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26710816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26710817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26710818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26710819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26710820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26710821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26710822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26710823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26710824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26710825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26710826, '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 = 26711220 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': 3688452, 'mtr_portfolio_id': 26711220, 'created_at': datetime.datetime(2025, 9, 10, 8, 59, 59), 'result': '0.05716533162343222', 'result_long': None, 'result_double': None}] Qualite : 0.05716533162343222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26711220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_10-09-2025_08_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26711220 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_10-09-2025_08_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26711267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26711268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26711269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26711270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26711271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26711273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26711274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26711275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26711276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26711277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26711278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26711279, 'pht': 3726}}" where mtr_portfolio_id = 26711220 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26711220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004200, 0.05716533162343222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26711220_10-09-2025_08_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26711267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26711268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26711269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26711270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26711271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26711273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26711274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26711275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26711276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26711277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26711278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26711279, '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 = 26718951 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': 3690021, 'mtr_portfolio_id': 26718951, 'created_at': datetime.datetime(2025, 9, 10, 14, 18, 29), 'result': '0.1008438268734911', 'result_long': None, 'result_double': None}] Qualite : 0.1008438268734911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26718951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_10-09-2025_14_18_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26718951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_10-09-2025_14_18_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26718952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26718953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26718954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26718955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26718957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26718958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26718959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26718960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26718961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26718962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26718963, 'pht': 3726}}" where mtr_portfolio_id = 26718951 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26718951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004201, 0.1008438268734911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26718951_10-09-2025_14_18_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26718952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26718953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26718954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26718955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26718956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26718957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26718958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26718959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26718960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26718961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26718962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26718963, '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 = 26719327 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': 3690073, 'mtr_portfolio_id': 26719327, 'created_at': datetime.datetime(2025, 9, 10, 14, 32, 30), 'result': '0.05351301132245347', 'result_long': None, 'result_double': None}] Qualite : 0.05351301132245347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26719327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_10-09-2025_14_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26719327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_10-09-2025_14_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26719339, 'pht': 3726}}" where mtr_portfolio_id = 26719327 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26719327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004202, 0.05351301132245347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719327_10-09-2025_14_32_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719333, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26719339, '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 = 26719541 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': 3690122, 'mtr_portfolio_id': 26719541, 'created_at': datetime.datetime(2025, 9, 10, 14, 49, 1), 'result': '0.07878295427703556', 'result_long': None, 'result_double': None}] Qualite : 0.07878295427703556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26719541 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26719541 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26719542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719553, 'pht': 3726}}" where mtr_portfolio_id = 26719541 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26719541 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004203, 0.07878295427703556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26719541_10-09-2025_14_49_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26719542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26719543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26719544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26719545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26719546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26719547, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26719548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26719549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26719550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26719551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26719552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26719553, '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 = 26721950 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': 3690456, 'mtr_portfolio_id': 26721950, 'created_at': datetime.datetime(2025, 9, 10, 16, 33), 'result': '0.06502061475223814', 'result_long': None, 'result_double': None}] Qualite : 0.06502061475223814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26721950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26721950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26721971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26721972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26721973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26721974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26721975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26721976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26721977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26721978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26721979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26721980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26721981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26721982, 'pht': 3726}}" where mtr_portfolio_id = 26721950 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26721950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004204, 0.06502061475223814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26721950_10-09-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26721971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26721972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26721973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26721974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26721975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26721976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26721977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26721978, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26721979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26721980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26721981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26721982, '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 = 26722692 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': 3690527, 'mtr_portfolio_id': 26722692, 'created_at': datetime.datetime(2025, 9, 10, 17, 3), 'result': '0.08734009330866331', 'result_long': None, 'result_double': None}] Qualite : 0.08734009330866331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26722692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26722692 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26722730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26722731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26722732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26722733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26722734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26722735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26722737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26722738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26722739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26722740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26722741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26722742, 'pht': 3726}}" where mtr_portfolio_id = 26722692 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26722692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004205, 0.08734009330866331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26722692_10-09-2025_17_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26722730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26722731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26722732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26722733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26722734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26722735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26722737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26722738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26722739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26722740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26722741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26722742, '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 = 26725114 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': 3690787, 'mtr_portfolio_id': 26725114, 'created_at': datetime.datetime(2025, 9, 10, 18, 38, 59), 'result': '0.0649381291338043', 'result_long': None, 'result_double': None}] Qualite : 0.0649381291338043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26725114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26725114 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26725115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26725116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26725117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26725118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26725119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26725120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26725121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26725122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26725123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26725124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26725125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26725126, 'pht': 3726}}" where mtr_portfolio_id = 26725114 and dashboard_run_id = 2275649 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26725114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004206, 0.0649381291338043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26725114_10-09-2025_18_39_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26725115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26725116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26725117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26725118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26725119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26725120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26725121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26725122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26725123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26725124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26725125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26725126, '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 = 26731247 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 = 26731247 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 = 26731247 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26731247 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 = 26731247 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 = 26731247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731247_10-09-2025_22_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26731247 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731247_10-09-2025_22_29_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731259, 'pht': 3726}}" where mtr_portfolio_id = 26731247 and dashboard_run_id = 2275651 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26731956 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': 3691473, 'mtr_portfolio_id': 26731956, 'created_at': datetime.datetime(2025, 9, 10, 22, 48, 30), 'result': '0.0835398543690456', 'result_long': None, 'result_double': None}] Qualite : 0.0835398543690456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26731956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26731956 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731986, 'pht': 3726}}" where mtr_portfolio_id = 26731956 and dashboard_run_id = 2275651 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26731956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004208, 0.0835398543690456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731956_10-09-2025_22_48_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26731975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26731976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26731977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26731978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26731979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26731980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26731981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26731982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26731984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26731985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26731986, '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 = 26731958 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': 3691474, 'mtr_portfolio_id': 26731958, 'created_at': datetime.datetime(2025, 9, 10, 23, 2, 59), 'result': '0.06992478640639133', 'result_long': None, 'result_double': None}] Qualite : 0.06992478640639133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26731958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26731958 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732010, 'pht': 3726}}" where mtr_portfolio_id = 26731958 and dashboard_run_id = 2275651 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26731958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004209, 0.06992478640639133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26731958_10-09-2025_23_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26731999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732010, '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 = 26732691 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': 3691537, 'mtr_portfolio_id': 26732691, 'created_at': datetime.datetime(2025, 9, 10, 23, 6, 58), 'result': '0.06064228336635446', 'result_long': None, 'result_double': None}] Qualite : 0.06064228336635446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26732691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26732691 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_06_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26732706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732709, 'pht': 3726}}" where mtr_portfolio_id = 26732691 and dashboard_run_id = 2275651 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=26732691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15004210, 0.06064228336635446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26732691_10-09-2025_23_06_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26732698, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26732699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26732700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26732701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26732702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26732703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26732704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26732705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26732706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26732707, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26732708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26732709, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26704232,26704744,26705272,26705815,26706684,26706992,26707413,26708077,26708471,26708951,26709303,26709904,26710287,26710789,26711220,26718951,26719327,26719541,26721950,26722692,26725114,26731247,26731956,26731958,26732691) result : ((1382848737,), (1382849052,), (1382849570,), (1382849600,), (1382849623,), (1382849648,), (1382849675,), (1382849698,), (1382849864,), (1382849888,), (1382849916,), (1382849955,), (1382850273,), (1382850296,), (1382850332,), (1382850353,), (1382850364,), (1382850367,), (1382850389,), (1382850392,), (1382850426,), (1382850449,), (1382850469,), (1382850491,), (1382850517,), (1382850626,), (1382850649,), (1382850670,), (1382850694,), (1382850718,), (1382850884,), (1382850904,), (1382850933,), (1382850958,), (1382851137,), (1382851160,), (1382851186,), (1382851270,), (1382851323,), (1382851327,), (1382851330,), (1382851333,), (1382851497,), (1382851525,), (1382851553,), (1382851582,), (1382851596,), (1382851693,), (1382851715,), (1382851720,), (1382851735,), (1382851741,), (1382851745,), (1382851752,), (1382851758,), (1382851761,), (1382851882,), (1382852224,), (1382851855,), (1382852154,), (1382852177,), (1382852202,), (1382852312,), (1382852313,), (1382852316,), (1382852345,), (1382852401,), (1382852462,), (1382852705,), (1382852736,), (1382852759,), (1382852905,), (1382852918,), (1382852927,), (1382852930,), (1382852933,), (1382852965,), (1382852966,), (1382852967,), (1382852970,), (1382853001,), (1382853003,), (1382853005,), (1382853176,), (1382853200,), (1382853226,), (1382853252,), (1382853434,), (1382853461,), (1382853489,), (1382853516,), (1382853769,), (1382853792,), (1382853818,), (1382853840,), (1382853876,), (1382854148,), (1382854181,), (1382854387,), (1382854409,), (1382854432,), (1382854453,), (1382854466,), (1382854477,), (1382854578,), (1382854660,), (1382854683,), (1382854706,), (1382854728,), (1382854752,), (1382854863,), (1382854886,), (1382854909,), (1382854935,), (1382854956,), (1382855066,), (1382855092,), (1382855116,), (1382855249,), (1382855238,), (1382855241,), (1382855242,), (1382855246,), (1382855269,), (1382855273,), (1382855276,), (1382855281,), (1382855285,), (1382855299,), (1382855302,), (1382855306,), (1382855308,), (1382855326,), (1382855328,), (1382855347,), (1382855351,), (1382855356,), (1382855359,), (1382855362,), (1382855371,), (1382855510,), (1382855538,), (1382855891,), (1382855918,), (1382855947,), (1382855975,), (1382856004,), (1382856033,), (1382856233,), (1382856261,), (1382856288,), (1382856458,), (1382856463,), (1382856467,), (1382856685,), (1382856693,), (1382856694,), (1382856704,), (1382856734,), (1382856813,), (1382856815,), (1382856818,), (1382856823,), (1382856843,), (1382856846,), (1382856849,), (1382856853,), (1382856858,), (1382856873,), (1382856877,), (1382856881,), (1382856904,), (1382856906,), (1382856907,), (1382856910,), (1382856926,), (1382856930,), (1382856933,), (1382856936,), (1382856937,), (1382856939,), (1382856943,), (1382856956,), (1382857008,), (1382856949,), (1382856950,), (1382856951,), (1382856971,), (1382856974,), (1382856977,), (1382856982,), (1382856988,), (1382856995,), (1382857012,), (1382857015,), (1382857018,), (1382857022,), (1382857026,), (1382857044,), (1382857046,), (1382857048,), (1382857110,), (1382857112,), (1382857155,), (1382857160,), (1382857162,), (1382857180,), (1382857181,), (1382857182,), (1382857210,), (1382857214,), (1382857218,), (1382857222,), (1382857234,), (1382857236,), (1382857238,), (1382857240,), (1382857243,), (1382857244,), (1382857253,), (1382857262,), (1382857264,), (1382857266,), (1382857269,), (1382857271,), (1382857279,), (1382857281,), (1382857283,), (1382857286,), (1382857289,), (1382857298,), (1382857310,), (1382857316,), (1382857425,), (1382857481,), (1382857539,), (1382860404,), (1382860425,), (1382860427,), (1382860429,), (1382860479,), (1382860486,), (1382860510,), (1382860522,), (1382860524,), (1382860527,), (1382860550,), (1382860552,), (1382860556,), (1382860604,), (1382860610,), (1382860615,), (1382860620,), (1382860623,), (1382860625,), (1382860629,), (1382860631,), (1382860644,), (1382860646,), (1382860647,), (1382860648,), (1382860661,), (1382860663,), (1382860666,), (1382860668,), (1382860685,), (1382860688,), (1382860714,), (1382860715,), (1382860717,), (1382860720,), (1382860723,), (1382860726,), (1382860748,), (1382860751,), (1382860755,), (1382860757,), (1382860759,), (1382860761,), (1382860765,), (1382860769,), (1382860773,), (1382860777,), (1382860780,), (1382860790,), (1382860796,), (1382860801,), (1382860808,), (1382860811,), (1382860816,), (1382860820,), (1382860824,), (1382860834,), (1382860842,), (1382860880,), (1382860925,), (1382860873,), (1382860876,), (1382860895,), (1382860897,), (1382860901,), (1382860906,), (1382860911,), (1382860915,), (1382860932,), (1382860937,), (1382860941,), (1382860945,), (1382860957,), (1382860959,), (1382860964,), (1382860972,), (1382860976,), (1382860988,), (1382860991,), (1382860994,), (1382861018,), (1382861020,), (1382861023,), (1382861026,), (1382861044,), (1382861051,), (1382861054,), (1382861058,), (1382861071,), (1382861075,), (1382861079,), (1382861099,), (1382861116,), (1382861120,), (1382861124,), (1382861128,), (1382861141,), (1382861144,), (1382861147,), (1382861156,), (1382861167,), (1382861172,), (1382861179,), (1382861184,), (1382861188,), (1382861191,), (1382861205,), (1382861209,), (1382861213,), (1382861216,), (1382861229,), (1382861230,), (1382861233,), (1382861235,), (1382861239,), (1382861240,), (1382861278,), (1382861285,), (1382861290,), (1382861293,), (1382861894,), (1382862553,), (1382861716,), (1382861776,), (1382861829,), (1382862194,), (1382862250,), (1382862289,), (1382862359,), (1382862389,), (1382862419,), (1382862524,), (1382862587,), (1382862590,), (1382862597,), (1382862625,), (1382862743,), (1382862756,), (1382862782,), (1382862815,), (1382862820,), (1382863133,), (1382863160,), (1382863527,), (1382863557,), (1382863588,), (1382863619,), (1382863636,), (1382863707,), (1382863736,), (1382863762,), (1382863933,), (1382863964,), (1382864002,), (1382864037,), (1382864313,), (1382864345,), (1382864372,), (1382864405,), (1382864437,), (1382864628,), (1382864639,), (1382864644,), (1382864650,), (1382864768,), (1382864798,), (1382864834,), (1382864867,), (1382865043,), (1382865048,), (1382865052,), (1382865055,), (1382865075,), (1382865077,), (1382865080,), (1382865100,), (1382865103,), (1382865106,), (1382865110,), (1382865116,), (1382865122,), (1382865145,), (1382865147,), (1382865171,), (1382865173,), (1382865177,), (1382865166,), (1382865168,), (1382865188,), (1382865191,), (1382865207,), (1382865209,), (1382865211,), (1382865214,), (1382865217,), (1382865234,), (1382865237,), (1382865242,), (1382865248,), (1382865252,), (1382865260,), (1382865275,), (1382865277,), (1382865279,), (1382865285,), (1382865288,), (1382865303,), (1382865307,), (1382865312,), (1382865317,), (1382865321,), (1382865323,), (1382865342,), (1382865343,), (1382865344,), (1382865348,), (1382865352,), (1382865362,), (1382865365,), (1382865367,), (1382865410,), (1382865412,), (1382865414,), (1382865439,), (1382865442,), (1382865448,), (1382865454,), (1382865483,), (1382865486,), (1382865491,), (1382865495,), (1382865497,), (1382865506,), (1382865511,), (1382865517,), (1382865522,), (1382865528,), (1382865532,), (1382865540,), (1382865541,), (1382865551,), (1382865555,), (1382865560,), (1382865572,), (1382865575,), (1382865579,), (1382865585,), (1382865588,), (1382865591,), (1382865599,), (1382865608,), (1382865611,), (1382865615,), (1382865618,), (1382865620,), (1382865622,), (1382865650,), (1382865644,), (1382865645,), (1382865646,), (1382865675,), (1382865678,), (1382865680,), (1382865684,), (1382865699,), (1382865701,), (1382865703,), (1382865737,), (1382865741,), (1382865745,), (1382865749,), (1382865761,), (1382865762,), (1382865766,), (1382865768,), (1382865774,), (1382865779,), (1382865807,), (1382865809,), (1382865811,), (1382865828,), (1382865831,), (1382865834,), (1382865836,), (1382865839,), (1382865842,), (1382865868,), (1382865871,), (1382865872,), (1382865876,), (1382865895,), (1382865899,), (1382865905,), (1382865928,), (1382865929,), (1382865931,), (1382865936,), (1382865964,), (1382865967,), (1382866001,), (1382866003,), (1382866005,), (1382866007,), (1382866014,), (1382866041,), (1382866046,), (1382866049,), (1382866054,), (1382866059,), (1382866083,), (1382866085,), (1382866110,), (1382866116,), (1382866121,), (1382866154,), (1382866217,), (1382866144,), (1382866146,), (1382866148,), (1382866181,), (1382866184,), (1382866188,), (1382866192,), (1382866194,), (1382866197,), (1382866213,), (1382866225,), (1382866227,), (1382866231,), (1382866235,), (1382866250,), (1382866253,), (1382866256,), (1382866287,), (1382866290,), (1382866294,), (1382866298,), (1382866327,), (1382866339,), (1382866344,), (1382866349,), (1382866353,), (1382866359,), (1382866373,), (1382866375,), (1382866377,), (1382866382,), (1382866386,), (1382866390,), (1382866401,), (1382866404,), (1382866407,), (1382866430,), (1382866433,), (1382866435,), (1382866438,), (1382866459,), (1382866462,), (1382866466,), (1382866470,), (1382866474,), (1382866478,), (1382866485,), (1382866487,), (1382866489,), (1382866508,), (1382866510,), (1382866512,), (1382866513,), (1382866514,), (1382866524,), (1382866525,), (1382866534,), (1382866535,), (1382866538,), (1382866540,), (1382866549,), (1382866552,), (1382866554,), (1382866558,), (1382866562,), (1382866565,), (1382866979,), (1382867014,), (1382867055,), (1382867118,), (1382867181,), (1382867408,), (1382867465,), (1382867540,), (1382868085,), (1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,), (1382870075,), (1382870077,), (1382870079,), (1382870080,), (1382870085,), (1382870093,), (1382870106,), (1382870112,), (1382870127,), (1382870131,), (1382870133,), (1382870135,), (1382870153,), (1382870162,), (1382870169,), (1382870172,), (1382870185,), (1382870187,), (1382870189,), (1382870224,), (1382870227,), (1382870230,), (1382870264,), (1382870305,), (1382870308,), (1382870311,), (1382870317,), (1382870349,), (1382870353,), (1382870358,), (1382870362,), (1382870366,), (1382870379,), (1382870381,), (1382870384,), (1382870387,), (1382870390,), (1382870407,), (1382870409,), (1382870412,), (1382870417,), (1382870425,), (1382870429,), (1382870433,), (1382870442,), (1382870444,), (1382870472,), (1382870474,), (1382870476,), (1382870480,), (1382870466,), (1382870470,), (1382870489,), (1382870494,), (1382870503,), (1382870507,), (1382870517,), (1382870519,), (1382870524,), (1382870527,), (1382870563,), (1382870566,), (1382870571,), (1382870578,), (1382870583,), (1382870599,), (1382870604,), (1382870614,), (1382870656,), (1382870688,), (1382871001,), (1382871003,), (1382871005,), (1382871009,), (1382871014,), (1382871037,), (1382871041,), (1382871048,), (1382871084,), (1382871086,), (1382871088,), (1382871092,), (1382871095,), (1382871108,), (1382871113,), (1382871119,), (1382871122,), (1382871129,), (1382871136,), (1382871144,), (1382871146,), (1382871172,), (1382871175,), (1382871178,), (1382871184,), (1382871191,), (1382871195,), (1382871210,), (1382871212,), (1382871214,), (1382871216,), (1382871218,), (1382871220,), (1382871231,), (1382871235,), (1382871239,), (1382871241,), (1382871244,), (1382871248,), (1382871250,), (1382871254,), (1382871276,), (1382871278,), (1382871279,), (1382871284,), (1382871330,), (1382871319,), (1382871323,), (1382871326,), (1382871355,), (1382871356,), (1382871358,), (1382871361,), (1382871377,), (1382871386,), (1382871391,), (1382871409,), (1382871410,), (1382871411,), (1382871415,), (1382871421,), (1382871435,), (1382871439,), (1382871444,), (1382871451,), (1382871453,), (1382871455,), (1382871459,), (1382871461,), (1382871463,), (1382871472,), (1382871503,), (1382871506,), (1382871508,), (1382871510,), (1382871514,), (1382871518,), (1382871535,), (1382871537,), (1382871541,), (1382871547,), (1382871551,), (1382871555,), (1382871562,), (1382871565,), (1382871568,), (1382871582,), (1382871586,), (1382871591,), (1382871595,), (1382871618,), (1382871619,), (1382871621,), (1382871624,), (1382871627,), (1382871656,), (1382871659,), (1382871661,), (1382871699,), (1382871701,), (1382871703,), (1382871706,), (1382871710,), (1382871712,), (1382871728,), (1382871729,), (1382871730,), (1382871816,), (1382871847,), (1382871876,), (1382872101,), (1382872103,), (1382872105,), (1382872110,), (1382872115,), (1382872124,), (1382872128,), (1382872130,), (1382872159,), (1382872147,), (1382872150,), (1382872154,), (1382872157,), (1382872168,), (1382872169,), (1382872170,), (1382872232,), (1382872235,), (1382872239,), (1382872259,), (1382872260,), (1382872286,), (1382872288,), (1382872292,), (1382872295,), (1382872297,), (1382872299,), (1382872307,), (1382872314,), (1382872319,), (1382872323,), (1382872329,), (1382872335,), (1382872361,), (1382872364,), (1382872367,), (1382872369,), (1382872371,), (1382872374,), (1382872386,), (1382872392,), (1382872395,), (1382872402,), (1382872405,), (1382872408,), (1382872415,), (1382872418,), (1382872421,), (1382872428,), (1382872432,), (1382872435,), (1382872438,), (1382872441,), (1382872443,), (1382872456,), (1382872458,), (1382872459,), (1382872502,), (1382872506,), (1382872509,), (1382872513,), (1382872516,), (1382872518,), (1382872541,), (1382872543,), (1382872555,), (1382872589,), (1382872621,), (1382872656,), (1382872771,), (1382872831,), (1382872888,), (1382872952,), (1382873014,), (1382873152,), (1382873181,), (1382873240,), (1382873293,), (1382873574,), (1382873579,), (1382873606,), (1382874111,), (1382873992,), (1382874044,), (1382874084,), (1382874390,), (1382874417,), (1382874428,), (1382874433,), (1382874640,), (1382874644,), (1382874647,), (1382874651,), (1382874656,), (1382874659,), (1382874671,), (1382874673,), (1382874677,), (1382874681,), (1382874686,), (1382874692,), (1382874702,), (1382874703,), (1382874707,), (1382874714,), (1382874718,), (1382874723,), (1382874736,), (1382874737,), (1382874740,), (1382874742,), (1382874745,), (1382874749,), (1382874764,), (1382874769,), (1382874782,), (1382891378,), (1383007096,), (1383007134,), (1383008224,), (1383009464,), (1383010284,), (1383010344,), (1383010403,), (1383011124,), (1383011860,), (1383012458,), (1383012598,), (1383012639,), (1383012935,), (1383013683,), (1383014404,), (1383014992,), (1383015045,), (1383015052,), (1383015113,), (1383015248,), (1383015284,), (1383015324,), (1383015330,), (1383015371,), (1383015593,), (1383015562,), (1383015690,), (1383016097,), (1383017120,), (1383017153,), (1383017186,), (1383017218,), (1383018231,), (1383018614,), (1383018867,), (1383019053,), (1383051176,), (1383051179,), (1383051515,), (1383051792,), (1383052780,), (1383053143,), (1383053170,), (1383053217,), (1383053320,), (1383053358,), (1383053687,), (1383061596,), (1383062014,), (1383062251,), (1383062272,), (1383062305,), (1383062339,), (1383062342,), (1383062412,), (1383062415,), (1383062436,), (1383062593,), (1383063453,), (1383082721,), (1383082728,), (1383083101,), (1383084525,), (1383084555,), (1383084680,), (1383084728,), (1383084755,), (1383084848,), (1383085493,), (1383133703,), (1383141846,), (1383142109,), (1383144398,), (1383147104,), (1383147120,), (1383147150,), (1383147183,), (1383147230,), (1383148075,), (1383148684,), (1383147981,), (1383148013,), (1383148044,), (1383148405,), (1383148466,), (1383148522,), (1383148581,), (1383148639,), (1383148991,), (1383149029,), (1383149261,), (1383149265,), (1383149269,), (1383149738,), (1383149781,), (1383149800,), (1383149804,), (1383149808,), (1383149835,), (1383149837,), (1383149842,), (1383149846,), (1383149853,), (1383149862,), (1383149864,), (1383149866,), (1383149869,), (1383149886,), (1383149890,), (1383149895,), (1383149903,), (1383149927,), (1383149930,), (1383149933,), (1383149937,), (1383150253,), (1383150288,), (1383150321,), (1383150605,), (1383150637,), (1383150669,), (1383150701,), (1383150732,), (1383151038,), (1383151067,), (1383151102,), (1383151135,), (1383151174,), (1383151217,), (1383151316,), (1383151322,), (1383151324,), (1383151332,), (1383151361,), (1383151428,), (1383151516,), (1383152582,), (1383152647,), (1383152707,), (1383152768,), (1383152818,), (1383152849,), (1383152946,), (1383153012,), (1383153073,), (1383153374,), (1383153247,), (1383153297,), (1383153344,), (1383153646,), (1383153678,), (1383153720,), (1383153753,), (1383154140,), (1383154197,), (1383154258,), (1383154319,), (1383154376,), (1383154736,), (1383154739,), (1383154755,), (1383154789,), (1383154805,), (1383154827,), (1383155131,), (1383155188,), (1383155248,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10092025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26732691]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] map_info['map_portfolio_photo'] : {26732691: [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736, 1383154376, 1383154319, 1383154258, 1383154197, 1383154140, 1383153753, 1383153720, 1383153678, 1383153646, 1383153344, 1383153297, 1383153247]} final : True mtd_id 4302 list_pids : [1383155248, 1383155188, 1383155131, 1383154827, 1383154805, 1383154789, 1383154755, 1383154739, 1383154736] Looping around the photos to save general results len do output : 1 /26732691Didn'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, '3691537') ('4302', '26732691', '1383155248', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537') ('4302', None, None, None, None, None, None, None, '3691537') ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '26732691', 'None', None, None, None, None, '3691537'), ('4302', '26732691', '1383155248', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383155188', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383155131', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154827', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154805', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154789', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154755', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154739', None, None, None, None, None, '3691537'), ('4302', '26732691', '1383154736', None, None, None, None, None, '3691537')] time used for this insertion : 0.0166471004486084 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.698561191558838 time spend to save output : 0.01688861846923828 total time spend for step 5 : 1.7154498100280762 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 (3691537) 1.94user 2.50system 0:08.14elapsed 54%CPU (0avgtext+0avgdata 165744maxresident)k 208inputs+7128outputs (1major+65846minor)pagefaults 0swaps