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 : 1849280 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 (3658394) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3658394) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484362 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3658394'] with mtr_portfolio_ids : ['26484362'] and first list_photo_ids : [] new path : /proc/1849280/ Name: python3 Umask: 0002 State: R (running) Tgid: 1849280 Ngid: 0 Pid: 1849280 PPid: 1849279 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1849280 NSpid: 1849280 NSpgid: 1846754 NSsid: 1846754 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99288 kB VmRSS: 99288 kB RssAnon: 60164 kB RssFile: 39124 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: 46 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1849280', 'Ngid': '0', 'Pid': '1849280', 'PPid': '1849279', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1849280', 'NSpid': '1849280', 'NSpgid': '1846754', 'NSsid': '1846754', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99288 kB', 'VmRSS': '99288 kB', 'RssAnon': '60164 kB', 'RssFile': '39124 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': '46', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1849280', '1107252', '0', '1107252', '866004', '99288', b'', 'marlene', '3658394') 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 (26484362) 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 (3658394 ) ) 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 (26484362) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381075216, 'portfolio_id': 26484362}, {'photo_id': 1381075214, 'portfolio_id': 26484362}, {'photo_id': 1381075213, 'portfolio_id': 26484362}, {'photo_id': 1381075212, 'portfolio_id': 26484362}, {'photo_id': 1381075211, 'portfolio_id': 26484362}, {'photo_id': 1381075024, 'portfolio_id': 26484362}, {'photo_id': 1381075023, 'portfolio_id': 26484362}, {'photo_id': 1381075022, 'portfolio_id': 26484362}, {'photo_id': 1381075021, 'portfolio_id': 26484362}, {'photo_id': 1381075020, 'portfolio_id': 26484362}, {'photo_id': 1381074721, 'portfolio_id': 26484362}, {'photo_id': 1381074719, 'portfolio_id': 26484362}, {'photo_id': 1381074717, 'portfolio_id': 26484362}, {'photo_id': 1381074715, 'portfolio_id': 26484362}, {'photo_id': 1381074713, 'portfolio_id': 26484362}, {'photo_id': 1381074711, 'portfolio_id': 26484362}, {'photo_id': 1381074505, 'portfolio_id': 26484362}, {'photo_id': 1381074504, 'portfolio_id': 26484362}, {'photo_id': 1381074503, 'portfolio_id': 26484362}, {'photo_id': 1381074502, 'portfolio_id': 26484362}, {'photo_id': 1381074501, 'portfolio_id': 26484362}, {'photo_id': 1381074247, 'portfolio_id': 26484362}, {'photo_id': 1381074245, 'portfolio_id': 26484362}, {'photo_id': 1381074243, 'portfolio_id': 26484362}, {'photo_id': 1381074241, 'portfolio_id': 26484362}, {'photo_id': 1381074239, 'portfolio_id': 26484362}, {'photo_id': 1381073808, 'portfolio_id': 26484362}] map_portfolio_id_photo_id: {26484362: [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020, 1381074721, 1381074719, 1381074717, 1381074715, 1381074713, 1381074711, 1381074505, 1381074504, 1381074503, 1381074502, 1381074501, 1381074247, 1381074245, 1381074243, 1381074241, 1381074239, 1381073808]} ##### 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.014322042465209961 #### 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 3 11:52: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26484362) 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 : 26484362 get user id for portfolio 26484362 get sub ptf for main ptf 26484362, type 3726 and hashtags ['environnement', 'flou', 'papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'Carton_gris', 'autre_refus', 'mal_croppe', 'cartonnette', 'metal', 'plastique'] 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`=26484362 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','papier','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','autre_refus','mal_croppe','cartonnette','metal','plastique')) 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`=26484362 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','papier','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','autre_refus','mal_croppe','cartonnette','metal','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26484362, 'sub_port_id': 26484432, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828480, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'autre_refus': {'main_port_id': 26484362, 'sub_port_id': 26484433, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828481, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'metal': {'main_port_id': 26484362, 'sub_port_id': 26484434, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828482, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'flou': {'main_port_id': 26484362, 'sub_port_id': 26484435, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828483, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'kraft': {'main_port_id': 26484362, 'sub_port_id': 26484436, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828484, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'papier': {'main_port_id': 26484362, 'sub_port_id': 26484437, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828485, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'Carton_gris': {'main_port_id': 26484362, 'sub_port_id': 26484438, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828486, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'Carton_brun': {'main_port_id': 26484362, 'sub_port_id': 26484439, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828487, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26484362, 'sub_port_id': 26484440, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828488, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'environnement': {'main_port_id': 26484362, 'sub_port_id': 26484441, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828489, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'plastique': {'main_port_id': 26484362, 'sub_port_id': 26484442, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828490, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}, 'cartonnette': {'main_port_id': 26484362, 'sub_port_id': 26484443, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828491, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26484432 , 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=26484362 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 (26484432) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484433 , 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=26484362 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 (26484433) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484434 , 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=26484362 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 (26484434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484435 , 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=26484362 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 (26484435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484436 , 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=26484362 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 (26484436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484437 , 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=26484362 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 (26484437) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484438 , 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=26484362 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 (26484438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484439 , 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=26484362 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 (26484439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484440 , 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=26484362 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 (26484440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484441 , 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=26484362 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 (26484441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484442 , 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=26484362 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 (26484442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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 26484443 , 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=26484362 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 (26484443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26484362) result : ((1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) 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`=26484362 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','papier','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','autre_refus','mal_croppe','cartonnette','metal','plastique')) 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`=26484362 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','papier','Carton_brun','Teint_Dans_La_Masse','kraft','Carton_gris','autre_refus','mal_croppe','cartonnette','metal','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26484362, 'sub_port_id': 26484475, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828522, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'autre_refus': {'main_port_id': 26484362, 'sub_port_id': 26484476, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828523, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'metal': {'main_port_id': 26484362, 'sub_port_id': 26484477, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828524, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'flou': {'main_port_id': 26484362, 'sub_port_id': 26484478, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828525, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'kraft': {'main_port_id': 26484362, 'sub_port_id': 26484479, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828526, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'papier': {'main_port_id': 26484362, 'sub_port_id': 26484480, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828527, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'Carton_gris': {'main_port_id': 26484362, 'sub_port_id': 26484481, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828528, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'Carton_brun': {'main_port_id': 26484362, 'sub_port_id': 26484482, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828529, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 26484362, 'sub_port_id': 26484483, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828530, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'environnement': {'main_port_id': 26484362, 'sub_port_id': 26484484, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828531, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'plastique': {'main_port_id': 26484362, 'sub_port_id': 26484485, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828532, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}, 'cartonnette': {'main_port_id': 26484362, 'sub_port_id': 26484486, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17828533, 'last_updated_at': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 3, 11, 50, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 3, 11, 49, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26484486,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26484443 lien utilise dans velours : https://marlene.fotonower.com/velours/26484475,26484476,26484477,26484478,26484479,26484480,26484481,26484482,26484483,26484484,26484485,26484486?tags=mal_croppe,autre_refus,metal,flou,kraft,papier,Carton_gris,Carton_brun,Teint_Dans_La_Masse,environnement,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26484362]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] map_info['map_portfolio_photo'] : {26484362: [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020, 1381074721, 1381074719, 1381074717, 1381074715, 1381074713, 1381074711, 1381074505, 1381074504, 1381074503, 1381074502, 1381074501, 1381074247, 1381074245, 1381074243, 1381074241, 1381074239, 1381073808]} final : False mtd_id 4302 list_pids : [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] Looping around the photos to save general results len do output : 1 /26484362. 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, '3658394') ('4302', '26484362', '1381075216', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '26484362', "{'mal_croppe': 26484432, 'autre_refus': 26484433, 'metal': 26484434, 'flou': 26484435, 'kraft': 26484436, 'papier': 26484437, 'Carton_gris': 26484438, 'Carton_brun': 26484439, 'Teint_Dans_La_Masse': 26484440, 'environnement': 26484441, 'plastique': 26484442, 'cartonnette': 26484443}", None, None, None, None, '3658394'), ('4302', '26484362', '1381075216', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394')] time used for this insertion : 0.017357349395751953 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5081355571746826 time spend to save output : 0.0176699161529541 total time spend for step 1 : 1.5258054733276367 step2:final Wed Sep 3 11:53: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 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 (26484362) 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 26484362 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381073808,1381074247,1381074245,1381074243,1381074241,1381074239,1381074505,1381074504,1381074503,1381074502,1381074501,1381074721,1381074719,1381074717,1381074715,1381074713,1381074711,1381075024,1381075023,1381075022,1381075021,1381075020,1381075216,1381075214,1381075213,1381075212,1381075211); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26484362]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} new output for save of step final : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] map_info['map_portfolio_photo'] : {26484362: [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020, 1381074721, 1381074719, 1381074717, 1381074715, 1381074713, 1381074711, 1381074505, 1381074504, 1381074503, 1381074502, 1381074501, 1381074247, 1381074245, 1381074243, 1381074241, 1381074239, 1381073808]} final : False mtd_id 4302 list_pids : [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] Looping around the photos to save general results len do output : 10 /1381075216.Didn't retrieve data . /1381075214.Didn't retrieve data . /1381075213.Didn't retrieve data . /1381075212.Didn't retrieve data . /1381075211.Didn't retrieve data . /1381075024.Didn't retrieve data . /1381075023.Didn't retrieve data . /1381075022.Didn't retrieve data . /1381075021.Didn't retrieve data . /1381075020.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, '3658394') ('4302', '26484362', '1381075216', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '26484362', '1381075216', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075214', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075213', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075212', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075211', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075024', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075023', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075022', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075021', '0.0', None, None, None, None, '3658394'), ('4302', '26484362', '1381075020', '0.0', None, None, None, None, '3658394')] time used for this insertion : 0.01722550392150879 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05484318733215332 time spend to save output : 0.017735004425048828 total time spend for step 2 : 0.07257819175720215 step3:velours_tree Wed Sep 3 11:53: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 : {26484362: [{'mal_croppe': 26484432, 'autre_refus': 26484433, 'metal': 26484434, 'flou': 26484435, 'kraft': 26484436, 'papier': 26484437, 'Carton_gris': 26484438, 'Carton_brun': 26484439, 'Teint_Dans_La_Masse': 26484440, 'environnement': 26484441, 'plastique': 26484442, 'cartonnette': 26484443}]} input_args_next_step : {26484362: ()} output_args : {26484362: [{'mal_croppe': 26484432, 'autre_refus': 26484433, 'metal': 26484434, 'flou': 26484435, 'kraft': 26484436, 'papier': 26484437, 'Carton_gris': 26484438, 'Carton_brun': 26484439, 'Teint_Dans_La_Masse': 26484440, 'environnement': 26484441, 'plastique': 26484442, 'cartonnette': 26484443}]} args : 26484362 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': 26484432, 'autre_refus': 26484433, 'metal': 26484434, 'flou': 26484435, 'kraft': 26484436, 'papier': 26484437, 'Carton_gris': 26484438, 'Carton_brun': 26484439, 'Teint_Dans_La_Masse': 26484440, 'environnement': 26484441, 'plastique': 26484442, 'cartonnette': 26484443},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26484362) 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([26484362]) 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.30345916748046875 time spend to save output : 5.340576171875e-05 total time spend for step 3 : 0.3035125732421875 step4:send_mail_cod Wed Sep 3 11:53: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 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 : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} input_args_next_step : {1381075216: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075216 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075214 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075213 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075212 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075211 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075024 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075023 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075022 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075021 depend.output_id : 0 input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ()} output_args : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',)} args : 1381075020 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 : {26484362: [{'mal_croppe': 26484432, 'autre_refus': 26484433, 'metal': 26484434, 'flou': 26484435, 'kraft': 26484436, 'papier': 26484437, 'Carton_gris': 26484438, 'Carton_brun': 26484439, 'Teint_Dans_La_Masse': 26484440, 'environnement': 26484441, 'plastique': 26484442, 'cartonnette': 26484443}]} input_args_next_step : {1381075216: ('0.0',), 1381075214: ('0.0',), 1381075213: ('0.0',), 1381075212: ('0.0',), 1381075211: ('0.0',), 1381075024: ('0.0',), 1381075023: ('0.0',), 1381075022: ('0.0',), 1381075021: ('0.0',), 1381075020: ('0.0',), 26484362: ()} output_args : {26484362: [{'mal_croppe': 26484432, 'autre_refus': 26484433, 'metal': 26484434, 'flou': 26484435, 'kraft': 26484436, 'papier': 26484437, 'Carton_gris': 26484438, 'Carton_brun': 26484439, 'Teint_Dans_La_Masse': 26484440, 'environnement': 26484441, 'plastique': 26484442, 'cartonnette': 26484443}]} args : 26484362 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 :11, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26484362) 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 (1381075216,1381075214,1381075213,1381075212,1381075211,1381075024,1381075023,1381075022,1381075021,1381075020) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381075020 begin to download photo : 1381075023 begin to download photo : 1381075212 begin to download photo : 1381075216 download finish for photo 1381075216 download finish for photo 1381075020 begin to download photo : 1381075021 download finish for photo 1381075023 begin to download photo : 1381075024 download finish for photo 1381075212 begin to download photo : 1381075213 download finish for photo 1381075024 begin to download photo : 1381075211 download finish for photo 1381075213 begin to download photo : 1381075214 download finish for photo 1381075021 begin to download photo : 1381075022 download finish for photo 1381075022 download finish for photo 1381075214 download finish for photo 1381075211 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette264844321756893181/ imagette264844331756893181/ imagette264844341756893181/ imagette264844351756893181/ imagette264844361756893181/ imagette264844421756893181/ imagette264844431756893181/ imagette264844381756893181/ imagette264844391756893181/ imagette264844401756893181/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26484362_03-09-2025_11_53_01.pdf 26484432 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=26484432 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844321756893181 26484433 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=26484433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844331756893181 26484434 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=26484434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844341756893181 26484435 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=26484435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844351756893181 26484436 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=26484436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844361756893181 26484442 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=26484442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844421756893181 26484443 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=26484443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844431756893181 26484438 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=26484438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844381756893181 26484439 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=26484439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844391756893181 26484440 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=26484440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264844401756893181 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26484362 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26484475,26484476,26484477,26484478,26484479,26484480,26484481,26484482,26484483,26484484,26484485,26484486?tags=mal_croppe,autre_refus,metal,flou,kraft,papier,Carton_gris,Carton_brun,Teint_Dans_La_Masse,environnement,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1381075216] : ('0.0',) no score found for photo 1381075216 We are sending mail with results at report@fotonower.com args[1381075214] : ('0.0',) no score found for photo 1381075214 We are sending mail with results at report@fotonower.com args[1381075213] : ('0.0',) no score found for photo 1381075213 We are sending mail with results at report@fotonower.com args[1381075212] : ('0.0',) no score found for photo 1381075212 We are sending mail with results at report@fotonower.com args[1381075211] : ('0.0',) no score found for photo 1381075211 We are sending mail with results at report@fotonower.com args[1381075024] : ('0.0',) no score found for photo 1381075024 We are sending mail with results at report@fotonower.com args[1381075023] : ('0.0',) no score found for photo 1381075023 We are sending mail with results at report@fotonower.com args[1381075022] : ('0.0',) no score found for photo 1381075022 We are sending mail with results at report@fotonower.com args[1381075021] : ('0.0',) no score found for photo 1381075021 We are sending mail with results at report@fotonower.com args[1381075020] : ('0.0',) no score found for photo 1381075020 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26484362 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_P26484362_03-09-2025_11_53_01.pdf results_Auto_P26484362_03-09-2025_11_53_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26484362_03-09-2025_11_53_01.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','26484362','results_Auto_P26484362_03-09-2025_11_53_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26484362_03-09-2025_11_53_01.pdf','pdf','','0.1','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26484362]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] map_info['map_portfolio_photo'] : {26484362: [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020, 1381074721, 1381074719, 1381074717, 1381074715, 1381074713, 1381074711, 1381074505, 1381074504, 1381074503, 1381074502, 1381074501, 1381074247, 1381074245, 1381074243, 1381074241, 1381074239, 1381073808]} final : False mtd_id 4302 list_pids : [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] 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, '3658394') ('4302', '26484362', '1381075216', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394') 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', '26484362', '1381075216', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394')] time used for this insertion : 0.015618562698364258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.498203992843628 time spend to save output : 0.015883207321166992 total time spend for step 4 : 1.514087200164795 step5:split_time_score Wed Sep 3 11:53:02 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 : ['26484362'] 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 : [('26484362',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26484362) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381075216: {'path': 'temp/1756893180_1849280_1381075216_498e86fbd43746b2a5839ab7b402e6ad_52285260.jpg', 'extension': 'jpg'}, 1381075020: {'path': 'temp/1756893180_1849280_1381075020_50a14f3180030c5f1357b17196fe7eaa_99634137.jpg', 'extension': 'jpg'}, 1381075021: {'path': 'temp/1756893180_1849280_1381075021_f7b68002cbab6547c7f627cde67969b5_68875619.jpg', 'extension': 'jpg'}, 1381075022: {'path': 'temp/1756893180_1849280_1381075022_a16ffcd69a4b2cc98bd3cbf5eb5119bd_19623290.jpg', 'extension': 'jpg'}, 1381075212: {'path': 'temp/1756893180_1849280_1381075212_ec29c9081c208de78ed1e761800a8a5d_92250072.jpg', 'extension': 'jpg'}, 1381075213: {'path': 'temp/1756893180_1849280_1381075213_6f2947b7840f9510895e94ecd4d32343_75953354.jpg', 'extension': 'jpg'}, 1381075214: {'path': 'temp/1756893180_1849280_1381075214_177e3567b64d44e86a36cdae2633164f_67087794.jpg', 'extension': 'jpg'}, 1381075023: {'path': 'temp/1756893180_1849280_1381075023_53ac93f9c0d3bbfafaada99dd1fb4b81_69413224.jpg', 'extension': 'jpg'}, 1381075024: {'path': 'temp/1756893180_1849280_1381075024_f28143e75d9acb9b14db6719f6bc2279_80132810.jpg', 'extension': 'jpg'}, 1381075211: {'path': 'temp/1756893180_1849280_1381075211_574aeaac08a0972312d48e7c82850c50_9757148.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 = 26484362; (('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 = 26484362 group by h (('11', 27),) 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=26484362 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 (26484362) 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 (26484362) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03092025 26484362 Nombre de photos uploadées : 27 / 23040 (0%) 03092025 26484362 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 03092025 26484362 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1381073808, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/414a2807739bc70afe57742c28a4ae37_92844184.jpg', 'username': None, 'uploaded_at': 1756892831, 'text': 'image_03092025_11_46_15_10136.jpg'}, {'photo_id': 1381074247, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/29606037601ee1ea7c93ba0b92575b53_4997454.jpg', 'username': None, 'uploaded_at': 1756892893, 'text': 'image_03092025_11_46_54_10137.jpg'}, {'photo_id': 1381074245, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/b584ed45d4b569be856e02567fa1ebaf_4101792.jpg', 'username': None, 'uploaded_at': 1756892893, 'text': 'image_03092025_11_47_04_10151.jpg'}, {'photo_id': 1381074243, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/3/f3b220df102d5ecdf92d5bdc59916682_5208813.jpg', 'username': None, 'uploaded_at': 1756892893, 'text': 'image_03092025_11_47_14_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014462471008300781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26484362, '2025-09-03' ) 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-03' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2220819,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2212507724761963 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= 2220819 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26464090, 'dashboard_result_id': 14660424, '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_P26464090_03-09-2025_06_21_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26464098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464104, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26464620, 'dashboard_result_id': 14660425, '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_P26464620_03-09-2025_06_21_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26464624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464635, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26465056, 'dashboard_result_id': 14660426, '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_P26465056_03-09-2025_06_21_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465072, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26465555, 'dashboard_result_id': 14660427, '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_P26465555_03-09-2025_06_22_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465572, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26466677, 'dashboard_result_id': 14660428, '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_P26466677_03-09-2025_06_23_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26466679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26466680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26466681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26466682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26466683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26466684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26466685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26466686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26466687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26466688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26466689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26466690, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26467330, 'dashboard_result_id': 14660429, '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_P26467330_03-09-2025_06_23_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26467336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26467337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26467338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26467339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26467340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26467341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26467342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26467343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26467344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26467345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26467346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26467347, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26468904, 'dashboard_result_id': 14660430, '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_P26468904_03-09-2025_06_23_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26469016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469027, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26468907, 'dashboard_result_id': 14660431, '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_P26468907_03-09-2025_06_24_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468966, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26468909, 'dashboard_result_id': 14660432, '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_P26468909_03-09-2025_06_25_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468954, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26468911, 'dashboard_result_id': 14660434, '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_P26468911_03-09-2025_06_25_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468924, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26469413, 'dashboard_result_id': 14660435, '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_P26469413_03-09-2025_06_25_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469451, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26469960, 'dashboard_result_id': 14660436, '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_P26469960_03-09-2025_06_25_42.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469982, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26470390, 'dashboard_result_id': 14660437, '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_P26470390_03-09-2025_06_26_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26470416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26470417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26470418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26470419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26470420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26470421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26470422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26470423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26470424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26470425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26470426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26470427, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26470805, 'dashboard_result_id': 14660439, '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_P26470805_03-09-2025_06_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26470830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26470831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26470832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26470833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26470834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26470835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26470836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26470837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26470838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26470839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26470840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26470841, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26471195, 'dashboard_result_id': 14660440, '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_P26471195_03-09-2025_06_27_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26471210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26471211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26471212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26471213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26471214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26471215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26471216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26471217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26471218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26471219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26471220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26471221, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26472646, 'dashboard_result_id': 14660441, '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_P26472646_03-09-2025_06_27_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26472649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26472650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26472651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26472652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26472653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26472654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26472655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26472656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26472657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26472658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26472659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26472660, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26472774, 'dashboard_result_id': 14660442, '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_P26472774_03-09-2025_05_40_42.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26472776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26472777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26472778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26472779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26472780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26472781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26472782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26472783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26472784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26472785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26472786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26472787, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26473061, 'dashboard_result_id': 14660444, '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_P26473061_03-09-2025_05_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473068, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26473074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473078, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26473432, 'dashboard_result_id': 14660445, '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_P26473432_03-09-2025_06_03_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26473440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473449, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26473783, 'dashboard_result_id': 14660446, '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_P26473783_03-09-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26473789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473800, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26474140, 'dashboard_result_id': 14660447, '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_P26474140_03-09-2025_06_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474142, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474152, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26474172, 'dashboard_result_id': 14660449, '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_P26474172_03-09-2025_06_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26474174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474185, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26474226, 'dashboard_result_id': 14660450, '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_P26474226_03-09-2025_07_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474238, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26474338, 'dashboard_result_id': 14660451, '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_P26474338_03-09-2025_07_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474378, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26474755, 'dashboard_result_id': 14660452, '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_P26474755_03-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474835, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26475537, 'dashboard_result_id': 14660453, '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_P26475537_03-09-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26475575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26475576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26475577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26475578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26475579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26475580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26475581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26475582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26475583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26475584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26475585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26475586, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26476200, 'dashboard_result_id': 14660454, '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_P26476200_03-09-2025_08_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26476289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26476290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26476291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26476292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26476293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26476294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26476295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26476296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26476297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26476298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26476299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26476300, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26476938, 'dashboard_result_id': 14660455, '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_P26476938_03-09-2025_08_22_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26476943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26476944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26476945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26476946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26476947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26476948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26476949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26476950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26476951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26476952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26476953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26476954, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26477759, 'dashboard_result_id': 14660456, '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_P26477759_03-09-2025_08_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26477786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26477787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26477788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26477789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26477790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26477791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26477792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26477793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26477794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26477795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26477796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26477797, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26478054, 'dashboard_result_id': 14660457, '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_P26478054_03-09-2025_09_41_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478071, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26478242, 'dashboard_result_id': 14660458, '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_P26478242_03-09-2025_09_42_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478419, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26478249, 'dashboard_result_id': 14660459, '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_P26478249_03-09-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478317, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26478694, 'dashboard_result_id': 14660460, '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_P26478694_03-09-2025_10_02_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478721, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26479545, 'dashboard_result_id': 14660461, '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_P26479545_03-09-2025_10_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26479584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26479585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26479586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26479587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26479589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26479590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26479591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26479592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26479593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26479594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26479595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26479596, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26480157, 'dashboard_result_id': 14660462, '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_P26480157_03-09-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26480166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26480167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26480168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26480169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26480170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26480171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26480172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26480173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26480174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26480175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26480176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26480177, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26480939, 'dashboard_result_id': 14660463, '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_P26480939_03-09-2025_10_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26480959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26480960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26480961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26480962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26480963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26480964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26480965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26480966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26480967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26480968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26480969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26480970, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26481464, 'dashboard_result_id': 14660464, '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_P26481464_03-09-2025_10_59_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26481475, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26481476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26481477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26481478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26481479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26481480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26481481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26481482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26481483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26481484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26481485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26481486, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26482126, 'dashboard_result_id': 14660465, '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_P26482126_03-09-2025_11_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26482175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26482176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26482177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26482178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26482179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26482180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26482181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26482182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26482183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26482184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26482185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26482186, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26482829, 'dashboard_result_id': 14660466, '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_P26482829_03-09-2025_11_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26482882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26482883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26482884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26482885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26482886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26482887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26482888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26482889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26482890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26482891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26482892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26482893, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26483614, 'dashboard_result_id': 14660467, '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_P26483614_03-09-2025_11_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26483629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26483630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26483631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26483632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26483633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26483634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26483635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26483636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26483637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26483638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26483639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26483640, 'pht': 3726}}"}, {'dashboat_entry_day': 2220819, 'dashboard_run_id': 2231287, 'mtr_portfolio_id': 26484362, 'dashboard_result_id': 14660468, '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_P26484362_03-09-2025_11_49_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26484432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26484433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26484434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26484435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26484436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26484437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26484438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26484439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26484440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26484441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26484442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26484443, '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 = 26464090 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': 3656540, 'mtr_portfolio_id': 26464090, 'created_at': datetime.datetime(2025, 9, 3, 6, 21), 'result': '0.03830274933484876', 'result_long': None, 'result_double': None}] Qualite : 0.03830274933484876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26464090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464090_03-09-2025_06_21_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26464090 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_P26464090_03-09-2025_06_21_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26464098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464104, 'pht': 3726}}" where mtr_portfolio_id = 26464090 and dashboard_run_id = 2231287 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`=26464090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660424, 0.03830274933484876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464090_03-09-2025_06_21_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26464098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464101, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464104, '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 = 26464620 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': 3656541, 'mtr_portfolio_id': 26464620, 'created_at': datetime.datetime(2025, 9, 3, 6, 21, 30), 'result': '0.07152545559957264', 'result_long': None, 'result_double': None}] Qualite : 0.07152545559957264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26464620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464620_03-09-2025_06_21_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26464620 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_P26464620_03-09-2025_06_21_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26464624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464635, 'pht': 3726}}" where mtr_portfolio_id = 26464620 and dashboard_run_id = 2231287 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`=26464620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660425, 0.07152545559957264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26464620_03-09-2025_06_21_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26464624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26464625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26464626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26464627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26464628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26464629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26464630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26464631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26464632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26464633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26464634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26464635, '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 = 26465056 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': 3656542, 'mtr_portfolio_id': 26465056, 'created_at': datetime.datetime(2025, 9, 3, 6, 21, 29), 'result': '0.05136129698869654', 'result_long': None, 'result_double': None}] Qualite : 0.05136129698869654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26465056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465056_03-09-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26465056 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_P26465056_03-09-2025_06_21_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465072, 'pht': 3726}}" where mtr_portfolio_id = 26465056 and dashboard_run_id = 2231287 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`=26465056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660426, 0.05136129698869654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465056_03-09-2025_06_21_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465072, '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 = 26465555 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': 3656543, 'mtr_portfolio_id': 26465555, 'created_at': datetime.datetime(2025, 9, 3, 6, 21, 58), 'result': '0.03417586677489316', 'result_long': None, 'result_double': None}] Qualite : 0.03417586677489316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26465555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465555_03-09-2025_06_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26465555 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_P26465555_03-09-2025_06_22_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465572, 'pht': 3726}}" where mtr_portfolio_id = 26465555 and dashboard_run_id = 2231287 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`=26465555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660427, 0.03417586677489316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26465555_03-09-2025_06_22_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26465561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26465562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26465563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26465564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26465565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26465566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26465567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26465568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26465569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26465570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26465571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26465572, '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 = 26466677 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': 3656544, 'mtr_portfolio_id': 26466677, 'created_at': datetime.datetime(2025, 9, 3, 6, 22, 58), 'result': '0.04661632280113114', 'result_long': None, 'result_double': None}] Qualite : 0.04661632280113114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26466677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26466677_03-09-2025_06_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26466677 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_P26466677_03-09-2025_06_23_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26466679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26466680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26466681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26466682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26466683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26466684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26466685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26466686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26466687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26466688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26466689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26466690, 'pht': 3726}}" where mtr_portfolio_id = 26466677 and dashboard_run_id = 2231287 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`=26466677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660428, 0.04661632280113114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26466677_03-09-2025_06_23_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26466679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26466680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26466681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26466682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26466683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26466684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26466685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26466686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26466687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26466688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26466689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26466690, '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 = 26467330 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': 3656545, 'mtr_portfolio_id': 26467330, 'created_at': datetime.datetime(2025, 9, 3, 6, 23, 32), 'result': '0.056438332049679574', 'result_long': None, 'result_double': None}] Qualite : 0.056438332049679574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26467330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26467330_03-09-2025_06_23_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26467330 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_P26467330_03-09-2025_06_23_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26467336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26467337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26467338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26467339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26467340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26467341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26467342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26467343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26467344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26467345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26467346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26467347, 'pht': 3726}}" where mtr_portfolio_id = 26467330 and dashboard_run_id = 2231287 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`=26467330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660429, 0.056438332049679574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26467330_03-09-2025_06_23_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26467336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26467337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26467338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26467339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26467340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26467341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26467342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26467343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26467344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26467345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26467346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26467347, '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 = 26468904 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': 3656546, 'mtr_portfolio_id': 26468904, 'created_at': datetime.datetime(2025, 9, 3, 6, 23, 27), 'result': '0.0400454116312662', 'result_long': None, 'result_double': None}] Qualite : 0.0400454116312662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468904_03-09-2025_06_23_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468904 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_P26468904_03-09-2025_06_23_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26469016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469027, 'pht': 3726}}" where mtr_portfolio_id = 26468904 and dashboard_run_id = 2231287 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`=26468904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660430, 0.0400454116312662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468904_03-09-2025_06_23_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26469016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469023, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469024, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469027, '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 = 26468907 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': 3656547, 'mtr_portfolio_id': 26468907, 'created_at': datetime.datetime(2025, 9, 3, 6, 23, 59), 'result': '0.05576681411569979', 'result_long': None, 'result_double': None}] Qualite : 0.05576681411569979 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468907_03-09-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468907 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_P26468907_03-09-2025_06_24_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468966, 'pht': 3726}}" where mtr_portfolio_id = 26468907 and dashboard_run_id = 2231287 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`=26468907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660431, 0.05576681411569979, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468907_03-09-2025_06_24_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468966, '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 = 26468909 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': 3656548, 'mtr_portfolio_id': 26468909, 'created_at': datetime.datetime(2025, 9, 3, 6, 24, 57), 'result': '0.06844695869233522', 'result_long': None, 'result_double': None}] Qualite : 0.06844695869233522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468909_03-09-2025_06_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468909 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_P26468909_03-09-2025_06_25_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468954, 'pht': 3726}}" where mtr_portfolio_id = 26468909 and dashboard_run_id = 2231287 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`=26468909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660432, 0.06844695869233522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468909_03-09-2025_06_25_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468954, '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 = 26468911 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': 3656549, 'mtr_portfolio_id': 26468911, 'created_at': datetime.datetime(2025, 9, 3, 6, 25, 33), 'result': '0.06576183763277058', 'result_long': None, 'result_double': None}] Qualite : 0.06576183763277058 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26468911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468911_03-09-2025_06_25_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26468911 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_P26468911_03-09-2025_06_25_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468924, 'pht': 3726}}" where mtr_portfolio_id = 26468911 and dashboard_run_id = 2231287 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`=26468911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660434, 0.06576183763277058, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26468911_03-09-2025_06_25_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26468913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26468914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26468915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26468916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26468917, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26468918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26468919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26468920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26468921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26468922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26468923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26468924, '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 = 26469413 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': 3656550, 'mtr_portfolio_id': 26469413, 'created_at': datetime.datetime(2025, 9, 3, 6, 25, 31), 'result': '0.04440034741788337', 'result_long': None, 'result_double': None}] Qualite : 0.04440034741788337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26469413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469413_03-09-2025_06_25_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26469413 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_P26469413_03-09-2025_06_25_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469451, 'pht': 3726}}" where mtr_portfolio_id = 26469413 and dashboard_run_id = 2231287 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`=26469413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660435, 0.04440034741788337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469413_03-09-2025_06_25_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469451, '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 = 26469960 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': 3656551, 'mtr_portfolio_id': 26469960, 'created_at': datetime.datetime(2025, 9, 3, 6, 25, 40), 'result': '0.07036631293278209', 'result_long': None, 'result_double': None}] Qualite : 0.07036631293278209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26469960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469960_03-09-2025_06_25_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26469960 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_P26469960_03-09-2025_06_25_42.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469982, 'pht': 3726}}" where mtr_portfolio_id = 26469960 and dashboard_run_id = 2231287 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`=26469960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660436, 0.07036631293278209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26469960_03-09-2025_06_25_42.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26469971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26469972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26469973, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26469974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26469975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26469976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26469977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26469978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26469979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26469980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26469981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26469982, '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 = 26470390 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': 3656552, 'mtr_portfolio_id': 26470390, 'created_at': datetime.datetime(2025, 9, 3, 6, 26, 2), 'result': '0.05552789214373496', 'result_long': None, 'result_double': None}] Qualite : 0.05552789214373496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26470390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26470390_03-09-2025_06_26_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26470390 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_P26470390_03-09-2025_06_26_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26470416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26470417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26470418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26470419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26470420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26470421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26470422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26470423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26470424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26470425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26470426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26470427, 'pht': 3726}}" where mtr_portfolio_id = 26470390 and dashboard_run_id = 2231287 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`=26470390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660437, 0.05552789214373496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26470390_03-09-2025_06_26_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26470416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26470417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26470418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26470419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26470420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26470421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26470422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26470423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26470424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26470425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26470426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26470427, '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 = 26470805 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': 3656553, 'mtr_portfolio_id': 26470805, 'created_at': datetime.datetime(2025, 9, 3, 6, 26, 57), 'result': '0.07252814934242342', 'result_long': None, 'result_double': None}] Qualite : 0.07252814934242342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26470805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26470805_03-09-2025_06_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26470805 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_P26470805_03-09-2025_06_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26470830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26470831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26470832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26470833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26470834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26470835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26470836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26470837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26470838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26470839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26470840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26470841, 'pht': 3726}}" where mtr_portfolio_id = 26470805 and dashboard_run_id = 2231287 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`=26470805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660439, 0.07252814934242342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26470805_03-09-2025_06_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26470830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26470831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26470832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26470833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26470834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26470835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26470836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26470837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26470838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26470839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26470840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26470841, '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 = 26471195 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': 3656554, 'mtr_portfolio_id': 26471195, 'created_at': datetime.datetime(2025, 9, 3, 6, 27, 29), 'result': '0.06687623774346714', 'result_long': None, 'result_double': None}] Qualite : 0.06687623774346714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26471195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26471195_03-09-2025_06_27_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26471195 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_P26471195_03-09-2025_06_27_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26471210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26471211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26471212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26471213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26471214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26471215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26471216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26471217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26471218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26471219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26471220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26471221, 'pht': 3726}}" where mtr_portfolio_id = 26471195 and dashboard_run_id = 2231287 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`=26471195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660440, 0.06687623774346714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26471195_03-09-2025_06_27_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26471210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26471211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26471212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26471213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26471214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26471215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26471216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26471217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26471218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26471219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26471220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26471221, '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 = 26472646 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': 3656555, 'mtr_portfolio_id': 26472646, 'created_at': datetime.datetime(2025, 9, 3, 6, 27, 30), 'result': '0.035570938055098165', 'result_long': None, 'result_double': None}] Qualite : 0.035570938055098165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26472646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26472646_03-09-2025_06_27_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26472646 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_P26472646_03-09-2025_06_27_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26472649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26472650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26472651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26472652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26472653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26472654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26472655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26472656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26472657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26472658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26472659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26472660, 'pht': 3726}}" where mtr_portfolio_id = 26472646 and dashboard_run_id = 2231287 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`=26472646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660441, 0.035570938055098165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26472646_03-09-2025_06_27_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26472649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26472650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26472651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26472652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26472653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26472654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26472655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26472656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26472657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26472658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26472659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26472660, '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 = 26472774 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': 3656556, 'mtr_portfolio_id': 26472774, 'created_at': datetime.datetime(2025, 9, 3, 5, 40, 40), 'result': '0.06142308493043996', 'result_long': None, 'result_double': None}] Qualite : 0.06142308493043996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26472774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26472774_03-09-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26472774 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_P26472774_03-09-2025_05_40_42.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26472776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26472777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26472778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26472779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26472780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26472781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26472782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26472783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26472784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26472785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26472786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26472787, 'pht': 3726}}" where mtr_portfolio_id = 26472774 and dashboard_run_id = 2231287 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`=26472774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660442, 0.06142308493043996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26472774_03-09-2025_05_40_42.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26472776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26472777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26472778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26472779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26472780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26472781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26472782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26472783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26472784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26472785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26472786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26472787, '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 = 26473061 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': 3656456, 'mtr_portfolio_id': 26473061, 'created_at': datetime.datetime(2025, 9, 3, 5, 49), 'result': '0.05002953511209169', 'result_long': None, 'result_double': None}] Qualite : 0.05002953511209169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26473061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26473061_03-09-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26473061 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_P26473061_03-09-2025_05_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473068, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26473074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473078, 'pht': 3726}}" where mtr_portfolio_id = 26473061 and dashboard_run_id = 2231287 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`=26473061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660444, 0.05002953511209169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26473061_03-09-2025_05_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473068, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26473074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473078, '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 = 26473432 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': 3656636, 'mtr_portfolio_id': 26473432, 'created_at': datetime.datetime(2025, 9, 3, 6, 3, 28), 'result': '0.08479830820527963', 'result_long': None, 'result_double': None}] Qualite : 0.08479830820527963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26473432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26473432_03-09-2025_06_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26473432 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_P26473432_03-09-2025_06_03_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26473440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473449, 'pht': 3726}}" where mtr_portfolio_id = 26473432 and dashboard_run_id = 2231287 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`=26473432 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660445, 0.08479830820527963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26473432_03-09-2025_06_03_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26473440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473446, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473449, '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 = 26473783 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 = 26473783 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 = 26473783 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26473783 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 = 26473783 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 = 26473783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26473783_03-09-2025_06_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26473783 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_P26473783_03-09-2025_06_17_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26473789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26473790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26473791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26473792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26473793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26473794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26473795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26473796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26473797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26473798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26473799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26473800, 'pht': 3726}}" where mtr_portfolio_id = 26473783 and dashboard_run_id = 2231287 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 = 26474140 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 = 26474140 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 = 26474140 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26474140 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 = 26474140 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 = 26474140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474140_03-09-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26474140 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_P26474140_03-09-2025_06_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474142, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474152, 'pht': 3726}}" where mtr_portfolio_id = 26474140 and dashboard_run_id = 2231287 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 = 26474172 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 = 26474172 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 = 26474172 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26474172 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 = 26474172 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 = 26474172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474172_03-09-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26474172 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_P26474172_03-09-2025_06_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26474174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474185, 'pht': 3726}}" where mtr_portfolio_id = 26474172 and dashboard_run_id = 2231287 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 = 26474226 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 = 26474226 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 = 26474226 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26474226 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 = 26474226 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 = 26474226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474226_03-09-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26474226 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_P26474226_03-09-2025_07_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474235, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474238, 'pht': 3726}}" where mtr_portfolio_id = 26474226 and dashboard_run_id = 2231287 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 = 26474338 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': 3656802, 'mtr_portfolio_id': 26474338, 'created_at': datetime.datetime(2025, 9, 3, 7, 16, 57), 'result': '0.042973326287177545', 'result_long': None, 'result_double': None}] Qualite : 0.042973326287177545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26474338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474338_03-09-2025_07_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26474338 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_P26474338_03-09-2025_07_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474378, 'pht': 3726}}" where mtr_portfolio_id = 26474338 and dashboard_run_id = 2231287 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`=26474338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660451, 0.042973326287177545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474338_03-09-2025_07_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474378, '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 = 26474755 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': 3656915, 'mtr_portfolio_id': 26474755, 'created_at': datetime.datetime(2025, 9, 3, 7, 32, 59), 'result': '0.055912200348411024', 'result_long': None, 'result_double': None}] Qualite : 0.055912200348411024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26474755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474755_03-09-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26474755 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_P26474755_03-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474835, 'pht': 3726}}" where mtr_portfolio_id = 26474755 and dashboard_run_id = 2231287 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`=26474755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660452, 0.055912200348411024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26474755_03-09-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26474823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26474824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26474825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26474826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26474827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26474828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26474829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26474830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26474831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26474832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26474834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26474835, '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 = 26475537 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': 3657105, 'mtr_portfolio_id': 26475537, 'created_at': datetime.datetime(2025, 9, 3, 7, 49), 'result': '0.12449883963262252', 'result_long': None, 'result_double': None}] Qualite : 0.12449883963262252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26475537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26475537_03-09-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26475537 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_P26475537_03-09-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26475575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26475576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26475577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26475578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26475579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26475580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26475581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26475582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26475583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26475584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26475585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26475586, 'pht': 3726}}" where mtr_portfolio_id = 26475537 and dashboard_run_id = 2231287 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`=26475537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660453, 0.12449883963262252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26475537_03-09-2025_07_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26475575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26475576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26475577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26475578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26475579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26475580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26475581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26475582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26475583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26475584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26475585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26475586, '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 = 26476200 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': 3657212, 'mtr_portfolio_id': 26476200, 'created_at': datetime.datetime(2025, 9, 3, 8, 3, 29), 'result': '0.07681789535657833', 'result_long': None, 'result_double': None}] Qualite : 0.07681789535657833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26476200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26476200_03-09-2025_08_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26476200 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_P26476200_03-09-2025_08_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26476289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26476290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26476291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26476292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26476293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26476294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26476295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26476296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26476297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26476298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26476299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26476300, 'pht': 3726}}" where mtr_portfolio_id = 26476200 and dashboard_run_id = 2231287 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`=26476200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660454, 0.07681789535657833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26476200_03-09-2025_08_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26476289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26476290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26476291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26476292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26476293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26476294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26476295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26476296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26476297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26476298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26476299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26476300, '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 = 26476938 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': 3657314, 'mtr_portfolio_id': 26476938, 'created_at': datetime.datetime(2025, 9, 3, 8, 22, 58), 'result': '0.14925437677800082', 'result_long': None, 'result_double': None}] Qualite : 0.14925437677800082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26476938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26476938_03-09-2025_08_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26476938 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_P26476938_03-09-2025_08_22_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26476943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26476944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26476945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26476946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26476947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26476948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26476949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26476950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26476951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26476952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26476953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26476954, 'pht': 3726}}" where mtr_portfolio_id = 26476938 and dashboard_run_id = 2231287 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`=26476938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660455, 0.14925437677800082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26476938_03-09-2025_08_22_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26476943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26476944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26476945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26476946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26476947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26476948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26476949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26476950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26476951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26476952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26476953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26476954, '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 = 26477759 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': 3657404, 'mtr_portfolio_id': 26477759, 'created_at': datetime.datetime(2025, 9, 3, 8, 32, 56), 'result': '0.051180441906153645', 'result_long': None, 'result_double': None}] Qualite : 0.051180441906153645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26477759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26477759_03-09-2025_08_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26477759 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_P26477759_03-09-2025_08_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26477786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26477787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26477788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26477789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26477790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26477791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26477792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26477793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26477794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26477795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26477796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26477797, 'pht': 3726}}" where mtr_portfolio_id = 26477759 and dashboard_run_id = 2231287 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`=26477759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660456, 0.051180441906153645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26477759_03-09-2025_08_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26477786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26477787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26477788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26477789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26477790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26477791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26477792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26477793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26477794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26477795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26477796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26477797, '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 = 26478054 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': 3657439, 'mtr_portfolio_id': 26478054, 'created_at': datetime.datetime(2025, 9, 3, 9, 41, 29), 'result': '0.07026125965186134', 'result_long': None, 'result_double': None}] Qualite : 0.07026125965186134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26478054 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478054_03-09-2025_09_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26478054 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_P26478054_03-09-2025_09_41_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478071, 'pht': 3726}}" where mtr_portfolio_id = 26478054 and dashboard_run_id = 2231287 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`=26478054 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660457, 0.07026125965186134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478054_03-09-2025_09_41_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478071, '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 = 26478242 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 = 26478242 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 = 26478242 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26478242 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 = 26478242 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 = 26478242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478242_03-09-2025_09_42_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26478242 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_P26478242_03-09-2025_09_42_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478419, 'pht': 3726}}" where mtr_portfolio_id = 26478242 and dashboard_run_id = 2231287 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 = 26478249 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': 3657474, 'mtr_portfolio_id': 26478249, 'created_at': datetime.datetime(2025, 9, 3, 9, 48, 59), 'result': '0.06567687611490981', 'result_long': None, 'result_double': None}] Qualite : 0.06567687611490981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26478249 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478249_03-09-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26478249 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_P26478249_03-09-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478317, 'pht': 3726}}" where mtr_portfolio_id = 26478249 and dashboard_run_id = 2231287 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`=26478249 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660459, 0.06567687611490981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478249_03-09-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478317, '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 = 26478694 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': 3657530, 'mtr_portfolio_id': 26478694, 'created_at': datetime.datetime(2025, 9, 3, 10, 2, 28), 'result': '0.06250657012354231', 'result_long': None, 'result_double': None}] Qualite : 0.06250657012354231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26478694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478694_03-09-2025_10_02_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26478694 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_P26478694_03-09-2025_10_02_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478721, 'pht': 3726}}" where mtr_portfolio_id = 26478694 and dashboard_run_id = 2231287 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`=26478694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660460, 0.06250657012354231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26478694_03-09-2025_10_02_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26478710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26478711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26478712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26478713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26478714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26478715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26478716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26478717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26478718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26478719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26478720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26478721, '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 = 26479545 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': 3657705, 'mtr_portfolio_id': 26479545, 'created_at': datetime.datetime(2025, 9, 3, 10, 18, 57), 'result': '0.04668452842063827', 'result_long': None, 'result_double': None}] Qualite : 0.04668452842063827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26479545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26479545_03-09-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26479545 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_P26479545_03-09-2025_10_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26479584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26479585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26479586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26479587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26479589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26479590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26479591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26479592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26479593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26479594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26479595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26479596, 'pht': 3726}}" where mtr_portfolio_id = 26479545 and dashboard_run_id = 2231287 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`=26479545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660461, 0.04668452842063827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26479545_03-09-2025_10_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26479584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26479585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26479586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26479587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26479589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26479590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26479591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26479592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26479593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26479594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26479595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26479596, '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 = 26480157 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': 3657743, 'mtr_portfolio_id': 26480157, 'created_at': datetime.datetime(2025, 9, 3, 10, 32, 59), 'result': '0.061730061385591804', 'result_long': None, 'result_double': None}] Qualite : 0.061730061385591804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26480157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26480157_03-09-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26480157 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_P26480157_03-09-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26480166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26480167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26480168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26480169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26480170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26480171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26480172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26480173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26480174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26480175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26480176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26480177, 'pht': 3726}}" where mtr_portfolio_id = 26480157 and dashboard_run_id = 2231287 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`=26480157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660462, 0.061730061385591804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26480157_03-09-2025_10_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26480166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26480167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26480168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26480169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26480170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26480171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26480172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26480173, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26480174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26480175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26480176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26480177, '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 = 26480939 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': 3657854, 'mtr_portfolio_id': 26480939, 'created_at': datetime.datetime(2025, 9, 3, 10, 48, 58), 'result': '0.07478516711331286', 'result_long': None, 'result_double': None}] Qualite : 0.07478516711331286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26480939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26480939_03-09-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26480939 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_P26480939_03-09-2025_10_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26480959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26480960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26480961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26480962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26480963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26480964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26480965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26480966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26480967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26480968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26480969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26480970, 'pht': 3726}}" where mtr_portfolio_id = 26480939 and dashboard_run_id = 2231287 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`=26480939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660463, 0.07478516711331286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26480939_03-09-2025_10_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26480959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26480960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26480961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26480962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26480963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26480964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26480965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26480966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26480967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26480968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26480969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26480970, '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 = 26481464 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': 3657971, 'mtr_portfolio_id': 26481464, 'created_at': datetime.datetime(2025, 9, 3, 11, 2, 57), 'result': '0.06546194241788839', 'result_long': None, 'result_double': None}] Qualite : 0.06546194241788839 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26481464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26481464_03-09-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26481464 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_P26481464_03-09-2025_11_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26481475, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26481476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26481477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26481478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26481479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26481480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26481481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26481482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26481483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26481484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26481485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26481486, 'pht': 3726}}" where mtr_portfolio_id = 26481464 and dashboard_run_id = 2231287 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`=26481464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660464, 0.06546194241788839, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26481464_03-09-2025_11_02_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26481475, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26481476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26481477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26481478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26481479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26481480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26481481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26481482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26481483, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26481484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26481485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26481486, '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 = 26482126 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': 3658080, 'mtr_portfolio_id': 26482126, 'created_at': datetime.datetime(2025, 9, 3, 11, 19, 1), 'result': '0.05828342071529709', 'result_long': None, 'result_double': None}] Qualite : 0.05828342071529709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26482126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26482126_03-09-2025_11_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26482126 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_P26482126_03-09-2025_11_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26482175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26482176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26482177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26482178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26482179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26482180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26482181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26482182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26482183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26482184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26482185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26482186, 'pht': 3726}}" where mtr_portfolio_id = 26482126 and dashboard_run_id = 2231287 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`=26482126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660465, 0.05828342071529709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26482126_03-09-2025_11_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26482175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26482176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26482177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26482178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26482179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26482180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26482181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26482182, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26482183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26482184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26482185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26482186, '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 = 26482829 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': 3658167, 'mtr_portfolio_id': 26482829, 'created_at': datetime.datetime(2025, 9, 3, 11, 32, 59), 'result': '0.06472381045516953', 'result_long': None, 'result_double': None}] Qualite : 0.06472381045516953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26482829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26482829_03-09-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26482829 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_P26482829_03-09-2025_11_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26482882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26482883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26482884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26482885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26482886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26482887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26482888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26482889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26482890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26482891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26482892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26482893, 'pht': 3726}}" where mtr_portfolio_id = 26482829 and dashboard_run_id = 2231287 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`=26482829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660466, 0.06472381045516953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26482829_03-09-2025_11_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26482882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26482883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26482884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26482885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26482886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26482887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26482888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26482889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26482890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26482891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26482892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26482893, '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 = 26483614 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': 3658287, 'mtr_portfolio_id': 26483614, 'created_at': datetime.datetime(2025, 9, 3, 11, 48, 57), 'result': '0.05262409811974352', 'result_long': None, 'result_double': None}] Qualite : 0.05262409811974352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26483614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26483614_03-09-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26483614 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_P26483614_03-09-2025_11_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26483629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26483630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26483631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26483632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26483633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26483634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26483635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26483636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26483637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26483638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26483639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26483640, 'pht': 3726}}" where mtr_portfolio_id = 26483614 and dashboard_run_id = 2231287 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`=26483614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14660467, 0.05262409811974352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26483614_03-09-2025_11_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26483629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26483630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26483631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26483632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26483633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26483634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26483635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26483636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26483637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26483638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26483639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26483640, '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 = 26484362 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 = 26484362 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 = 26484362 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26484362 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 = 26484362 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 = 26484362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26484362_03-09-2025_11_53_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26484362 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_P26484362_03-09-2025_11_53_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26484432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26484433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26484434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26484435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26484436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26484437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26484438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26484439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26484440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26484441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26484442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26484443, 'pht': 3726}}" where mtr_portfolio_id = 26484362 and dashboard_run_id = 2231287 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26464090,26464620,26465056,26465555,26466677,26467330,26468904,26468907,26468909,26468911,26469413,26469960,26470390,26470805,26471195,26472646,26472774,26473061,26473432,26473783,26474140,26474172,26474226,26474338,26474755,26475537,26476200,26476938,26477759,26478054,26478242,26478249,26478694,26479545,26480157,26480939,26481464,26482126,26482829,26483614,26484362) result : ((1380975200,), (1380975202,), (1380975204,), (1380975678,), (1380975681,), (1380975684,), (1380975687,), (1380976910,), (1380976913,), (1380976916,), (1380976920,), (1380977535,), (1380977727,), (1380977730,), (1380977733,), (1380977736,), (1380977739,), (1380977935,), (1380977937,), (1380977939,), (1380977941,), (1380977943,), (1380978430,), (1380978431,), (1380978432,), (1380978488,), (1380978490,), (1380978491,), (1380978492,), (1380978493,), (1380978494,), (1380978497,), (1380978569,), (1380978570,), (1380978572,), (1380978642,), (1380978643,), (1380978644,), (1380978645,), (1380978685,), (1380978686,), (1380978687,), (1380978739,), (1380978740,), (1380978741,), (1380978742,), (1380978743,), (1380978744,), (1380978793,), (1380978795,), (1380978797,), (1380978799,), (1380979070,), (1380979072,), (1380979074,), (1380979076,), (1380979078,), (1380979132,), (1380979133,), (1380979134,), (1380979135,), (1380979136,), (1380979137,), (1380979172,), (1380979173,), (1380979174,), (1380979225,), (1380979276,), (1380979221,), (1380979222,), (1380979223,), (1380979224,), (1380979263,), (1380979264,), (1380979265,), (1380979266,), (1380979267,), (1380979269,), (1380979273,), (1380979274,), (1380979275,), (1380979321,), (1380979322,), (1380979323,), (1380979324,), (1380979325,), (1380979407,), (1380979408,), (1380979409,), (1380979410,), (1380979603,), (1380979605,), (1380979607,), (1380979609,), (1380979611,), (1380979613,), (1380980009,), (1380980011,), (1380980013,), (1380980015,), (1380980017,), (1380980019,), (1380980309,), (1380980310,), (1380980311,), (1380980451,), (1380980453,), (1380980455,), (1380980457,), (1380980459,), (1380980776,), (1380980777,), (1380980778,), (1380980779,), (1380980781,), (1380981118,), (1380981120,), (1380981122,), (1380981124,), (1380981125,), (1380981532,), (1380981534,), (1380981536,), (1380981538,), (1380981923,), (1380981926,), (1380981928,), (1380981930,), (1380981932,), (1380981934,), (1380981989,), (1380981991,), (1380982105,), (1380982106,), (1380982107,), (1380982108,), (1380982568,), (1380982570,), (1380982572,), (1380982824,), (1380982820,), (1380982821,), (1380982822,), (1380982823,), (1380982861,), (1380982862,), (1380982863,), (1380982898,), (1380982899,), (1380982900,), (1380982901,), (1380982951,), (1380982952,), (1380982953,), (1380982954,), (1380982990,), (1380982991,), (1380982992,), (1380982993,), (1380982994,), (1380983044,), (1380983045,), (1380983046,), (1380983047,), (1380983084,), (1380983085,), (1380983087,), (1380983088,), (1380983089,), (1380983090,), (1380983094,), (1380983095,), (1380983157,), (1380983158,), (1380983159,), (1380983160,), (1380983161,), (1380983193,), (1380983194,), (1380983195,), (1380983238,), (1380983239,), (1380983240,), (1380983309,), (1380983310,), (1380983311,), (1380983312,), (1380983354,), (1380983355,), (1380983356,), (1380983357,), (1380983417,), (1380983418,), (1380983419,), (1380983420,), (1380983461,), (1380983462,), (1380983463,), (1380983464,), (1380983465,), (1380983497,), (1380983498,), (1380983499,), (1380983500,), (1380983547,), (1380983605,), (1380983544,), (1380983545,), (1380983546,), (1380983586,), (1380983587,), (1380983589,), (1380983590,), (1380983591,), (1380983592,), (1380983604,), (1380983660,), (1380983661,), (1380983662,), (1380983663,), (1380983691,), (1380983692,), (1380983693,), (1380983733,), (1380983734,), (1380983735,), (1380983736,), (1380983758,), (1380983759,), (1380983792,), (1380983793,), (1380983794,), (1380983795,), (1380983796,), (1380983846,), (1380983847,), (1380983848,), (1380983935,), (1380983936,), (1380983937,), (1380983971,), (1380983972,), (1380983973,), (1380983974,), (1380984006,), (1380984007,), (1380984008,), (1380984046,), (1380984047,), (1380984048,), (1380984049,), (1380984050,), (1380984052,), (1380984098,), (1380984100,), (1380984102,), (1380989879,), (1380989919,), (1380989920,), (1380989921,), (1380989922,), (1380989992,), (1380989994,), (1380989995,), (1380989996,), (1380990053,), (1380990054,), (1380990091,), (1380990092,), (1380990093,), (1380990094,), (1380990095,), (1380990096,), (1380990134,), (1380990135,), (1380990192,), (1380990196,), (1380990199,), (1380990203,), (1380990206,), (1380990210,), (1380990297,), (1380990298,), (1380990299,), (1380990300,), (1380990326,), (1380990327,), (1380990328,), (1380990378,), (1380990379,), (1380990444,), (1380990445,), (1380990446,), (1380990447,), (1380990539,), (1380990541,), (1380990543,), (1380990545,), (1380990547,), (1380990725,), (1380990726,), (1380990727,), (1380990728,), (1380990729,), (1380990777,), (1380990778,), (1380990779,), (1380990780,), (1380990781,), (1380990782,), (1380990818,), (1380990819,), (1380990820,), (1380990821,), (1380990822,), (1380990823,), (1380990861,), (1380990919,), (1380990858,), (1380990859,), (1380990860,), (1380990907,), (1380990908,), (1380990909,), (1380990910,), (1380990911,), (1380990912,), (1380990918,), (1380990993,), (1380990994,), (1380990995,), (1380990996,), (1380991028,), (1380991029,), (1380991030,), (1380991070,), (1380991071,), (1380991072,), (1380991073,), (1380991110,), (1380991111,), (1380991112,), (1380991113,), (1380991153,), (1380991154,), (1380991155,), (1380991156,), (1380991506,), (1380991508,), (1380991510,), (1380991512,), (1380991874,), (1380991876,), (1380991878,), (1380992242,), (1380992244,), (1380992246,), (1380992248,), (1380992558,), (1380992559,), (1380992560,), (1380992561,), (1380992562,), (1380992563,), (1380992773,), (1380992775,), (1380992777,), (1380992779,), (1380992781,), (1380992783,), (1380992821,), (1380992822,), (1380993019,), (1380993022,), (1380993026,), (1380993030,), (1380993742,), (1380993746,), (1380993749,), (1380993863,), (1380993866,), (1380993869,), (1380993874,), (1380993878,), (1380994290,), (1380994280,), (1380994282,), (1380994284,), (1380994286,), (1380994288,), (1380994591,), (1380994594,), (1380994597,), (1380994600,), (1380994603,), (1380995117,), (1380995118,), (1380995120,), (1380995122,), (1380995365,), (1380995367,), (1380995369,), (1380995618,), (1380995620,), (1380995622,), (1380995624,), (1380995808,), (1380995809,), (1380995810,), (1380996061,), (1380996064,), (1380996066,), (1380996069,), (1380996071,), (1380996410,), (1380996412,), (1380996414,), (1380996416,), (1380996418,), (1380996784,), (1380996786,), (1380996788,), (1380996955,), (1380996957,), (1380996959,), (1380997132,), (1380997133,), (1380997134,), (1380997136,), (1380997189,), (1380997190,), (1380997191,), (1380997192,), (1380997193,), (1380997227,), (1380997228,), (1380997229,), (1380997231,), (1380997269,), (1380997270,), (1380997271,), (1380997305,), (1380997306,), (1380997307,), (1380997396,), (1380997485,), (1380997392,), (1380997393,), (1380997394,), (1380997395,), (1380997476,), (1380997477,), (1380997478,), (1380997479,), (1380997480,), (1380997481,), (1380997630,), (1380997632,), (1380998135,), (1380998138,), (1380998141,), (1380998827,), (1380998831,), (1380999938,), (1380999942,), (1380999946,), (1380999950,), (1381000864,), (1381000868,), (1381000871,), (1381000875,), (1381000879,), (1381001588,), (1381001590,), (1381001592,), (1381001594,), (1381001596,), (1381002131,), (1381002132,), (1381002133,), (1381002268,), (1381002269,), (1381002270,), (1381002271,), (1381002272,), (1381002652,), (1381002654,), (1381002656,), (1381002658,), (1381002660,), (1381002852,), (1381002854,), (1381002856,), (1381002858,), (1381002861,), (1381002863,), (1381002896,), (1381002897,), (1381002898,), (1381002899,), (1381002900,), (1381002981,), (1381002982,), (1381002983,), (1381003297,), (1381003298,), (1381003299,), (1381003300,), (1381003347,), (1381003348,), (1381003349,), (1381003350,), (1381003399,), (1381003396,), (1381003397,), (1381003398,), (1381003451,), (1381003452,), (1381003453,), (1381003454,), (1381003455,), (1381003456,), (1381003488,), (1381003489,), (1381003490,), (1381003533,), (1381003534,), (1381003535,), (1381003586,), (1381003587,), (1381003588,), (1381003627,), (1381003628,), (1381003629,), (1381003661,), (1381003662,), (1381003663,), (1381003664,), (1381003665,), (1381003666,), (1381003670,), (1381003671,), (1381003698,), (1381003699,), (1381003700,), (1381003701,), (1381003702,), (1381003703,), (1381003744,), (1381003751,), (1381003752,), (1381003753,), (1381003803,), (1381003804,), (1381003845,), (1381003846,), (1381003847,), (1381003848,), (1381003849,), (1381003903,), (1381003905,), (1381003906,), (1381003907,), (1381003908,), (1381003909,), (1381003969,), (1381003970,), (1381003971,), (1381004017,), (1381004018,), (1381004019,), (1381004020,), (1381004021,), (1381004022,), (1381004252,), (1381004254,), (1381004256,), (1381004258,), (1381004261,), (1381004452,), (1381004565,), (1381004450,), (1381004451,), (1381004560,), (1381004561,), (1381004562,), (1381004563,), (1381004564,), (1381004623,), (1381004630,), (1381004631,), (1381004632,), (1381004667,), (1381004668,), (1381004669,), (1381004670,), (1381004671,), (1381004672,), (1381004704,), (1381004705,), (1381004706,), (1381004707,), (1381004708,), (1381004709,), (1381004747,), (1381004992,), (1381005018,), (1381005025,), (1381005026,), (1381005027,), (1381005131,), (1381005133,), (1381005711,), (1381005713,), (1381005715,), (1381005717,), (1381005782,), (1381005784,), (1381005786,), (1381005788,), (1381005924,), (1381005919,), (1381005920,), (1381005922,), (1381005923,), (1381006249,), (1381006252,), (1381006255,), (1381006258,), (1381007053,), (1381007056,), (1381007060,), (1381007063,), (1381007823,), (1381007826,), (1381007829,), (1381007832,), (1381008039,), (1381008041,), (1381008043,), (1381008045,), (1381008047,), (1381008465,), (1381008466,), (1381008469,), (1381008471,), (1381008626,), (1381008627,), (1381008628,), (1381008629,), (1381008630,), (1381008631,), (1381008724,), (1381008725,), (1381008726,), (1381008756,), (1381008757,), (1381008759,), (1381008760,), (1381008761,), (1381008811,), (1381008812,), (1381008813,), (1381008814,), (1381008848,), (1381008849,), (1381008850,), (1381008883,), (1381008884,), (1381008885,), (1381008886,), (1381008964,), (1381008965,), (1381008966,), (1381009016,), (1381009017,), (1381009018,), (1381009019,), (1381009055,), (1381009056,), (1381009057,), (1381009058,), (1381009108,), (1381009151,), (1381009106,), (1381009107,), (1381009141,), (1381009142,), (1381009143,), (1381009144,), (1381009145,), (1381009146,), (1381009150,), (1381009201,), (1381009202,), (1381009261,), (1381009262,), (1381009263,), (1381009264,), (1381009305,), (1381009306,), (1381009307,), (1381009308,), (1381009309,), (1381009353,), (1381009354,), (1381009355,), (1381009356,), (1381009397,), (1381009398,), (1381009401,), (1381009405,), (1381009448,), (1381009449,), (1381009450,), (1381009488,), (1381009489,), (1381009490,), (1381009491,), (1381009531,), (1381009532,), (1381009533,), (1381009534,), (1381009577,), (1381009578,), (1381009579,), (1381009616,), (1381009618,), (1381009619,), (1381009620,), (1381009621,), (1381009622,), (1381009630,), (1381009697,), (1381009698,), (1381009699,), (1381009700,), (1381009701,), (1381009738,), (1381009739,), (1381009740,), (1381009786,), (1381009787,), (1381009788,), (1381009855,), (1381009851,), (1381009852,), (1381009853,), (1381009854,), (1381009901,), (1381009902,), (1381009903,), (1381009904,), (1381009905,), (1381009953,), (1381009954,), (1381009955,), (1381009956,), (1381009998,), (1381010032,), (1381010033,), (1381010034,), (1381010035,), (1381010072,), (1381010073,), (1381010074,), (1381010075,), (1381010076,), (1381010077,), (1381010139,), (1381010140,), (1381010141,), (1381010142,), (1381010143,), (1381010144,), (1381010151,), (1381010152,), (1381010153,), (1381010189,), (1381010190,), (1381010191,), (1381010192,), (1381010230,), (1381010231,), (1381010266,), (1381010267,), (1381010268,), (1381010269,), (1381010341,), (1381010342,), (1381010343,), (1381010344,), (1381010345,), (1381010412,), (1381010413,), (1381010477,), (1381010478,), (1381010479,), (1381010535,), (1381010536,), (1381010537,), (1381010538,), (1381010539,), (1381010577,), (1381010578,), (1381010579,), (1381010580,), (1381010581,), (1381010635,), (1381010703,), (1381010632,), (1381010633,), (1381010634,), (1381010678,), (1381010679,), (1381010680,), (1381010681,), (1381010683,), (1381010684,), (1381010740,), (1381010741,), (1381010742,), (1381010743,), (1381010778,), (1381010779,), (1381010780,), (1381010781,), (1381010782,), (1381010783,), (1381010815,), (1381010816,), (1381010817,), (1381010818,), (1381010819,), (1381010886,), (1381010887,), (1381010888,), (1381010889,), (1381010925,), (1381010946,), (1381010947,), (1381010948,), (1381010949,), (1381010950,), (1381010979,), (1381010980,), (1381010981,), (1381010982,), (1381010983,), (1381010984,), (1381011027,), (1381011028,), (1381011029,), (1381011030,), (1381011031,), (1381011064,), (1381011065,), (1381011066,), (1381011067,), (1381011100,), (1381011101,), (1381011102,), (1381011103,), (1381011104,), (1381011136,), (1381011137,), (1381011138,), (1381011139,), (1381011140,), (1381011141,), (1381011574,), (1381011576,), (1381011578,), (1381011580,), (1381011582,), (1381011584,), (1381011641,), (1381011642,), (1381011643,), (1381011644,), (1381011645,), (1381011647,), (1381011651,), (1381011806,), (1381011807,), (1381011808,), (1381011852,), (1381011855,), (1381011857,), (1381011859,), (1381011861,), (1381012259,), (1381012188,), (1381012255,), (1381012256,), (1381012606,), (1381012608,), (1381012610,), (1381012612,), (1381012615,), (1381012791,), (1381012793,), (1381012795,), (1381013347,), (1381013350,), (1381013353,), (1381013356,), (1381013857,), (1381013859,), (1381013861,), (1381013863,), (1381013865,), (1381014182,), (1381014184,), (1381014186,), (1381014188,), (1381014388,), (1381014391,), (1381014392,), (1381014394,), (1381014396,), (1381014398,), (1381014429,), (1381014461,), (1381014462,), (1381014463,), (1381014464,), (1381014493,), (1381014494,), (1381014530,), (1381019148,), (1381019144,), (1381019646,), (1381020131,), (1381020166,), (1381020167,), (1381020169,), (1381020211,), (1381020212,), (1381020213,), (1381020214,), (1381020215,), (1381020257,), (1381020305,), (1381020306,), (1381020307,), (1381020308,), (1381020350,), (1381020351,), (1381020352,), (1381020353,), (1381020354,), (1381020400,), (1381020401,), (1381020402,), (1381020403,), (1381020440,), (1381020441,), (1381020442,), (1381020443,), (1381020482,), (1381020483,), (1381020484,), (1381020485,), (1381020486,), (1381020487,), (1381020529,), (1381020530,), (1381020531,), (1381020532,), (1381020533,), (1381020583,), (1381020622,), (1381020582,), (1381020618,), (1381020619,), (1381020620,), (1381020621,), (1381020676,), (1381020677,), (1381020678,), (1381020679,), (1381020680,), (1381020726,), (1381020772,), (1381020773,), (1381020774,), (1381020807,), (1381020808,), (1381020860,), (1381020861,), (1381020862,), (1381020863,), (1381020911,), (1381020913,), (1381020914,), (1381021014,), (1381021015,), (1381021016,), (1381021017,), (1381021018,), (1381021061,), (1381021062,), (1381021063,), (1381021064,), (1381021065,), (1381021109,), (1381021110,), (1381021111,), (1381021112,), (1381021113,), (1381021114,), (1381021182,), (1381021183,), (1381021184,), (1381021185,), (1381021186,), (1381021187,), (1381021194,), (1381021195,), (1381021197,), (1381021199,), (1381021237,), (1381021238,), (1381021240,), (1381021242,), (1381021244,), (1381021295,), (1381021296,), (1381021297,), (1381021298,), (1381021348,), (1381021349,), (1381021350,), (1381021351,), (1381021352,), (1381021393,), (1381021391,), (1381021392,), (1381021437,), (1381021438,), (1381021439,), (1381021440,), (1381021441,), (1381021442,), (1381021477,), (1381021478,), (1381021479,), (1381021480,), (1381021481,), (1381021524,), (1381021525,), (1381021527,), (1381021529,), (1381021531,), (1381021578,), (1381021579,), (1381021580,), (1381021627,), (1381021628,), (1381021629,), (1381021630,), (1381021631,), (1381021632,), (1381021664,), (1381021665,), (1381021666,), (1381021667,), (1381021668,), (1381021669,), (1381021673,), (1381021674,), (1381021675,), (1381021676,), (1381021677,), (1381021718,), (1381021719,), (1381021720,), (1381021721,), (1381021722,), (1381021723,), (1381021760,), (1381021761,), (1381021762,), (1381021813,), (1381021814,), (1381021815,), (1381021816,), (1381021848,), (1381021850,), (1381021852,), (1381021853,), (1381021854,), (1381021856,), (1381021909,), (1381021910,), (1381021911,), (1381021912,), (1381021913,), (1381021949,), (1381021950,), (1381021951,), (1381021990,), (1381021991,), (1381022034,), (1381022035,), (1381022036,), (1381022037,), (1381022038,), (1381022039,), (1381022083,), (1381022090,), (1381022091,), (1381022092,), (1381022093,), (1381022094,), (1381022095,), (1381022077,), (1381022078,), (1381022079,), (1381022080,), (1381022081,), (1381022116,), (1381022117,), (1381022118,), (1381022119,), (1381022120,), (1381022160,), (1381022191,), (1381022194,), (1381022196,), (1381022198,), (1381022228,), (1381022229,), (1381022230,), (1381022231,), (1381022262,), (1381022263,), (1381022264,), (1381022265,), (1381022316,), (1381022317,), (1381022318,), (1381022319,), (1381022359,), (1381022360,), (1381022361,), (1381022412,), (1381022413,), (1381022414,), (1381022415,), (1381022456,), (1381022457,), (1381022458,), (1381022459,), (1381022460,), (1381022461,), (1381022496,), (1381022497,), (1381022498,), (1381022500,), (1381022501,), (1381022502,), (1381022510,), (1381022511,), (1381022512,), (1381022513,), (1381022536,), (1381022537,), (1381022538,), (1381022539,), (1381022540,), (1381022541,), (1381022604,), (1381022606,), (1381022608,), (1381022610,), (1381022612,), (1381023409,), (1381023413,), (1381023417,), (1381023420,), (1381023532,), (1381023535,), (1381023538,), (1381023542,), (1381024006,), (1381024000,), (1381024002,), (1381024004,), (1381024110,), (1381024111,), (1381024112,), (1381024452,), (1381024455,), (1381024458,), (1381024917,), (1381024919,), (1381024921,), (1381024923,), (1381024925,), (1381025286,), (1381025288,), (1381025290,), (1381025292,), (1381025523,), (1381025524,), (1381025525,), (1381025526,), (1381025527,), (1381025528,), (1381025532,), (1381025713,), (1381025714,), (1381025826,), (1381025827,), (1381025828,), (1381025829,), (1381025830,), (1381025831,), (1381025897,), (1381025898,), (1381025899,), (1381025900,), (1381025901,), (1381025934,), (1381025935,), (1381025936,), (1381025970,), (1381025971,), (1381025972,), (1381026013,), (1381026014,), (1381026015,), (1381026016,), (1381026017,), (1381026065,), (1381026066,), (1381026067,), (1381026068,), (1381026124,), (1381026125,), (1381026126,), (1381026127,), (1381026128,), (1381026176,), (1381026177,), (1381026178,), (1381026200,), (1381026201,), (1381026202,), (1381026206,), (1381026197,), (1381026198,), (1381026199,), (1381026223,), (1381026224,), (1381026225,), (1381026226,), (1381026266,), (1381026267,), (1381026268,), (1381026269,), (1381026337,), (1381026338,), (1381026339,), (1381026340,), (1381026375,), (1381026376,), (1381026377,), (1381026378,), (1381026429,), (1381026430,), (1381026431,), (1381026432,), (1381026433,), (1381026468,), (1381026469,), (1381026470,), (1381026471,), (1381026508,), (1381026509,), (1381026510,), (1381026511,), (1381026512,), (1381026549,), (1381026550,), (1381026551,), (1381026573,), (1381026574,), (1381026575,), (1381026576,), (1381026577,), (1381026578,), (1381026584,), (1381026585,), (1381026608,), (1381026609,), (1381026610,), (1381026651,), (1381026652,), (1381026653,), (1381026654,), (1381026715,), (1381026716,), (1381026717,), (1381026718,), (1381026719,), (1381026760,), (1381026761,), (1381026762,), (1381026817,), (1381026814,), (1381026815,), (1381026816,), (1381026856,), (1381026857,), (1381026858,), (1381026859,), (1381026893,), (1381026947,), (1381026948,), (1381026949,), (1381026950,), (1381026951,), (1381026981,), (1381026982,), (1381026998,), (1381027000,), (1381027029,), (1381027030,), (1381027031,), (1381027066,), (1381027067,), (1381027068,), (1381027069,), (1381027070,), (1381027071,), (1381027105,), (1381027106,), (1381027107,), (1381027108,), (1381027109,), (1381027142,), (1381027145,), (1381027146,), (1381027181,), (1381027218,), (1381027257,), (1381027258,), (1381027298,), (1381027299,), (1381027300,), (1381027301,), (1381027302,), (1381027341,), (1381027342,), (1381027343,), (1381027359,), (1381027360,), (1381027362,), (1381027363,), (1381027357,), (1381027358,), (1381027386,), (1381027387,), (1381027388,), (1381027389,), (1381027390,), (1381027391,), (1381027431,), (1381027432,), (1381027433,), (1381027434,), (1381027435,), (1381027471,), (1381027472,), (1381027473,), (1381027474,), (1381027475,), (1381027509,), (1381027510,), (1381027549,), (1381027586,), (1381027587,), (1381027623,), (1381027624,), (1381027625,), (1381027657,), (1381027658,), (1381027659,), (1381027660,), (1381027699,), (1381027700,), (1381027701,), (1381027702,), (1381027703,), (1381027704,), (1381027717,), (1381027718,), (1381027720,), (1381027721,), (1381027722,), (1381027723,), (1381027727,), (1381027728,), (1381027729,), (1381027805,), (1381027807,), (1381027809,), (1381027810,), (1381027812,), (1381028128,), (1381028130,), (1381028132,), (1381028134,), (1381028136,), (1381028137,), (1381028204,), (1381028205,), (1381028249,), (1381028245,), (1381028247,), (1381028286,), (1381028287,), (1381028288,), (1381028289,), (1381028290,), (1381028291,), (1381028332,), (1381028333,), (1381028334,), (1381028335,), (1381028336,), (1381028701,), (1381028704,), (1381029420,), (1381029421,), (1381029425,), (1381029427,), (1381030179,), (1381030183,), (1381030186,), (1381030190,), (1381030193,), (1381030197,), (1381030289,), (1381030292,), (1381030580,), (1381030581,), (1381030582,), (1381030583,), (1381030584,), (1381030585,), (1381030775,), (1381030776,), (1381030777,), (1381031394,), (1381031466,), (1381031467,), (1381031468,), (1381031469,), (1381031470,), (1381031509,), (1381031510,), (1381031511,), (1381031512,), (1381031513,), (1381031588,), (1381031600,), (1381031601,), (1381031602,), (1381031642,), (1381031643,), (1381031644,), (1381031645,), (1381031692,), (1381031740,), (1381031741,), (1381031737,), (1381031738,), (1381031844,), (1381031845,), (1381031846,), (1381031847,), (1381031848,), (1381031849,), (1381032050,), (1381032051,), (1381032052,), (1381032093,), (1381032094,), (1381032150,), (1381032151,), (1381032234,), (1381032357,), (1381032399,), (1381032402,), (1381032404,), (1381032406,), (1381032408,), (1381032567,), (1381032568,), (1381032569,), (1381032570,), (1381032604,), (1381032605,), (1381032606,), (1381032607,), (1381032608,), (1381032609,), (1381032615,), (1381032616,), (1381032711,), (1381032713,), (1381032715,), (1381032717,), (1381032853,), (1381032854,), (1381032855,), (1381032856,), (1381032857,), (1381032904,), (1381032905,), (1381032906,), (1381032907,), (1381032908,), (1381032954,), (1381033011,), (1381033001,), (1381033245,), (1381033246,), (1381034310,), (1381034485,), (1381034486,), (1381034487,), (1381034891,), (1381034892,), (1381034893,), (1381034894,), (1381035019,), (1381035020,), (1381035021,), (1381035022,), (1381035023,), (1381035024,), (1381035071,), (1381035072,), (1381035073,), (1381035168,), (1381035169,), (1381035171,), (1381035274,), (1381035279,), (1381035280,), (1381035281,), (1381035269,), (1381035270,), (1381035271,), (1381035272,), (1381035273,), (1381035579,), (1381035580,), (1381035582,), (1381035583,), (1381035584,), (1381035828,), (1381035829,), (1381035830,), (1381035831,), (1381035933,), (1381035934,), (1381035935,), (1381035936,), (1381035937,), (1381035938,), (1381036094,), (1381036096,), (1381036098,), (1381036100,), (1381036396,), (1381036397,), (1381036398,), (1381036399,), (1381036680,), (1381036681,), (1381036890,), (1381036891,), (1381036892,), (1381036893,), (1381036894,), (1381036895,), (1381037242,), (1381037244,), (1381037246,), (1381037249,), (1381037251,), (1381037253,), (1381037313,), (1381037314,), (1381037315,), (1381037316,), (1381037317,), (1381037318,), (1381037400,), (1381037401,), (1381037402,), (1381037536,), (1381037537,), (1381037538,), (1381037539,), (1381037540,), (1381037541,), (1381037686,), (1381037687,), (1381037688,), (1381037689,), (1381037690,), (1381037691,), (1381037830,), (1381037825,), (1381037827,), (1381039045,), (1381039049,), (1381039875,), (1381041286,), (1381041745,), (1381041874,), (1381042401,), (1381041925,), (1381042399,), (1381042400,), (1381042645,), (1381042709,), (1381042710,), (1381042745,), (1381042746,), (1381042747,), (1381042748,), (1381042749,), (1381042750,), (1381042756,), (1381042864,), (1381042865,), (1381042866,), (1381042867,), (1381042868,), (1381042914,), (1381042915,), (1381042916,), (1381042917,), (1381042918,), (1381043080,), (1381043082,), (1381043084,), (1381043208,), (1381043203,), (1381043204,), (1381043205,), (1381043206,), (1381043207,), (1381043250,), (1381043252,), (1381043254,), (1381043256,), (1381043258,), (1381043260,), (1381043591,), (1381043593,), (1381043594,), (1381043643,), (1381043644,), (1381043645,), (1381043695,), (1381043696,), (1381043697,), (1381043698,), (1381043699,), (1381043764,), (1381043765,), (1381043766,), (1381043767,), (1381043768,), (1381043790,), (1381043791,), (1381043792,), (1381043793,), (1381043794,), (1381043795,), (1381043801,), (1381043802,), (1381043840,), (1381043841,), (1381043842,), (1381043843,), (1381043911,), (1381043912,), (1381044063,), (1381044064,), (1381044065,), (1381044120,), (1381044121,), (1381044122,), (1381044123,), (1381044171,), (1381044172,), (1381044173,), (1381044174,), (1381044210,), (1381044211,), (1381044252,), (1381044253,), (1381044254,), (1381044255,), (1381044256,), (1381044294,), (1381044295,), (1381044332,), (1381044365,), (1381044330,), (1381044331,), (1381044359,), (1381044360,), (1381044362,), (1381044363,), (1381044364,), (1381044408,), (1381044409,), (1381044410,), (1381044713,), (1381044854,), (1381044855,), (1381044856,), (1381044893,), (1381044894,), (1381044895,), (1381044896,), (1381044897,), (1381044939,), (1381044940,), (1381044941,), (1381044942,), (1381044982,), (1381044983,), (1381044984,), (1381044985,), (1381044986,), (1381045033,), (1381045034,), (1381045035,), (1381045036,), (1381045037,), (1381045038,), (1381045069,), (1381045070,), (1381045071,), (1381045072,), (1381045073,), (1381045100,), (1381045101,), (1381045102,), (1381045103,), (1381045104,), (1381045105,), (1381045113,), (1381045115,), (1381045117,), (1381045119,), (1381045145,), (1381045146,), (1381045147,), (1381045148,), (1381045249,), (1381046491,), (1381046493,), (1381046535,), (1381046536,), (1381046537,), (1381046538,), (1381046540,), (1381046541,), (1381046577,), (1381046578,), (1381046579,), (1381046624,), (1381046625,), (1381046626,), (1381046627,), (1381046656,), (1381046657,), (1381046658,), (1381046659,), (1381046660,), (1381046681,), (1381046682,), (1381046683,), (1381046685,), (1381046686,), (1381046687,), (1381046694,), (1381046695,), (1381046696,), (1381046697,), (1381046727,), (1381046728,), (1381046729,), (1381046730,), (1381046770,), (1381046771,), (1381046772,), (1381046773,), (1381046808,), (1381046809,), (1381046810,), (1381046811,), (1381046871,), (1381046872,), (1381046873,), (1381046939,), (1381046940,), (1381046941,), (1381046942,), (1381046991,), (1381046992,), (1381046993,), (1381046994,), (1381046995,), (1381047344,), (1381047342,), (1381047343,), (1381047409,), (1381047410,), (1381047411,), (1381047412,), (1381047413,), (1381047414,), (1381047479,), (1381047480,), (1381047481,), (1381047482,), (1381047483,), (1381047545,), (1381047546,), (1381047547,), (1381047548,), (1381047549,), (1381047664,), (1381047666,), (1381047668,), (1381047669,), (1381047670,), (1381047778,), (1381047779,), (1381047780,), (1381047781,), (1381047782,), (1381048142,), (1381048143,), (1381048144,), (1381048145,), (1381048146,), (1381048147,), (1381048300,), (1381048301,), (1381048302,), (1381048303,), (1381048304,), (1381048585,), (1381048586,), (1381048587,), (1381048588,), (1381048589,), (1381048590,), (1381048713,), (1381048715,), (1381048717,), (1381048885,), (1381048886,), (1381048887,), (1381049065,), (1381049079,), (1381049080,), (1381049081,), (1381050256,), (1381050474,), (1381051047,), (1381053734,), (1381053737,), (1381054357,), (1381054359,), (1381054361,), (1381054364,), (1381054366,), (1381054825,), (1381054827,), (1381054829,), (1381054831,), (1381054833,), (1381055074,), (1381055075,), (1381055076,), (1381055077,), (1381055323,), (1381055324,), (1381055325,), (1381055326,), (1381055735,), (1381055740,), (1381055744,), (1381055749,), (1381055977,), (1381055979,), (1381056081,), (1381056082,), (1381056083,), (1381056084,), (1381056273,), (1381056275,), (1381056276,), (1381056277,), (1381056278,), (1381056636,), (1381057002,), (1381056628,), (1381056630,), (1381056632,), (1381056634,), (1381056947,), (1381056950,), (1381056953,), (1381056956,), (1381056959,), (1381056963,), (1381056996,), (1381056998,), (1381057000,), (1381057290,), (1381057291,), (1381057292,), (1381057293,), (1381057294,), (1381057441,), (1381057443,), (1381057445,), (1381057447,), (1381057449,), (1381057451,), (1381057682,), (1381057683,), (1381057684,), (1381057685,), (1381057686,), (1381058125,), (1381058128,), (1381058509,), (1381058510,), (1381058511,), (1381058513,), (1381058514,), (1381058515,), (1381058688,), (1381058689,), (1381058690,), (1381058691,), (1381058692,), (1381058868,), (1381058869,), (1381058870,), (1381058871,), (1381058872,), (1381058926,), (1381058927,), (1381058929,), (1381058930,), (1381058932,), (1381058933,), (1381059021,), (1381059024,), (1381059026,), (1381059028,), (1381059030,), (1381059460,), (1381059462,), (1381059465,), (1381059467,), (1381059469,), (1381059471,), (1381059533,), (1381059536,), (1381059539,), (1381060035,), (1381060038,), (1381060041,), (1381060044,), (1381060047,), (1381060050,), (1381060504,), (1381060505,), (1381060506,), (1381060507,), (1381060508,), (1381060814,), (1381060816,), (1381060818,), (1381060820,), (1381060823,), (1381060824,), (1381061033,), (1381061028,), (1381061030,), (1381061031,), (1381061032,), (1381061086,), (1381061087,), (1381061088,), (1381061089,), (1381061090,), (1381061091,), (1381061154,), (1381061155,), (1381061156,), (1381061157,), (1381061204,), (1381061205,), (1381061206,), (1381061207,), (1381061208,), (1381061381,), (1381061382,), (1381061383,), (1381061384,), (1381061385,), (1381061386,), (1381061566,), (1381061567,), (1381061568,), (1381061661,), (1381061662,), (1381061663,), (1381061664,), (1381061665,), (1381061666,), (1381061722,), (1381061723,), (1381061724,), (1381061725,), (1381061726,), (1381062107,), (1381062111,), (1381062116,), (1381062119,), (1381062247,), (1381062251,), (1381062255,), (1381062257,), (1381062258,), (1381062259,), (1381062351,), (1381062352,), (1381062353,), (1381062416,), (1381062417,), (1381062418,), (1381062419,), (1381062420,), (1381062422,), (1381062473,), (1381062474,), (1381062475,), (1381062476,), (1381062477,), (1381062524,), (1381062601,), (1381062519,), (1381062520,), (1381062521,), (1381062522,), (1381062523,), (1381062567,), (1381062568,), (1381062569,), (1381062570,), (1381062571,), (1381062572,), (1381062590,), (1381062592,), (1381062594,), (1381062596,), (1381062598,), (1381062648,), (1381062649,), (1381062650,), (1381062651,), (1381062652,), (1381062740,), (1381062742,), (1381062744,), (1381062746,), (1381062748,), (1381062750,), (1381062910,), (1381062912,), (1381062914,), (1381062916,), (1381062918,), (1381063013,), (1381063017,), (1381063021,), (1381063022,), (1381063023,), (1381063024,), (1381063174,), (1381063175,), (1381063176,), (1381063177,), (1381063178,), (1381063263,), (1381063264,), (1381063265,), (1381063424,), (1381063484,), (1381063485,), (1381063486,), (1381063487,), (1381063488,), (1381063489,), (1381063558,), (1381063559,), (1381063560,), (1381063561,), (1381063562,), (1381064391,), (1381064395,), (1381064399,), (1381064404,), (1381064410,), (1381064417,), (1381065356,), (1381065348,), (1381065350,), (1381065352,), (1381065354,), (1381065879,), (1381065883,), (1381065886,), (1381065889,), (1381066334,), (1381066336,), (1381066338,), (1381066340,), (1381066342,), (1381066344,), (1381066784,), (1381066786,), (1381066788,), (1381066790,), (1381066887,), (1381066888,), (1381066889,), (1381066890,), (1381066891,), (1381066941,), (1381066942,), (1381066943,), (1381066944,), (1381066945,), (1381066946,), (1381066983,), (1381066984,), (1381066985,), (1381067069,), (1381067070,), (1381067071,), (1381067123,), (1381067124,), (1381067125,), (1381067126,), (1381067127,), (1381067182,), (1381067183,), (1381067184,), (1381067185,), (1381067186,), (1381067249,), (1381067250,), (1381067251,), (1381067252,), (1381067326,), (1381067327,), (1381067328,), (1381067329,), (1381067330,), (1381067331,), (1381067374,), (1381067375,), (1381067376,), (1381067377,), (1381067378,), (1381067428,), (1381067429,), (1381067430,), (1381067647,), (1381067648,), (1381067649,), (1381067650,), (1381067651,), (1381067652,), (1381067958,), (1381068236,), (1381067950,), (1381067952,), (1381067954,), (1381067956,), (1381068203,), (1381068204,), (1381068206,), (1381068207,), (1381068208,), (1381068209,), (1381068231,), (1381068233,), (1381068274,), (1381068276,), (1381068277,), (1381068278,), (1381068279,), (1381068511,), (1381068513,), (1381068515,), (1381068517,), (1381068519,), (1381068879,), (1381068882,), (1381068885,), (1381068888,), (1381068986,), (1381068987,), (1381068988,), (1381068989,), (1381068990,), (1381069121,), (1381069122,), (1381069123,), (1381069124,), (1381069126,), (1381069186,), (1381069187,), (1381069188,), (1381069189,), (1381069288,), (1381069289,), (1381069290,), (1381069291,), (1381069665,), (1381069667,), (1381069669,), (1381069727,), (1381069728,), (1381069729,), (1381069797,), (1381069799,), (1381069800,), (1381069801,), (1381069802,), (1381069803,), (1381069807,), (1381069848,), (1381069849,), (1381069850,), (1381069851,), (1381069892,), (1381069893,), (1381069894,), (1381069895,), (1381069896,), (1381070020,), (1381070021,), (1381070022,), (1381070023,), (1381070024,), (1381070025,), (1381070082,), (1381070079,), (1381070080,), (1381070081,), (1381070137,), (1381070142,), (1381070145,), (1381070146,), (1381070147,), (1381070200,), (1381070201,), (1381070241,), (1381070242,), (1381070243,), (1381070283,), (1381070284,), (1381070285,), (1381070842,), (1381070844,), (1381070846,), (1381071310,), (1381071312,), (1381071313,), (1381071314,), (1381071315,), (1381071316,), (1381071322,), (1381071324,), (1381071650,), (1381071652,), (1381071654,), (1381071656,), (1381071993,), (1381071994,), (1381071995,), (1381071997,), (1381072229,), (1381072230,), (1381072231,), (1381072341,), (1381072342,), (1381072343,), (1381072386,), (1381072387,), (1381072388,), (1381072691,), (1381072693,), (1381072924,), (1381072926,), (1381073156,), (1381073157,), (1381073158,), (1381073811,), (1381073808,), (1381074239,), (1381074241,), (1381074243,), (1381074245,), (1381074247,), (1381074501,), (1381074502,), (1381074503,), (1381074504,), (1381074505,), (1381074711,), (1381074713,), (1381074715,), (1381074717,), (1381074719,), (1381074721,), (1381075020,), (1381075021,), (1381075022,), (1381075023,), (1381075024,), (1381075211,), (1381075212,), (1381075213,), (1381075214,), (1381075216,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03092025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26484362]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] map_info['map_portfolio_photo'] : {26484362: [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020, 1381074721, 1381074719, 1381074717, 1381074715, 1381074713, 1381074711, 1381074505, 1381074504, 1381074503, 1381074502, 1381074501, 1381074247, 1381074245, 1381074243, 1381074241, 1381074239, 1381073808]} final : True mtd_id 4302 list_pids : [1381075216, 1381075214, 1381075213, 1381075212, 1381075211, 1381075024, 1381075023, 1381075022, 1381075021, 1381075020] Looping around the photos to save general results len do output : 1 /26484362Didn'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, '3658394') ('4302', '26484362', '1381075216', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394') ('4302', None, None, None, None, None, None, None, '3658394') ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '26484362', 'None', None, None, None, None, '3658394'), ('4302', '26484362', '1381075216', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075214', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075213', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075212', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075211', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075024', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075023', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075022', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075021', None, None, None, None, None, '3658394'), ('4302', '26484362', '1381075020', None, None, None, None, None, '3658394')] time used for this insertion : 0.02108168601989746 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.457270383834839 time spend to save output : 0.021259784698486328 total time spend for step 5 : 2.478530168533325 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 (3658394) 2.17user 2.55system 0:09.89elapsed 47%CPU (0avgtext+0avgdata 160196maxresident)k 168inputs+6232outputs (4major+64236minor)pagefaults 0swaps