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 : 3925903 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 (2953526) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2953526) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336428 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2953526'] with mtr_portfolio_ids : ['23336428'] and first list_photo_ids : [] new path : /proc/3925903/ Name: python3 Umask: 0002 State: R (running) Tgid: 3925903 Ngid: 0 Pid: 3925903 PPid: 3925902 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3925903 NSpid: 3925903 NSpgid: 3922176 NSsid: 3922176 VmPeak: 1107760 kB VmSize: 1107760 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99028 kB VmRSS: 99028 kB RssAnon: 60488 kB RssFile: 38540 kB RssShmem: 0 kB VmData: 866508 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3925903', 'Ngid': '0', 'Pid': '3925903', 'PPid': '3925902', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3925903', 'NSpid': '3925903', 'NSpgid': '3922176', 'NSsid': '3922176', 'VmPeak': '1107760 kB', 'VmSize': '1107760 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99028 kB', 'VmRSS': '99028 kB', 'RssAnon': '60488 kB', 'RssFile': '38540 kB', 'RssShmem': '0 kB', 'VmData': '866508 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '3925903', '1107760', '0', '1107760', '866508', '99028', b'', 'marlene', '2953526') 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 (23336428) 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 (2953526 ) ) 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 (23336428) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361076014, 'portfolio_id': 23336428}, {'photo_id': 1361075956, 'portfolio_id': 23336428}, {'photo_id': 1361075949, 'portfolio_id': 23336428}, {'photo_id': 1361075946, 'portfolio_id': 23336428}, {'photo_id': 1361075940, 'portfolio_id': 23336428}, {'photo_id': 1361075895, 'portfolio_id': 23336428}, {'photo_id': 1361075890, 'portfolio_id': 23336428}, {'photo_id': 1361075886, 'portfolio_id': 23336428}, {'photo_id': 1361075882, 'portfolio_id': 23336428}, {'photo_id': 1361075698, 'portfolio_id': 23336428}, {'photo_id': 1361075694, 'portfolio_id': 23336428}, {'photo_id': 1361075585, 'portfolio_id': 23336428}, {'photo_id': 1361075580, 'portfolio_id': 23336428}, {'photo_id': 1361075574, 'portfolio_id': 23336428}, {'photo_id': 1361075569, 'portfolio_id': 23336428}, {'photo_id': 1361075565, 'portfolio_id': 23336428}, {'photo_id': 1361075562, 'portfolio_id': 23336428}, {'photo_id': 1361075544, 'portfolio_id': 23336428}, {'photo_id': 1361075538, 'portfolio_id': 23336428}, {'photo_id': 1361075532, 'portfolio_id': 23336428}, {'photo_id': 1361075526, 'portfolio_id': 23336428}, {'photo_id': 1361075521, 'portfolio_id': 23336428}, {'photo_id': 1361075518, 'portfolio_id': 23336428}, {'photo_id': 1361075487, 'portfolio_id': 23336428}, {'photo_id': 1361075484, 'portfolio_id': 23336428}, {'photo_id': 1361075480, 'portfolio_id': 23336428}, {'photo_id': 1361075447, 'portfolio_id': 23336428}, {'photo_id': 1361075444, 'portfolio_id': 23336428}, {'photo_id': 1361075424, 'portfolio_id': 23336428}, {'photo_id': 1361075394, 'portfolio_id': 23336428}, {'photo_id': 1361075365, 'portfolio_id': 23336428}, {'photo_id': 1361075351, 'portfolio_id': 23336428}, {'photo_id': 1361075217, 'portfolio_id': 23336428}, {'photo_id': 1361075196, 'portfolio_id': 23336428}, {'photo_id': 1361075057, 'portfolio_id': 23336428}, {'photo_id': 1361075054, 'portfolio_id': 23336428}, {'photo_id': 1361075052, 'portfolio_id': 23336428}] map_portfolio_id_photo_id: {23336428: [1361076014, 1361075956, 1361075949, 1361075946, 1361075940, 1361075895, 1361075890, 1361075886, 1361075882, 1361075698, 1361075694, 1361075585, 1361075580, 1361075574, 1361075569, 1361075565, 1361075562, 1361075544, 1361075538, 1361075532, 1361075526, 1361075521, 1361075518, 1361075487, 1361075484, 1361075480, 1361075447, 1361075444, 1361075424, 1361075394, 1361075365, 1361075351, 1361075217, 1361075196, 1361075057, 1361075054, 1361075052]} ##### 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.014575958251953125 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon May 26 14:02:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336428) 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 : 23336428 get user id for portfolio 23336428 get sub ptf for main ptf 23336428, type 3726 and hashtags ['Carton_brun', 'flou', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'papier', 'plastique', 'mal_croppe', 'metal', 'autre_refus'] 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`=23336428 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','cartonnette','kraft','Teint_Dans_La_Masse','Carton_gris','environnement','papier','plastique','mal_croppe','metal','autre_refus')) 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`=23336428 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','cartonnette','kraft','Teint_Dans_La_Masse','Carton_gris','environnement','papier','plastique','mal_croppe','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 23336428, 'sub_port_id': 23336441, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565620, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'plastique': {'main_port_id': 23336428, 'sub_port_id': 23336442, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565621, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'environnement': {'main_port_id': 23336428, 'sub_port_id': 23336443, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565622, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'metal': {'main_port_id': 23336428, 'sub_port_id': 23336444, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565623, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'papier': {'main_port_id': 23336428, 'sub_port_id': 23336445, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565624, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'mal_croppe': {'main_port_id': 23336428, 'sub_port_id': 23336446, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565625, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'kraft': {'main_port_id': 23336428, 'sub_port_id': 23336447, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565626, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'flou': {'main_port_id': 23336428, 'sub_port_id': 23336448, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565627, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 23336428, 'sub_port_id': 23336449, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565628, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'Carton_gris': {'main_port_id': 23336428, 'sub_port_id': 23336450, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565629, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'Carton_brun': {'main_port_id': 23336428, 'sub_port_id': 23336451, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565630, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}, 'cartonnette': {'main_port_id': 23336428, 'sub_port_id': 23336452, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565631, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23336441 , 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=23336428 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 (23336441) result : ((1361075459,), (1361076094,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336442 , 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=23336428 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 (23336442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336443 , 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=23336428 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 (23336443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336444 , 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=23336428 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 (23336444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336445 , 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=23336428 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 (23336445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336446 , 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=23336428 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 (23336446) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336447 , 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=23336428 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 (23336447) result : ((1361075876,), (1361075877,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336448 , 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=23336428 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 (23336448) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336449 , 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=23336428 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 (23336449) result : ((1361075457,), (1361075857,), (1361075861,), (1361075862,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336450 , 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=23336428 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 (23336450) result : ((1361075864,), (1361076100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336451 , 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=23336428 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 (23336451) result : ((1361075460,), (1361075871,), (1361075872,), (1361075873,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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 23336452 , 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=23336428 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 (23336452) result : ((1361075868,), (1361075869,), (1361075870,), (1361076101,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23336428) result : ((1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) 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`=23336428 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','cartonnette','kraft','Teint_Dans_La_Masse','Carton_gris','environnement','papier','plastique','mal_croppe','metal','autre_refus')) 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`=23336428 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','cartonnette','kraft','Teint_Dans_La_Masse','Carton_gris','environnement','papier','plastique','mal_croppe','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 23336428, 'sub_port_id': 23336453, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565632, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'plastique': {'main_port_id': 23336428, 'sub_port_id': 23336454, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565633, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'environnement': {'main_port_id': 23336428, 'sub_port_id': 23336455, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565634, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'metal': {'main_port_id': 23336428, 'sub_port_id': 23336456, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565635, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'papier': {'main_port_id': 23336428, 'sub_port_id': 23336457, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565636, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'mal_croppe': {'main_port_id': 23336428, 'sub_port_id': 23336458, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565637, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'kraft': {'main_port_id': 23336428, 'sub_port_id': 23336459, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565638, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'flou': {'main_port_id': 23336428, 'sub_port_id': 23336460, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565639, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 23336428, 'sub_port_id': 23336461, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565640, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'Carton_gris': {'main_port_id': 23336428, 'sub_port_id': 23336462, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565641, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'Carton_brun': {'main_port_id': 23336428, 'sub_port_id': 23336463, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565642, 'last_updated_at': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 13, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}, 'cartonnette': {'main_port_id': 23336428, 'sub_port_id': 23336464, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15565643, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 13, 52, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336448 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336461,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336449 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336462,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336450 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336463,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23336464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23336452 lien utilise dans velours : https://www.fotonower.com/velours/23336453,23336454,23336455,23336456,23336457,23336458,23336459,23336460,23336461,23336462,23336463,23336464?tags=autre_refus,plastique,environnement,metal,papier,mal_croppe,kraft,flou,Teint_Dans_La_Masse,Carton_gris,Carton_brun,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336428]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361076014] map_info['map_portfolio_photo'] : {23336428: [1361076014, 1361075956, 1361075949, 1361075946, 1361075940, 1361075895, 1361075890, 1361075886, 1361075882, 1361075698, 1361075694, 1361075585, 1361075580, 1361075574, 1361075569, 1361075565, 1361075562, 1361075544, 1361075538, 1361075532, 1361075526, 1361075521, 1361075518, 1361075487, 1361075484, 1361075480, 1361075447, 1361075444, 1361075424, 1361075394, 1361075365, 1361075351, 1361075217, 1361075196, 1361075057, 1361075054, 1361075052]} final : False mtd_id 4302 list_pids : [1361076014] Looping around the photos to save general results len do output : 1 /23336428. 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, '2953526') ('4302', '23336428', '1361076014', None, None, None, None, None, '2953526') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '23336428', "{'autre_refus': 23336441, 'plastique': 23336442, 'environnement': 23336443, 'metal': 23336444, 'papier': 23336445, 'mal_croppe': 23336446, 'kraft': 23336447, 'flou': 23336448, 'Teint_Dans_La_Masse': 23336449, 'Carton_gris': 23336450, 'Carton_brun': 23336451, 'cartonnette': 23336452}", None, None, None, None, '2953526'), ('4302', '23336428', '1361076014', None, None, None, None, None, '2953526')] time used for this insertion : 0.011885643005371094 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.387911081314087 time spend to save output : 0.012096166610717773 total time spend for step 1 : 1.4000072479248047 step2:final Mon May 26 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (23336428) 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 23336428 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361075057,1361075054,1361075052,1361075217,1361075196,1361075447,1361075444,1361075424,1361075394,1361075365,1361075351,1361075487,1361075484,1361075480,1361075544,1361075538,1361075532,1361075526,1361075521,1361075518,1361075585,1361075580,1361075574,1361075569,1361075565,1361075562,1361075698,1361075694,1361075895,1361075890,1361075886,1361075882,1361075956,1361075949,1361075946,1361075940,1361076014); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336428]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361076014: ('0.04674909162262245',)} new output for save of step final : {1361076014: ('0.04674909162262245',)} [1361076014] map_info['map_portfolio_photo'] : {23336428: [1361076014, 1361075956, 1361075949, 1361075946, 1361075940, 1361075895, 1361075890, 1361075886, 1361075882, 1361075698, 1361075694, 1361075585, 1361075580, 1361075574, 1361075569, 1361075565, 1361075562, 1361075544, 1361075538, 1361075532, 1361075526, 1361075521, 1361075518, 1361075487, 1361075484, 1361075480, 1361075447, 1361075444, 1361075424, 1361075394, 1361075365, 1361075351, 1361075217, 1361075196, 1361075057, 1361075054, 1361075052]} final : False mtd_id 4302 list_pids : [1361076014] Looping around the photos to save general results len do output : 1 /1361076014.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, '2953526') ('4302', '23336428', '1361076014', None, None, None, None, None, '2953526') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '23336428', '1361076014', '0.04674909162262245', None, None, None, None, '2953526')] time used for this insertion : 0.011469364166259766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06441831588745117 time spend to save output : 0.011633872985839844 total time spend for step 2 : 0.07605218887329102 step3:velours_tree Mon May 26 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23336428: [{'autre_refus': 23336441, 'plastique': 23336442, 'environnement': 23336443, 'metal': 23336444, 'papier': 23336445, 'mal_croppe': 23336446, 'kraft': 23336447, 'flou': 23336448, 'Teint_Dans_La_Masse': 23336449, 'Carton_gris': 23336450, 'Carton_brun': 23336451, 'cartonnette': 23336452}]} input_args_next_step : {23336428: ()} output_args : {23336428: [{'autre_refus': 23336441, 'plastique': 23336442, 'environnement': 23336443, 'metal': 23336444, 'papier': 23336445, 'mal_croppe': 23336446, 'kraft': 23336447, 'flou': 23336448, 'Teint_Dans_La_Masse': 23336449, 'Carton_gris': 23336450, 'Carton_brun': 23336451, 'cartonnette': 23336452}]} args : 23336428 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 : ({'autre_refus': 23336441, 'plastique': 23336442, 'environnement': 23336443, 'metal': 23336444, 'papier': 23336445, 'mal_croppe': 23336446, 'kraft': 23336447, 'flou': 23336448, 'Teint_Dans_La_Masse': 23336449, 'Carton_gris': 23336450, 'Carton_brun': 23336451, 'cartonnette': 23336452},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336428) 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([23336428]) 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.3352630138397217 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.33532166481018066 step4:send_mail_cod Mon May 26 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1361076014: ('0.04674909162262245',)} input_args_next_step : {1361076014: ()} output_args : {1361076014: ('0.04674909162262245',)} args : 1361076014 depend.output_id : 0 complete output_args for input 3 : {23336428: [{'autre_refus': 23336441, 'plastique': 23336442, 'environnement': 23336443, 'metal': 23336444, 'papier': 23336445, 'mal_croppe': 23336446, 'kraft': 23336447, 'flou': 23336448, 'Teint_Dans_La_Masse': 23336449, 'Carton_gris': 23336450, 'Carton_brun': 23336451, 'cartonnette': 23336452}]} input_args_next_step : {1361076014: ('0.04674909162262245',), 23336428: ()} output_args : {23336428: [{'autre_refus': 23336441, 'plastique': 23336442, 'environnement': 23336443, 'metal': 23336444, 'papier': 23336445, 'mal_croppe': 23336446, 'kraft': 23336447, 'flou': 23336448, 'Teint_Dans_La_Masse': 23336449, 'Carton_gris': 23336450, 'Carton_brun': 23336451, 'cartonnette': 23336452}]} args : 23336428 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 :2, first value : ('0.04674909162262245',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336428) 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 (1361076014) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361076014 download finish for photo 1361076014 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P23336428_26-05-2025_14_02_59.pdf 23336441 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=23336441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361075459: '1748260405_1222659_1361075217_f43d3d98f6f188bec14a39c79122fa68_rle_crop_3813079610_0.png', 1361076094: '1748260886_1239325_1361075949_1b046f5a834c0e0ff4dd1b564828f379_rle_crop_3813084554_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/191e67ee3aac789eb1a2ef32b86486c6_95142120.png change filename to text .imagette233364411748260979/ imagette233364411748260979/1748260886_1239325_1361075949_1b046f5a834c0e0ff4dd1b564828f379_rle_crop_3813084554_0.png.png imagette233364411748260979/1748260405_1222659_1361075217_f43d3d98f6f188bec14a39c79122fa68_rle_crop_3813079610_0.png.png imagette233364421748260979/ imagette233364441748260979/ imagette233364461748260979/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/abb135bda1698e1840bf0bfb0c19e36c_92422429.png imagette233364411748260979 23336442 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=23336442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233364421748260979 23336444 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=23336444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233364441748260979 23336446 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=23336446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233364461748260979 23336447 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=23336447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361075876: '1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083077_0.png', 1361075877: '1748260647_1228020_1361075518_077633b0fb12c28aa4025560754670e7_rle_crop_3813083096_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/dcc91d93d7ccd96d645fdc60d97311ed_32086352.png change filename to text .imagette233364471748260979/ imagette233364471748260979/1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083077_0.png.png imagette233364471748260979/1748260647_1228020_1361075518_077633b0fb12c28aa4025560754670e7_rle_crop_3813083096_0.png.png imagette233364481748260979/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a0f2edd90197bb3f305d64db33b063ba_34210444.png imagette233364471748260979 23336448 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=23336448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233364481748260979 23336452 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=23336452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361075868: '1748260647_1228020_1361075538_38a0e68f74fff6f0271c8d217dc4b593_rle_crop_3813083031_0.png', 1361075869: '1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083067_0.png', 1361075870: '1748260647_1228020_1361075518_077633b0fb12c28aa4025560754670e7_rle_crop_3813083091_0.png', 1361076101: '1748260886_1239325_1361075940_0288e743f084c20e49c1b821bf9b1ba5_rle_crop_3813084580_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a601cb8a7e37a3f62039b511214830c7_20561583.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a869352bcfac47c0a26357f05ccd964a_48379858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/4d94f323342a1be06b3ce970c1283540_21916606.png change filename to text .imagette233364521748260979/ imagette233364521748260979/1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083067_0.png.png imagette233364521748260979/1748260647_1228020_1361075518_077633b0fb12c28aa4025560754670e7_rle_crop_3813083091_0.png.png imagette233364521748260979/1748260886_1239325_1361075940_0288e743f084c20e49c1b821bf9b1ba5_rle_crop_3813084580_0.png.png imagette233364521748260979/1748260647_1228020_1361075538_38a0e68f74fff6f0271c8d217dc4b593_rle_crop_3813083031_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/113a06eb5f511466d763e5a3d89e7aab_22571282.png imagette233364521748260979 23336449 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=23336449 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361075457: '1748260405_1222659_1361075054_81625ee96bd4789bd05363cc030cb4e3_rle_crop_3813079632_0.png', 1361075857: '1748260647_1228020_1361075532_44a4ed2ffcc2d1ed3c39ff9a75b5cd43_rle_crop_3813083042_0.png', 1361075861: '1748260647_1228020_1361075532_44a4ed2ffcc2d1ed3c39ff9a75b5cd43_rle_crop_3813083037_0.png', 1361075862: '1748260647_1228020_1361075526_0c34ec9985e3192437ffca733b29788e_rle_crop_3813083052_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/6ed1311af40ae25dc23d9cdc98ca7410_2609779.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/34f7a15c9c1cbb3cf985c76b5f9909ab_89854890.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/3e566352003bea990ecb8ecd482f99c8_74727385.png change filename to text .imagette233364491748260980/ imagette233364491748260980/1748260647_1228020_1361075532_44a4ed2ffcc2d1ed3c39ff9a75b5cd43_rle_crop_3813083037_0.png.png imagette233364491748260980/1748260647_1228020_1361075526_0c34ec9985e3192437ffca733b29788e_rle_crop_3813083052_0.png.png imagette233364491748260980/1748260405_1222659_1361075054_81625ee96bd4789bd05363cc030cb4e3_rle_crop_3813079632_0.png.png imagette233364491748260980/1748260647_1228020_1361075532_44a4ed2ffcc2d1ed3c39ff9a75b5cd43_rle_crop_3813083042_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/2cd8fdfb3478a8eadb80e3a8a95a960d_66728587.png imagette233364491748260980 23336450 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=23336450 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361075864: '1748260647_1228020_1361075518_077633b0fb12c28aa4025560754670e7_rle_crop_3813083090_0.png', 1361076100: '1748260886_1239325_1361075940_0288e743f084c20e49c1b821bf9b1ba5_rle_crop_3813084582_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/bea336e298bc5826cf1980cdaa7889b8_93427011.png change filename to text .imagette233364501748260980/ imagette233364501748260980/1748260886_1239325_1361075940_0288e743f084c20e49c1b821bf9b1ba5_rle_crop_3813084582_0.png.png imagette233364501748260980/1748260647_1228020_1361075518_077633b0fb12c28aa4025560754670e7_rle_crop_3813083090_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/07f57aa6e0b36b01183835b45471a280_19428069.png imagette233364501748260980 23336451 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=23336451 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361075460: '1748260405_1222659_1361075217_f43d3d98f6f188bec14a39c79122fa68_rle_crop_3813079614_0.png', 1361075871: '1748260647_1228020_1361075526_0c34ec9985e3192437ffca733b29788e_rle_crop_3813083053_0.png', 1361075872: '1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083073_0.png', 1361075873: '1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083072_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/9535e0c804305aa0b37e8a6f3a36f69b_62525511.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/5e4d2f672e4937d6b927791b725734f4_97369287.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/4e37d27fe25a299dd71b45d2da0c3b78_85752071.png change filename to text .imagette233364511748260980/ imagette233364511748260980/1748260647_1228020_1361075526_0c34ec9985e3192437ffca733b29788e_rle_crop_3813083053_0.png.png imagette233364511748260980/1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083072_0.png.png imagette233364511748260980/1748260405_1222659_1361075217_f43d3d98f6f188bec14a39c79122fa68_rle_crop_3813079614_0.png.png imagette233364511748260980/1748260647_1228020_1361075521_d795c249df7b02440198e4dc9a86d2a5_rle_crop_3813083073_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/621971ac078c1aaf1fb07126de984943_54388771.png imagette233364511748260980 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23336428 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23336453,23336454,23336455,23336456,23336457,23336458,23336459,23336460,23336461,23336462,23336463,23336464?tags=autre_refus,plastique,environnement,metal,papier,mal_croppe,kraft,flou,Teint_Dans_La_Masse,Carton_gris,Carton_brun,cartonnette your option no_mail is active, we will not send the real mail to your client args[1361076014] : ('0.04674909162262245',) no score found for photo 1361076014 We are sending mail with results at report@fotonower.com refus_total : 0.04674909162262245 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=23336428 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_P23336428_26-05-2025_14_02_59.pdf results_Auto_P23336428_26-05-2025_14_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23336428','results_Auto_P23336428_26-05-2025_14_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf','pdf','','0.08','0.04674909162262245') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336428]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361076014] map_info['map_portfolio_photo'] : {23336428: [1361076014, 1361075956, 1361075949, 1361075946, 1361075940, 1361075895, 1361075890, 1361075886, 1361075882, 1361075698, 1361075694, 1361075585, 1361075580, 1361075574, 1361075569, 1361075565, 1361075562, 1361075544, 1361075538, 1361075532, 1361075526, 1361075521, 1361075518, 1361075487, 1361075484, 1361075480, 1361075447, 1361075444, 1361075424, 1361075394, 1361075365, 1361075351, 1361075217, 1361075196, 1361075057, 1361075054, 1361075052]} final : False mtd_id 4302 list_pids : [1361076014] 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, '2953526') ('4302', '23336428', '1361076014', None, None, None, None, None, '2953526') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '23336428', '1361076014', None, None, None, None, None, '2953526')] time used for this insertion : 0.012908458709716797 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.266296148300171 time spend to save output : 0.013081073760986328 total time spend for step 4 : 2.2793772220611572 step5:split_time_score Mon May 26 14:03:01 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 : ['23336428'] 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 : [('23336428',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23336428) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361076014: {'path': 'temp/1748260979_3925903_1361076014_03316de2b40e66df0b2c3702e56cb17e.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 = 23336428; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 23336428 group by h (('13', 37),) 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=23336428 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 (23336428) 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 (23336428) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26052025 23336428 Nombre de photos uploadées : 37 / 23040 (0%) 26052025 23336428 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 26052025 23336428 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1361075057, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/140fb28adfcb7fa279b1a5a279c1ac31.jpg', 'username': None, 'uploaded_at': 1748260268, 'text': 'image_26052025_13_47_53_10138.jpg'}, {'photo_id': 1361075054, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/81625ee96bd4789bd05363cc030cb4e3.jpg', 'username': None, 'uploaded_at': 1748260268, 'text': 'image_26052025_13_50_34_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361075052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/656f7643a5fa32f6de8c6c0273e2e480.jpg', 'username': None, 'uploaded_at': 1748260268, 'text': 'image_26052025_13_50_44_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361075217, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/f43d3d98f6f188bec14a39c79122fa68.jpg', 'username': None, 'uploaded_at': 1748260328, 'text': 'image_26052025_13_50_54_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001394510269165039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23336428, '2025-05-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1834524,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025545835494995117 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= 1834524 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23319692, 'dashboard_result_id': 10894886, '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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23319847, 'dashboard_result_id': 10894887, '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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23320077, 'dashboard_result_id': 10894888, '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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325134, 'dashboard_result_id': 10894889, '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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23320531, 'dashboard_result_id': 10894890, '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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23321016, 'dashboard_result_id': 10894891, '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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325136, 'dashboard_result_id': 10894893, '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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23321495, 'dashboard_result_id': 10894895, '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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23321641, 'dashboard_result_id': 10894897, '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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325138, 'dashboard_result_id': 10894898, '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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23322061, 'dashboard_result_id': 10894899, '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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325141, 'dashboard_result_id': 10894900, '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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23322562, 'dashboard_result_id': 10894901, '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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23323551, 'dashboard_result_id': 10894902, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23323111, 'dashboard_result_id': 10894903, '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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23323520, 'dashboard_result_id': 10894904, '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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23323923, 'dashboard_result_id': 10894905, '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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23324068, 'dashboard_result_id': 10894906, '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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23324122, 'dashboard_result_id': 10894907, '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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23324402, 'dashboard_result_id': 10894908, '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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23324563, 'dashboard_result_id': 10894909, '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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325143, 'dashboard_result_id': 10894910, '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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325201, 'dashboard_result_id': 10894911, '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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23325821, 'dashboard_result_id': 10894912, '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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23326708, 'dashboard_result_id': 10894913, '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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23327651, 'dashboard_result_id': 10894914, '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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23328708, 'dashboard_result_id': 10894915, '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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23334996, 'dashboard_result_id': 10894916, '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_P23334996_26-05-2025_13_27_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335008, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23335603, 'dashboard_result_id': 10894917, '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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1842980, 'mtr_portfolio_id': 23336428, 'dashboard_result_id': 10894918, '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_P23336428_26-05-2025_14_01_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, '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 = 23319692 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': 2948214, 'mtr_portfolio_id': 23319692, 'created_at': datetime.datetime(2025, 5, 26, 11, 17, 29), 'result': '0.02519662063444177', 'result_long': None, 'result_double': None}] Qualite : 0.02519662063444177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319692 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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}" where mtr_portfolio_id = 23319692 and dashboard_run_id = 1842980 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`=23319692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894886, 0.02519662063444177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, '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 = 23319847 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': 2948254, 'mtr_portfolio_id': 23319847, 'created_at': datetime.datetime(2025, 5, 26, 5, 33, 33), 'result': '0.04429005484375135', 'result_long': None, 'result_double': None}] Qualite : 0.04429005484375135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319847 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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}" where mtr_portfolio_id = 23319847 and dashboard_run_id = 1842980 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`=23319847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894887, 0.04429005484375135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, '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 = 23320077 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': 2948365, 'mtr_portfolio_id': 23320077, 'created_at': datetime.datetime(2025, 5, 26, 11, 16, 28), 'result': '0.03387753435924145', 'result_long': None, 'result_double': None}] Qualite : 0.03387753435924145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320077 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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}" where mtr_portfolio_id = 23320077 and dashboard_run_id = 1842980 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`=23320077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894888, 0.03387753435924145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, '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 = 23325134 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': 2951444, 'mtr_portfolio_id': 23325134, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 30), 'result': '0.04692466993136173', 'result_long': None, 'result_double': None}] Qualite : 0.04692466993136173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325134 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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}" where mtr_portfolio_id = 23325134 and dashboard_run_id = 1842980 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`=23325134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894889, 0.04692466993136173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, '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 = 23320531 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': 2948625, 'mtr_portfolio_id': 23320531, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 59), 'result': '0.05544331765388143', 'result_long': None, 'result_double': None}] Qualite : 0.05544331765388143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320531 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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}" where mtr_portfolio_id = 23320531 and dashboard_run_id = 1842980 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`=23320531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894890, 0.05544331765388143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, '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 = 23321016 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': 2948863, 'mtr_portfolio_id': 23321016, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 31), 'result': '0.0894193868825305', 'result_long': None, 'result_double': None}] Qualite : 0.0894193868825305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321016 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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}" where mtr_portfolio_id = 23321016 and dashboard_run_id = 1842980 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`=23321016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894891, 0.0894193868825305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, '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 = 23325136 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': 2951445, 'mtr_portfolio_id': 23325136, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 1), 'result': '0.022613860282363396', 'result_long': None, 'result_double': None}] Qualite : 0.022613860282363396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325136 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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}" where mtr_portfolio_id = 23325136 and dashboard_run_id = 1842980 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`=23325136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894893, 0.022613860282363396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, '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 = 23321495 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 = 23321495 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 = 23321495 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23321495 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 = 23321495 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 = 23321495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321495_26-05-2025_11_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321495 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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}" where mtr_portfolio_id = 23321495 and dashboard_run_id = 1842980 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 = 23321641 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': 2949196, 'mtr_portfolio_id': 23321641, 'created_at': datetime.datetime(2025, 5, 26, 11, 14, 1), 'result': '0.02985346412270691', 'result_long': None, 'result_double': None}] Qualite : 0.02985346412270691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321641 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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}" where mtr_portfolio_id = 23321641 and dashboard_run_id = 1842980 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`=23321641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894897, 0.02985346412270691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, '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 = 23325138 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': 2951446, 'mtr_portfolio_id': 23325138, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 30), 'result': '0.036139356830812215', 'result_long': None, 'result_double': None}] Qualite : 0.036139356830812215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325138 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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}" where mtr_portfolio_id = 23325138 and dashboard_run_id = 1842980 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`=23325138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894898, 0.036139356830812215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, '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 = 23322061 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': 2949486, 'mtr_portfolio_id': 23322061, 'created_at': datetime.datetime(2025, 5, 26, 11, 13, 28), 'result': '0.02602303439189305', 'result_long': None, 'result_double': None}] Qualite : 0.02602303439189305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322061 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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}" where mtr_portfolio_id = 23322061 and dashboard_run_id = 1842980 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`=23322061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894899, 0.02602303439189305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, '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 = 23325141 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': 2951447, 'mtr_portfolio_id': 23325141, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 1), 'result': '0.0429633289857965', 'result_long': None, 'result_double': None}] Qualite : 0.0429633289857965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325141 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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}" where mtr_portfolio_id = 23325141 and dashboard_run_id = 1842980 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`=23325141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894900, 0.0429633289857965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, '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 = 23322562 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': 2949854, 'mtr_portfolio_id': 23322562, 'created_at': datetime.datetime(2025, 5, 26, 11, 12, 29), 'result': '0.02768663961105856', 'result_long': None, 'result_double': None}] Qualite : 0.02768663961105856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322562 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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}" where mtr_portfolio_id = 23322562 and dashboard_run_id = 1842980 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`=23322562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894901, 0.02768663961105856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, '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 = 23323551 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': 2950540, 'mtr_portfolio_id': 23323551, 'created_at': datetime.datetime(2025, 5, 26, 9, 5, 30), 'result': '0.04185348961256268', 'result_long': None, 'result_double': None}] Qualite : 0.04185348961256268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323551 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%23323551%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 23323551 and dashboard_run_id = 1842980 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`=23323551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894902, 0.04185348961256268, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}") 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 = 23323111 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': 2950232, 'mtr_portfolio_id': 23323111, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 58), 'result': '0.05436677666639777', 'result_long': None, 'result_double': None}] Qualite : 0.05436677666639777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323111 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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}" where mtr_portfolio_id = 23323111 and dashboard_run_id = 1842980 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`=23323111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894903, 0.05436677666639777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, '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 = 23323520 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': 2950535, 'mtr_portfolio_id': 23323520, 'created_at': datetime.datetime(2025, 5, 26, 9, 3, 28), 'result': '0.05594342227950576', 'result_long': None, 'result_double': None}] Qualite : 0.05594342227950576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323520 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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}" where mtr_portfolio_id = 23323520 and dashboard_run_id = 1842980 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`=23323520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894904, 0.05594342227950576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, '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 = 23323923 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': 2950727, 'mtr_portfolio_id': 23323923, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 29), 'result': '0.02269183291199363', 'result_long': None, 'result_double': None}] Qualite : 0.02269183291199363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323923 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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}" where mtr_portfolio_id = 23323923 and dashboard_run_id = 1842980 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`=23323923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894905, 0.02269183291199363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, '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 = 23324068 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': 2950787, 'mtr_portfolio_id': 23324068, 'created_at': datetime.datetime(2025, 5, 26, 11, 10, 28), 'result': '0.0338376396467845', 'result_long': None, 'result_double': None}] Qualite : 0.0338376396467845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324068 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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}" where mtr_portfolio_id = 23324068 and dashboard_run_id = 1842980 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`=23324068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894906, 0.0338376396467845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, '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 = 23324122 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': 2950845, 'mtr_portfolio_id': 23324122, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 59), 'result': '0.019603365584841985', 'result_long': None, 'result_double': None}] Qualite : 0.019603365584841985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324122 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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}" where mtr_portfolio_id = 23324122 and dashboard_run_id = 1842980 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`=23324122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894907, 0.019603365584841985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, '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 = 23324402 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': 2951013, 'mtr_portfolio_id': 23324402, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 28), 'result': '0.017948956951831813', 'result_long': None, 'result_double': None}] Qualite : 0.017948956951831813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324402 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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}" where mtr_portfolio_id = 23324402 and dashboard_run_id = 1842980 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`=23324402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894908, 0.017948956951831813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, '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 = 23324563 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': 2951108, 'mtr_portfolio_id': 23324563, 'created_at': datetime.datetime(2025, 5, 26, 11, 9), 'result': '0.012910999500873472', 'result_long': None, 'result_double': None}] Qualite : 0.012910999500873472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324563 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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}" where mtr_portfolio_id = 23324563 and dashboard_run_id = 1842980 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`=23324563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894909, 0.012910999500873472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, '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 = 23325143 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': 2951448, 'mtr_portfolio_id': 23325143, 'created_at': datetime.datetime(2025, 5, 26, 11, 6, 32), 'result': '0.0803310808757231', 'result_long': None, 'result_double': None}] Qualite : 0.0803310808757231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325143 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325143 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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}" where mtr_portfolio_id = 23325143 and dashboard_run_id = 1842980 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`=23325143 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894910, 0.0803310808757231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, '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 = 23325201 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': 2951498, 'mtr_portfolio_id': 23325201, 'created_at': datetime.datetime(2025, 5, 26, 11, 19, 33), 'result': '0.052389026009317004', 'result_long': None, 'result_double': None}] Qualite : 0.052389026009317004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325201 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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}" where mtr_portfolio_id = 23325201 and dashboard_run_id = 1842980 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`=23325201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894911, 0.052389026009317004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, '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 = 23325821 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': 2951771, 'mtr_portfolio_id': 23325821, 'created_at': datetime.datetime(2025, 5, 26, 11, 33, 58), 'result': '0.04660843160354288', 'result_long': None, 'result_double': None}] Qualite : 0.04660843160354288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325821 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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}" where mtr_portfolio_id = 23325821 and dashboard_run_id = 1842980 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`=23325821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894912, 0.04660843160354288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, '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 = 23326708 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': 2952066, 'mtr_portfolio_id': 23326708, 'created_at': datetime.datetime(2025, 5, 26, 11, 47), 'result': '0.04892546956012179', 'result_long': None, 'result_double': None}] Qualite : 0.04892546956012179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23326708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23326708 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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}" where mtr_portfolio_id = 23326708 and dashboard_run_id = 1842980 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`=23326708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894913, 0.04892546956012179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, '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 = 23327651 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': 2952347, 'mtr_portfolio_id': 23327651, 'created_at': datetime.datetime(2025, 5, 26, 12, 2, 59), 'result': '0.0399187429071831', 'result_long': None, 'result_double': None}] Qualite : 0.0399187429071831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23327651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23327651 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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}" where mtr_portfolio_id = 23327651 and dashboard_run_id = 1842980 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`=23327651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894914, 0.0399187429071831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, '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 = 23328708 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': 2952662, 'mtr_portfolio_id': 23328708, 'created_at': datetime.datetime(2025, 5, 26, 13, 59, 58), 'result': '0.05322573463366244', 'result_long': None, 'result_double': None}] Qualite : 0.05322573463366244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23328708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23328708 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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}" where mtr_portfolio_id = 23328708 and dashboard_run_id = 1842980 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`=23328708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894915, 0.05322573463366244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, '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 = 23334996 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 = 23334996 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 = 23334996 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23334996 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 = 23334996 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 = 23334996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23334996_26-05-2025_13_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23334996 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_P23334996_26-05-2025_13_27_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335008, 'pht': 3726}}" where mtr_portfolio_id = 23334996 and dashboard_run_id = 1842980 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 = 23335603 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': 2953477, 'mtr_portfolio_id': 23335603, 'created_at': datetime.datetime(2025, 5, 26, 13, 48, 59), 'result': '0.04992283243862639', 'result_long': None, 'result_double': None}] Qualite : 0.04992283243862639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23335603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23335603 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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}" where mtr_portfolio_id = 23335603 and dashboard_run_id = 1842980 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`=23335603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894917, 0.04992283243862639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, '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 = 23336428 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': 2953526, 'mtr_portfolio_id': 23336428, 'created_at': datetime.datetime(2025, 5, 26, 14, 2, 59), 'result': '0.04674909162262245', 'result_long': None, 'result_double': None}] Qualite : 0.04674909162262245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336428 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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}" where mtr_portfolio_id = 23336428 and dashboard_run_id = 1842980 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`=23336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10894918, 0.04674909162262245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23319692,23319847,23320077,23325134,23320531,23321016,23325136,23321495,23321641,23325138,23322061,23325141,23322562,23323551,23323111,23323520,23323923,23324068,23324122,23324402,23324563,23325143,23325201,23325821,23326708,23327651,23328708,23334996,23335603,23336428) result : ((1361037641,), (1361037643,), (1361037662,), (1361037664,), (1361037666,), (1361037694,), (1361037721,), (1361037723,), (1361037725,), (1361037727,), (1361037747,), (1361037749,), (1361037751,), (1361037753,), (1361037776,), (1361037778,), (1361037780,), (1361037795,), (1361037797,), (1361037799,), (1361037801,), (1361037803,), (1361037804,), (1361037813,), (1361037816,), (1361037818,), (1361037821,), (1361037824,), (1361037827,), (1361037836,), (1361037838,), (1361037840,), (1361037842,), (1361037858,), (1361037859,), (1361037860,), (1361037861,), (1361037862,), (1361037863,), (1361037876,), (1361037878,), (1361037880,), (1361037882,), (1361037884,), (1361037895,), (1361037897,), (1361037899,), (1361037901,), (1361037903,), (1361037915,), (1361037918,), (1361037920,), (1361037922,), (1361037925,), (1361037955,), (1361037947,), (1361037948,), (1361037949,), (1361037951,), (1361037953,), (1361037970,), (1361037972,), (1361037974,), (1361037986,), (1361037988,), (1361037990,), (1361037992,), (1361037994,), (1361038010,), (1361038013,), (1361038015,), (1361038036,), (1361038038,), (1361038040,), (1361038042,), (1361038044,), (1361038046,), (1361038055,), (1361038057,), (1361038059,), (1361038061,), (1361038092,), (1361038094,), (1361038096,), (1361038108,), (1361038110,), (1361038112,), (1361038114,), (1361038116,), (1361038118,), (1361038127,), (1361038129,), (1361038131,), (1361038150,), (1361038152,), (1361038154,), (1361038156,), (1361038159,), (1361038176,), (1361038178,), (1361038179,), (1361038181,), (1361038183,), (1361038193,), (1361038195,), (1361038197,), (1361038208,), (1361038210,), (1361038212,), (1361038214,), (1361038217,), (1361038218,), (1361038232,), (1361038234,), (1361038237,), (1361038272,), (1361038258,), (1361038260,), (1361038263,), (1361038266,), (1361038269,), (1361038294,), (1361038296,), (1361038298,), (1361038300,), (1361038302,), (1361038304,), (1361038313,), (1361038315,), (1361038317,), (1361038319,), (1361038321,), (1361038332,), (1361038334,), (1361038336,), (1361038338,), (1361038340,), (1361038342,), (1361038352,), (1361038354,), (1361038356,), (1361038358,), (1361038371,), (1361038373,), (1361038375,), (1361038377,), (1361038379,), (1361038395,), (1361038398,), (1361038401,), (1361038403,), (1361038416,), (1361038419,), (1361038422,), (1361038425,), (1361038428,), (1361038429,), (1361038441,), (1361038443,), (1361038445,), (1361038447,), (1361038449,), (1361038451,), (1361038464,), (1361038467,), (1361038469,), (1361038472,), (1361038489,), (1361038491,), (1361038493,), (1361038495,), (1361038497,), (1361038499,), (1361038509,), (1361038511,), (1361038513,), (1361038515,), (1361038517,), (1361038527,), (1361038528,), (1361038529,), (1361038530,), (1361038531,), (1361038532,), (1361038544,), (1361038546,), (1361038548,), (1361038564,), (1361038566,), (1361038569,), (1361038571,), (1361038574,), (1361038576,), (1361038601,), (1361038918,), (1361038919,), (1361038920,), (1361038941,), (1361038943,), (1361038945,), (1361038965,), (1361038967,), (1361038969,), (1361038971,), (1361038990,), (1361039024,), (1361039025,), (1361039057,), (1361039059,), (1361039061,), (1361039063,), (1361039065,), (1361039067,), (1361039084,), (1361039086,), (1361039089,), (1361039102,), (1361039104,), (1361039106,), (1361039126,), (1361039129,), (1361039132,), (1361039135,), (1361039138,), (1361039140,), (1361039158,), (1361039161,), (1361039164,), (1361039188,), (1361039192,), (1361039195,), (1361039198,), (1361039203,), (1361039206,), (1361039222,), (1361039225,), (1361039229,), (1361039232,), (1361039236,), (1361039239,), (1361039258,), (1361039260,), (1361039262,), (1361039264,), (1361039288,), (1361039291,), (1361039294,), (1361039297,), (1361039300,), (1361039304,), (1361039325,), (1361039332,), (1361039334,), (1361039338,), (1361039381,), (1361039365,), (1361039368,), (1361039371,), (1361039374,), (1361039378,), (1361039406,), (1361039409,), (1361039412,), (1361039415,), (1361039442,), (1361039446,), (1361039449,), (1361039453,), (1361039457,), (1361039474,), (1361039476,), (1361039478,), (1361039480,), (1361039483,), (1361039507,), (1361039509,), (1361039511,), (1361039513,), (1361039515,), (1361039533,), (1361039535,), (1361039537,), (1361039539,), (1361039541,), (1361039543,), (1361039558,), (1361039561,), (1361039564,), (1361039592,), (1361039595,), (1361039598,), (1361039601,), (1361039604,), (1361039608,), (1361039630,), (1361039631,), (1361039632,), (1361039633,), (1361039635,), (1361039639,), (1361039658,), (1361039661,), (1361039664,), (1361039697,), (1361039699,), (1361039701,), (1361039704,), (1361039709,), (1361039714,), (1361039744,), (1361039748,), (1361039750,), (1361039776,), (1361039779,), (1361039781,), (1361039783,), (1361039787,), (1361039790,), (1361039815,), (1361039818,), (1361039821,), (1361039824,), (1361039827,), (1361039853,), (1361039855,), (1361039858,), (1361039860,), (1361039863,), (1361039867,), (1361039895,), (1361040417,), (1361040420,), (1361040423,), (1361040427,), (1361040431,), (1361040450,), (1361040451,), (1361040453,), (1361040456,), (1361040459,), (1361040481,), (1361040484,), (1361040487,), (1361040491,), (1361040495,), (1361040520,), (1361040522,), (1361040524,), (1361040526,), (1361040528,), (1361040531,), (1361040555,), (1361040557,), (1361040560,), (1361040564,), (1361040590,), (1361040593,), (1361040596,), (1361040600,), (1361040605,), (1361040611,), (1361040633,), (1361040635,), (1361040637,), (1361040640,), (1361040643,), (1361040666,), (1361040669,), (1361040672,), (1361040676,), (1361040680,), (1361040706,), (1361040708,), (1361040710,), (1361040713,), (1361040716,), (1361040741,), (1361040744,), (1361040747,), (1361040751,), (1361040756,), (1361040779,), (1361040781,), (1361040783,), (1361040786,), (1361040788,), (1361040810,), (1361040813,), (1361040816,), (1361040820,), (1361040824,), (1361040847,), (1361040849,), (1361040851,), (1361040854,), (1361040881,), (1361040885,), (1361040889,), (1361040892,), (1361040894,), (1361040897,), (1361040936,), (1361040924,), (1361040926,), (1361040928,), (1361040931,), (1361040954,), (1361040956,), (1361040959,), (1361040963,), (1361040967,), (1361040972,), (1361041002,), (1361041006,), (1361041009,), (1361041012,), (1361041040,), (1361041045,), (1361041054,), (1361041063,), (1361041074,), (1361041077,), (1361041096,), (1361041098,), (1361041101,), (1361041105,), (1361041136,), (1361041139,), (1361041143,), (1361041146,), (1361041149,), (1361041153,), (1361041173,), (1361041177,), (1361041181,), (1361041205,), (1361041207,), (1361041210,), (1361041214,), (1361041221,), (1361041225,), (1361041241,), (1361041243,), (1361041246,), (1361041250,), (1361041273,), (1361041275,), (1361041278,), (1361041282,), (1361041286,), (1361041291,), (1361041317,), (1361041321,), (1361041325,), (1361041328,), (1361041332,), (1361041336,), (1361041363,), (1361041365,), (1361041368,), (1361041372,), (1361041399,), (1361041402,), (1361041406,), (1361041410,), (1361041414,), (1361041417,), (1361041432,), (1361041434,), (1361041437,), (1361041441,), (1361041461,), (1361041465,), (1361041470,), (1361041517,), (1361042075,), (1361042078,), (1361042082,), (1361042115,), (1361042117,), (1361042120,), (1361042124,), (1361042128,), (1361042132,), (1361042147,), (1361042149,), (1361042152,), (1361042178,), (1361042180,), (1361042183,), (1361042187,), (1361042190,), (1361042195,), (1361042215,), (1361042217,), (1361042220,), (1361042224,), (1361042229,), (1361042247,), (1361042249,), (1361042252,), (1361042256,), (1361042260,), (1361042265,), (1361042279,), (1361042282,), (1361042285,), (1361042289,), (1361042308,), (1361042313,), (1361042317,), (1361042320,), (1361042325,), (1361042329,), (1361042345,), (1361042347,), (1361042350,), (1361042354,), (1361042374,), (1361042375,), (1361042377,), (1361042380,), (1361042383,), (1361042386,), (1361042402,), (1361042404,), (1361042407,), (1361042411,), (1361042433,), (1361042435,), (1361042438,), (1361042442,), (1361042460,), (1361042464,), (1361042468,), (1361042472,), (1361042478,), (1361042483,), (1361042500,), (1361042503,), (1361042507,), (1361042510,), (1361042536,), (1361042539,), (1361042543,), (1361042546,), (1361042552,), (1361042557,), (1361042585,), (1361043222,), (1361043228,), (1361043233,), (1361043271,), (1361043275,), (1361043280,), (1361043283,), (1361043286,), (1361043308,), (1361043310,), (1361043313,), (1361043317,), (1361043320,), (1361043324,), (1361043348,), (1361043350,), (1361043353,), (1361043357,), (1361043361,), (1361043386,), (1361043390,), (1361043392,), (1361043395,), (1361043399,), (1361043425,), (1361043427,), (1361043430,), (1361043434,), (1361043439,), (1361043480,), (1361043483,), (1361043487,), (1361043492,), (1361043495,), (1361043528,), (1361043532,), (1361043535,), (1361043538,), (1361043543,), (1361043568,), (1361043572,), (1361043576,), (1361043581,), (1361043585,), (1361043614,), (1361043616,), (1361043619,), (1361043622,), (1361043679,), (1361043681,), (1361043684,), (1361043688,), (1361043695,), (1361043698,), (1361043711,), (1361043713,), (1361043716,), (1361043751,), (1361043754,), (1361043758,), (1361043763,), (1361043767,), (1361043773,), (1361043813,), (1361043815,), (1361043818,), (1361043822,), (1361043847,), (1361043850,), (1361043854,), (1361043857,), (1361043861,), (1361043865,), (1361043892,), (1361044591,), (1361044593,), (1361044596,), (1361044599,), (1361044634,), (1361044637,), (1361044641,), (1361044645,), (1361044649,), (1361044653,), (1361044676,), (1361044678,), (1361044681,), (1361044685,), (1361044723,), (1361044725,), (1361044728,), (1361044732,), (1361044738,), (1361044742,), (1361044766,), (1361044768,), (1361044770,), (1361044774,), (1361044800,), (1361044803,), (1361044806,), (1361044811,), (1361044815,), (1361044820,), (1361044841,), (1361044843,), (1361044846,), (1361044850,), (1361044883,), (1361044887,), (1361044892,), (1361044895,), (1361044900,), (1361044906,), (1361044929,), (1361044932,), (1361044935,), (1361044939,), (1361044965,), (1361044970,), (1361044975,), (1361044981,), (1361044987,), (1361044996,), (1361045058,), (1361045061,), (1361045064,), (1361045067,), (1361045110,), (1361045112,), (1361045115,), (1361045118,), (1361045121,), (1361045145,), (1361045147,), (1361045150,), (1361045154,), (1361045158,), (1361045178,), (1361045180,), (1361045183,), (1361045187,), (1361045213,), (1361045216,), (1361045219,), (1361045222,), (1361045225,), (1361045267,), (1361045251,), (1361045253,), (1361045256,), (1361045260,), (1361045263,), (1361045288,), (1361045291,), (1361045293,), (1361045297,), (1361045324,), (1361045325,), (1361045326,), (1361045328,), (1361045331,), (1361045335,), (1361045359,), (1361045363,), (1361045367,), (1361045371,), (1361045401,), (1361045405,), (1361045410,), (1361045415,), (1361045420,), (1361045488,), (1361045498,), (1361045501,), (1361045503,), (1361045533,), (1361045537,), (1361045541,), (1361045545,), (1361045549,), (1361045577,), (1361045580,), (1361045583,), (1361045586,), (1361045589,), (1361045595,), (1361045636,), (1361045640,), (1361045643,), (1361045692,), (1361045697,), (1361045702,), (1361045707,), (1361045713,), (1361045718,), (1361045742,), (1361045745,), (1361045748,), (1361045787,), (1361045790,), (1361045793,), (1361045799,), (1361045805,), (1361045808,), (1361045827,), (1361045830,), (1361045833,), (1361045874,), (1361045879,), (1361045883,), (1361045889,), (1361045893,), (1361045900,), (1361045948,), (1361043882,), (1361043885,), (1361043888,), (1361043918,), (1361043920,), (1361043923,), (1361043927,), (1361043932,), (1361043937,), (1361043959,), (1361043962,), (1361043966,), (1361043970,), (1361043999,), (1361044002,), (1361044005,), (1361044009,), (1361044013,), (1361044020,), (1361044058,), (1361044064,), (1361044070,), (1361044073,), (1361044151,), (1361044155,), (1361044158,), (1361044162,), (1361044166,), (1361044171,), (1361044188,), (1361044191,), (1361044194,), (1361044198,), (1361044231,), (1361044233,), (1361044235,), (1361044238,), (1361044242,), (1361044269,), (1361044271,), (1361044274,), (1361044278,), (1361044281,), (1361044304,), (1361044308,), (1361044310,), (1361044313,), (1361044316,), (1361044344,), (1361044348,), (1361044354,), (1361044361,), (1361044365,), (1361044371,), (1361044398,), (1361044400,), (1361044403,), (1361044407,), (1361044439,), (1361044442,), (1361044446,), (1361044451,), (1361044456,), (1361044460,), (1361044482,), (1361044484,), (1361044487,), (1361044491,), (1361044531,), (1361044535,), (1361044602,), (1361047251,), (1361047255,), (1361047260,), (1361047302,), (1361047304,), (1361047307,), (1361047310,), (1361047350,), (1361047353,), (1361047357,), (1361047360,), (1361047364,), (1361047367,), (1361047396,), (1361047399,), (1361047402,), (1361047427,), (1361047431,), (1361047435,), (1361047439,), (1361047442,), (1361047472,), (1361047473,), (1361047475,), (1361047478,), (1361047482,), (1361047516,), (1361047519,), (1361047527,), (1361047531,), (1361047534,), (1361047537,), (1361047557,), (1361047559,), (1361047560,), (1361047564,), (1361047567,), (1361047593,), (1361047600,), (1361047605,), (1361047610,), (1361047616,), (1361047621,), (1361047651,), (1361047655,), (1361047657,), (1361047663,), (1361047704,), (1361047707,), (1361047710,), (1361047714,), (1361047717,), (1361047725,), (1361047753,), (1361047756,), (1361047759,), (1361047764,), (1361047789,), (1361047791,), (1361047795,), (1361047799,), (1361047802,), (1361047807,), (1361047830,), (1361047832,), (1361047835,), (1361047839,), (1361047874,), (1361047856,), (1361047862,), (1361047865,), (1361047868,), (1361047871,), (1361047890,), (1361047893,), (1361047897,), (1361047900,), (1361047903,), (1361047920,), (1361047980,), (1361048029,), (1361048063,), (1361048066,), (1361048068,), (1361048071,), (1361048098,), (1361048100,), (1361048103,), (1361048107,), (1361048114,), (1361048116,), (1361048131,), (1361048132,), (1361048135,), (1361048139,), (1361048173,), (1361048175,), (1361048177,), (1361048182,), (1361048186,), (1361048190,), (1361048208,), (1361048210,), (1361048212,), (1361048215,), (1361048222,), (1361048223,), (1361048233,), (1361048237,), (1361048239,), (1361048242,), (1361048261,), (1361048264,), (1361048268,), (1361048271,), (1361048275,), (1361048279,), (1361048305,), (1361048311,), (1361048316,), (1361048321,), (1361048334,), (1361048337,), (1361048339,), (1361048341,), (1361048346,), (1361048399,), (1361048381,), (1361048386,), (1361048389,), (1361048392,), (1361048396,), (1361048435,), (1361048437,), (1361048438,), (1361048440,), (1361048473,), (1361048476,), (1361048479,), (1361048484,), (1361048489,), (1361048524,), (1361048527,), (1361048530,), (1361048533,), (1361048538,), (1361048543,), (1361048578,), (1361048581,), (1361048585,), (1361048593,), (1361048635,), (1361048638,), (1361048641,), (1361048644,), (1361048647,), (1361048652,), (1361048685,), (1361048688,), (1361048692,), (1361048696,), (1361048701,), (1361048720,), (1361048723,), (1361048726,), (1361048728,), (1361048732,), (1361048735,), (1361048757,), (1361048760,), (1361048764,), (1361048768,), (1361048796,), (1361048800,), (1361048804,), (1361048807,), (1361048810,), (1361048813,), (1361048842,), (1361048846,), (1361048849,), (1361048851,), (1361048853,), (1361048881,), (1361048884,), (1361048886,), (1361048893,), (1361048898,), (1361048902,), (1361048920,), (1361048927,), (1361048932,), (1361048938,), (1361048943,), (1361048972,), (1361048975,), (1361048979,), (1361048983,), (1361048989,), (1361048994,), (1361049014,), (1361049018,), (1361049024,), (1361049028,), (1361049035,), (1361049088,), (1361049069,), (1361049072,), (1361049079,), (1361049083,), (1361049117,), (1361049119,), (1361049123,), (1361049127,), (1361049132,), (1361049164,), (1361049168,), (1361049170,), (1361049172,), (1361049175,), (1361049198,), (1361049201,), (1361049204,), (1361049209,), (1361049213,), (1361049229,), (1361049235,), (1361049239,), (1361049248,), (1361049253,), (1361049257,), (1361049281,), (1361049284,), (1361049287,), (1361049328,), (1361049331,), (1361049335,), (1361049340,), (1361049344,), (1361049347,), (1361049365,), (1361049376,), (1361049379,), (1361049383,), (1361049387,), (1361049405,), (1361049408,), (1361049414,), (1361049420,), (1361049425,), (1361049427,), (1361049444,), (1361049447,), (1361049452,), (1361049458,), (1361049500,), (1361049504,), (1361049508,), (1361049509,), (1361049517,), (1361049522,), (1361049552,), (1361049555,), (1361049560,), (1361049565,), (1361049571,), (1361049595,), (1361049596,), (1361049601,), (1361049606,), (1361049611,), (1361049617,), (1361049638,), (1361049641,), (1361049646,), (1361049651,), (1361049675,), (1361049685,), (1361049690,), (1361049697,), (1361049703,), (1361049705,), (1361049747,), (1361049737,), (1361049744,), (1361049780,), (1361049788,), (1361049791,), (1361049797,), (1361049802,), (1361049807,), (1361049834,), (1361049836,), (1361049839,), (1361049881,), (1361049884,), (1361049887,), (1361049890,), (1361049892,), (1361049898,), (1361049926,), (1361049929,), (1361049935,), (1361049984,), (1361049986,), (1361049989,), (1361049993,), (1361049996,), (1361050001,), (1361050019,), (1361050022,), (1361050026,), (1361050065,), (1361050069,), (1361050072,), (1361050077,), (1361050080,), (1361050084,), (1361050112,), (1361050115,), (1361050119,), (1361050124,), (1361050129,), (1361050166,), (1361050169,), (1361050172,), (1361050181,), (1361050187,), (1361050263,), (1361050268,), (1361050272,), (1361050277,), (1361050283,), (1361050287,), (1361050315,), (1361050317,), (1361050320,), (1361050371,), (1361050374,), (1361050378,), (1361050383,), (1361050385,), (1361050391,), (1361050427,), (1361050430,), (1361050432,), (1361050436,), (1361050440,), (1361050472,), (1361050476,), (1361050481,), (1361050486,), (1361050491,), (1361050497,), (1361050529,), (1361038597,), (1361038599,), (1361038616,), (1361038618,), (1361038620,), (1361038622,), (1361038624,), (1361038641,), (1361038643,), (1361038645,), (1361038647,), (1361038649,), (1361038651,), (1361038667,), (1361038670,), (1361038672,), (1361038674,), (1361038690,), (1361038692,), (1361038694,), (1361038696,), (1361038698,), (1361038700,), (1361038711,), (1361038713,), (1361038715,), (1361038717,), (1361038730,), (1361038732,), (1361038734,), (1361038736,), (1361038738,), (1361038740,), (1361038754,), (1361038756,), (1361038758,), (1361038783,), (1361038785,), (1361038787,), (1361038789,), (1361038792,), (1361038795,), (1361038809,), (1361038811,), (1361038813,), (1361038815,), (1361038827,), (1361038829,), (1361038831,), (1361038833,), (1361038835,), (1361038837,), (1361038843,), (1361038851,), (1361038854,), (1361038855,), (1361038863,), (1361038865,), (1361038867,), (1361038869,), (1361038871,), (1361038884,), (1361038887,), (1361038890,), (1361038893,), (1361038898,), (1361038899,), (1361038900,), (1361038902,), (1361038907,), (1361038921,), (1361039881,), (1361039884,), (1361039887,), (1361039891,), (1361039918,), (1361039920,), (1361039922,), (1361039924,), (1361039925,), (1361039950,), (1361039953,), (1361039956,), (1361039960,), (1361039963,), (1361039995,), (1361039997,), (1361039999,), (1361040030,), (1361040032,), (1361040035,), (1361040038,), (1361040042,), (1361040046,), (1361040067,), (1361040070,), (1361040073,), (1361040108,), (1361040112,), (1361040115,), (1361040119,), (1361040125,), (1361040130,), (1361040153,), (1361040156,), (1361040159,), (1361040192,), (1361040194,), (1361040196,), (1361040199,), (1361040203,), (1361040222,), (1361040225,), (1361040228,), (1361040232,), (1361040236,), (1361040264,), (1361040266,), (1361040268,), (1361040271,), (1361040293,), (1361040296,), (1361040299,), (1361040303,), (1361040307,), (1361040310,), (1361040329,), (1361040331,), (1361040333,), (1361040337,), (1361040356,), (1361040359,), (1361040362,), (1361040366,), (1361040370,), (1361040374,), (1361040392,), (1361040395,), (1361040397,), (1361040399,), (1361040401,), (1361040433,), (1361041498,), (1361041501,), (1361041505,), (1361041508,), (1361041514,), (1361041529,), (1361041530,), (1361041533,), (1361041537,), (1361041579,), (1361041581,), (1361041584,), (1361041588,), (1361041591,), (1361041597,), (1361041622,), (1361041624,), (1361041627,), (1361041631,), (1361041668,), (1361041670,), (1361041673,), (1361041677,), (1361041680,), (1361041684,), (1361041728,), (1361041732,), (1361041736,), (1361041742,), (1361041747,), (1361041768,), (1361041771,), (1361041777,), (1361041782,), (1361041785,), (1361041795,), (1361041797,), (1361041800,), (1361041804,), (1361041806,), (1361041830,), (1361041836,), (1361041842,), (1361041848,), (1361041865,), (1361041867,), (1361041870,), (1361041874,), (1361041877,), (1361041882,), (1361041900,), (1361041902,), (1361041905,), (1361041909,), (1361041912,), (1361041917,), (1361041935,), (1361041937,), (1361041940,), (1361041944,), (1361041968,), (1361041971,), (1361041974,), (1361041977,), (1361041981,), (1361041997,), (1361042000,), (1361042003,), (1361042007,), (1361042030,), (1361042034,), (1361042038,), (1361042043,), (1361042047,), (1361042053,), (1361042086,), (1361042576,), (1361042579,), (1361042582,), (1361042612,), (1361042616,), (1361042620,), (1361042625,), (1361042630,), (1361042633,), (1361042657,), (1361042660,), (1361042664,), (1361042669,), (1361042692,), (1361042695,), (1361042698,), (1361042701,), (1361042704,), (1361042727,), (1361042729,), (1361042733,), (1361042762,), (1361042764,), (1361042767,), (1361042769,), (1361042805,), (1361042808,), (1361042852,), (1361042855,), (1361042858,), (1361042862,), (1361042865,), (1361042871,), (1361042899,), (1361042901,), (1361042905,), (1361042910,), (1361042914,), (1361042918,), (1361042945,), (1361042948,), (1361042952,), (1361042957,), (1361042986,), (1361042999,), (1361043003,), (1361043010,), (1361043015,), (1361043019,), (1361043037,), (1361043040,), (1361043044,), (1361043049,), (1361043055,), (1361043077,), (1361043081,), (1361043085,), (1361043089,), (1361043095,), (1361043152,), (1361043158,), (1361043167,), (1361043174,), (1361043180,), (1361043238,), (1361050520,), (1361050522,), (1361050525,), (1361050562,), (1361050565,), (1361050569,), (1361050574,), (1361050580,), (1361050586,), (1361050613,), (1361050616,), (1361050619,), (1361050624,), (1361050664,), (1361050668,), (1361050673,), (1361050677,), (1361050682,), (1361050691,), (1361050725,), (1361050730,), (1361050736,), (1361050742,), (1361050750,), (1361050808,), (1361050811,), (1361050815,), (1361050820,), (1361050825,), (1361050855,), (1361050858,), (1361050861,), (1361050863,), (1361050867,), (1361050870,), (1361050894,), (1361050896,), (1361050898,), (1361050901,), (1361050906,), (1361050933,), (1361050936,), (1361050940,), (1361050945,), (1361050950,), (1361050955,), (1361050978,), (1361050979,), (1361050981,), (1361050984,), (1361051007,), (1361051010,), (1361051015,), (1361051021,), (1361051024,), (1361051031,), (1361051055,), (1361051058,), (1361051061,), (1361051064,), (1361051094,), (1361051096,), (1361051101,), (1361051106,), (1361051111,), (1361051116,), (1361051161,), (1361051166,), (1361051174,), (1361051182,), (1361051190,), (1361051196,), (1361051267,), (1361051251,), (1361051256,), (1361051259,), (1361051263,), (1361051710,), (1361051750,), (1361051754,), (1361051759,), (1361051763,), (1361051820,), (1361051823,), (1361051826,), (1361051830,), (1361051833,), (1361051837,), (1361051867,), (1361051870,), (1361051908,), (1361051911,), (1361051914,), (1361051918,), (1361051921,), (1361051963,), (1361051965,), (1361051969,), (1361051974,), (1361051980,), (1361052226,), (1361052229,), (1361052234,), (1361052322,), (1361052300,), (1361052303,), (1361052307,), (1361052312,), (1361052318,), (1361052345,), (1361052347,), (1361052349,), (1361052353,), (1361052384,), (1361052393,), (1361052399,), (1361052405,), (1361052410,), (1361052415,), (1361052434,), (1361052436,), (1361052439,), (1361052443,), (1361052448,), (1361052452,), (1361052474,), (1361052478,), (1361052483,), (1361052489,), (1361052598,), (1361052622,), (1361052626,), (1361052632,), (1361052637,), (1361052669,), (1361052671,), (1361052674,), (1361052678,), (1361052703,), (1361052706,), (1361052709,), (1361052713,), (1361052718,), (1361052723,), (1361052752,), (1361052755,), (1361052757,), (1361052760,), (1361052763,), (1361052788,), (1361052792,), (1361052797,), (1361052802,), (1361052808,), (1361052813,), (1361053161,), (1361053164,), (1361053168,), (1361053173,), (1361053272,), (1361053290,), (1361053298,), (1361053308,), (1361053314,), (1361053317,), (1361053353,), (1361053356,), (1361053360,), (1361053561,), (1361053578,), (1361053592,), (1361053600,), (1361053608,), (1361053612,), (1361053639,), (1361053642,), (1361053646,), (1361053650,), (1361053698,), (1361053688,), (1361053692,), (1361053696,), (1361053737,), (1361053745,), (1361053751,), (1361053756,), (1361053759,), (1361053806,), (1361053810,), (1361053814,), (1361053818,), (1361053823,), (1361053849,), (1361053852,), (1361053856,), (1361053860,), (1361053893,), (1361053895,), (1361053898,), (1361053902,), (1361053907,), (1361053912,), (1361054218,), (1361054233,), (1361054238,), (1361054243,), (1361054354,), (1361054363,), (1361054367,), (1361054502,), (1361054506,), (1361054511,), (1361054555,), (1361054558,), (1361054562,), (1361054565,), (1361054568,), (1361054574,), (1361054612,), (1361054615,), (1361054618,), (1361054622,), (1361054624,), (1361054641,), (1361054680,), (1361054683,), (1361054725,), (1361054728,), (1361054731,), (1361054734,), (1361054737,), (1361054772,), (1361054779,), (1361054782,), (1361054787,), (1361054792,), (1361054797,), (1361054822,), (1361054815,), (1361054819,), (1361054851,), (1361054854,), (1361054858,), (1361054863,), (1361054867,), (1361054900,), (1361054904,), (1361054907,), (1361054910,), (1361054914,), (1361054918,), (1361054946,), (1361054951,), (1361054956,), (1361054960,), (1361054996,), (1361054999,), (1361055002,), (1361055005,), (1361055009,), (1361055016,), (1361055048,), (1361055051,), (1361055054,), (1361055059,), (1361055091,), (1361055094,), (1361055097,), (1361055099,), (1361055103,), (1361055107,), (1361055136,), (1361055143,), (1361055146,), (1361055149,), (1361055190,), (1361055193,), (1361055197,), (1361055202,), (1361055207,), (1361055211,), (1361055230,), (1361055233,), (1361055236,), (1361055277,), (1361055280,), (1361055283,), (1361055291,), (1361055297,), (1361055301,), (1361055323,), (1361055328,), (1361055332,), (1361055339,), (1361055345,), (1361055349,), (1361055369,), (1361055372,), (1361055375,), (1361055439,), (1361055446,), (1361055450,), (1361055457,), (1361055463,), (1361055469,), (1361055529,), (1361055516,), (1361055520,), (1361055523,), (1361055525,), (1361055614,), (1361055644,), (1361055646,), (1361055649,), (1361055678,), (1361055783,), (1361055785,), (1361055787,), (1361055791,), (1361055795,), (1361055832,), (1361055834,), (1361055838,), (1361055842,), (1361055847,), (1361055958,), (1361055962,), (1361055993,), (1361056017,), (1361056035,), (1361056037,), (1361056099,), (1361056104,), (1361056107,), (1361056110,), (1361056114,), (1361056133,), (1361056136,), (1361056141,), (1361056146,), (1361056154,), (1361056162,), (1361056316,), (1361056319,), (1361056342,), (1361056350,), (1361056356,), (1361056409,), (1361056412,), (1361056415,), (1361056419,), (1361056452,), (1361056455,), (1361056461,), (1361056467,), (1361057273,), (1361073258,), (1361069676,), (1361071425,), (1361073170,), (1361073237,), (1361073587,), (1361073590,), (1361073593,), (1361073810,), (1361073812,), (1361074283,), (1361074394,), (1361074720,), (1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26052025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23336428]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361076014] map_info['map_portfolio_photo'] : {23336428: [1361076014, 1361075956, 1361075949, 1361075946, 1361075940, 1361075895, 1361075890, 1361075886, 1361075882, 1361075698, 1361075694, 1361075585, 1361075580, 1361075574, 1361075569, 1361075565, 1361075562, 1361075544, 1361075538, 1361075532, 1361075526, 1361075521, 1361075518, 1361075487, 1361075484, 1361075480, 1361075447, 1361075444, 1361075424, 1361075394, 1361075365, 1361075351, 1361075217, 1361075196, 1361075057, 1361075054, 1361075052]} final : True mtd_id 4302 list_pids : [1361076014] Looping around the photos to save general results len do output : 1 /23336428Didn'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, '2953526') ('4302', '23336428', '1361076014', None, None, None, None, None, '2953526') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '23336428', 'None', None, None, None, None, '2953526'), ('4302', '23336428', '1361076014', None, None, None, None, None, '2953526')] time used for this insertion : 0.013053178787231445 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.737222671508789 time spend to save output : 0.013220787048339844 total time spend for step 5 : 2.750443458557129 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 (2953526) 2.05user 2.45system 0:08.40elapsed 53%CPU (0avgtext+0avgdata 156268maxresident)k 3272inputs+3416outputs (50major+62621minor)pagefaults 0swaps