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 : 2043676 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 (3666054) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3666054) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546418 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3666054'] with mtr_portfolio_ids : ['26546418'] and first list_photo_ids : [] new path : /proc/2043676/ Name: python3 Umask: 0002 State: R (running) Tgid: 2043676 Ngid: 0 Pid: 2043676 PPid: 2043675 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2043676 NSpid: 2043676 NSpgid: 2040785 NSsid: 2040785 VmPeak: 1107388 kB VmSize: 1107388 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98952 kB VmRSS: 98952 kB RssAnon: 60424 kB RssFile: 38528 kB RssShmem: 0 kB VmData: 866140 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 147 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2043676', 'Ngid': '0', 'Pid': '2043676', 'PPid': '2043675', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2043676', 'NSpid': '2043676', 'NSpgid': '2040785', 'NSsid': '2040785', 'VmPeak': '1107388 kB', 'VmSize': '1107388 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98952 kB', 'VmRSS': '98952 kB', 'RssAnon': '60424 kB', 'RssFile': '38528 kB', 'RssShmem': '0 kB', 'VmData': '866140 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '147'} ('datou_batch_current', '2043676', '1107388', '0', '1107388', '866140', '98952', b'', 'marlene', '3666054') 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 (26546418) 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 (3666054 ) ) 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 (26546418) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381543526, 'portfolio_id': 26546418}, {'photo_id': 1381543523, 'portfolio_id': 26546418}, {'photo_id': 1381543520, 'portfolio_id': 26546418}, {'photo_id': 1381543517, 'portfolio_id': 26546418}, {'photo_id': 1381543064, 'portfolio_id': 26546418}, {'photo_id': 1381543062, 'portfolio_id': 26546418}, {'photo_id': 1381543060, 'portfolio_id': 26546418}, {'photo_id': 1381543058, 'portfolio_id': 26546418}, {'photo_id': 1381543056, 'portfolio_id': 26546418}, {'photo_id': 1381543054, 'portfolio_id': 26546418}, {'photo_id': 1381542488, 'portfolio_id': 26546418}, {'photo_id': 1381542484, 'portfolio_id': 26546418}, {'photo_id': 1381542480, 'portfolio_id': 26546418}, {'photo_id': 1381542476, 'portfolio_id': 26546418}, {'photo_id': 1381542472, 'portfolio_id': 26546418}, {'photo_id': 1381542468, 'portfolio_id': 26546418}, {'photo_id': 1381541977, 'portfolio_id': 26546418}, {'photo_id': 1381541975, 'portfolio_id': 26546418}, {'photo_id': 1381541972, 'portfolio_id': 26546418}, {'photo_id': 1381541969, 'portfolio_id': 26546418}, {'photo_id': 1381541925, 'portfolio_id': 26546418}, {'photo_id': 1381541486, 'portfolio_id': 26546418}, {'photo_id': 1381541484, 'portfolio_id': 26546418}, {'photo_id': 1381541482, 'portfolio_id': 26546418}, {'photo_id': 1381541480, 'portfolio_id': 26546418}, {'photo_id': 1381541094, 'portfolio_id': 26546418}, {'photo_id': 1381541091, 'portfolio_id': 26546418}, {'photo_id': 1381541088, 'portfolio_id': 26546418}, {'photo_id': 1381540343, 'portfolio_id': 26546418}, {'photo_id': 1381540339, 'portfolio_id': 26546418}, {'photo_id': 1381539747, 'portfolio_id': 26546418}, {'photo_id': 1381539743, 'portfolio_id': 26546418}, {'photo_id': 1381539739, 'portfolio_id': 26546418}, {'photo_id': 1381539734, 'portfolio_id': 26546418}, {'photo_id': 1381539730, 'portfolio_id': 26546418}, {'photo_id': 1381538819, 'portfolio_id': 26546418}, {'photo_id': 1381538815, 'portfolio_id': 26546418}, {'photo_id': 1381538812, 'portfolio_id': 26546418}, {'photo_id': 1381538808, 'portfolio_id': 26546418}, {'photo_id': 1381538804, 'portfolio_id': 26546418}, {'photo_id': 1381538800, 'portfolio_id': 26546418}, {'photo_id': 1381538044, 'portfolio_id': 26546418}, {'photo_id': 1381538039, 'portfolio_id': 26546418}] map_portfolio_id_photo_id: {26546418: [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054, 1381542488, 1381542484, 1381542480, 1381542476, 1381542472, 1381542468, 1381541977, 1381541975, 1381541972, 1381541969, 1381541925, 1381541486, 1381541484, 1381541482, 1381541480, 1381541094, 1381541091, 1381541088, 1381540343, 1381540339, 1381539747, 1381539743, 1381539739, 1381539734, 1381539730, 1381538819, 1381538815, 1381538812, 1381538808, 1381538804, 1381538800, 1381538044, 1381538039]} ##### 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.05748581886291504 #### 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 Thu Sep 4 22:10:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26546418) 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 : 26546418 get user id for portfolio 26546418 get sub ptf for main ptf 26546418, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'Carton_gris', 'plastique', 'metal', 'environnement', 'flou', 'mal_croppe', 'papier', 'autre_refus', 'Carton_brun'] 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`=26546418 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','plastique','metal','environnement','flou','mal_croppe','papier','autre_refus','Carton_brun')) 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`=26546418 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','plastique','metal','environnement','flou','mal_croppe','papier','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 26546418, 'sub_port_id': 26546458, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876119, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'metal': {'main_port_id': 26546418, 'sub_port_id': 26546459, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876120, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'mal_croppe': {'main_port_id': 26546418, 'sub_port_id': 26546460, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876121, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'flou': {'main_port_id': 26546418, 'sub_port_id': 26546461, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876122, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'autre_refus': {'main_port_id': 26546418, 'sub_port_id': 26546463, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876123, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'kraft': {'main_port_id': 26546418, 'sub_port_id': 26546464, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876124, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'plastique': {'main_port_id': 26546418, 'sub_port_id': 26546466, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876125, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'papier': {'main_port_id': 26546418, 'sub_port_id': 26546467, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876126, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26546418, 'sub_port_id': 26546468, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876127, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'Carton_brun': {'main_port_id': 26546418, 'sub_port_id': 26546469, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876128, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'environnement': {'main_port_id': 26546418, 'sub_port_id': 26546470, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876129, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}, 'Carton_gris': {'main_port_id': 26546418, 'sub_port_id': 26546471, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876130, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546458 , 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=26546418 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 (26546458) result : ((1381541437,), (1381541438,), (1381543425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546459 , 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=26546418 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 (26546459) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546460 , 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=26546418 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 (26546460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546461 , 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=26546418 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 (26546461) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546463 , 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=26546418 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 (26546463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546464 , 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=26546418 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 (26546464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546466 , 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=26546418 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 (26546466) result : ((1381541441,), (1381543536,), (1381543539,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546467 , 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=26546418 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 (26546467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546468 , 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=26546418 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 (26546468) result : ((1381541312,), (1381541314,), (1381541316,), (1381541319,), (1381541429,), (1381541431,), (1381543401,), (1381543404,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546469 , 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=26546418 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 (26546469) result : ((1381541329,), (1381541439,), (1381541440,), (1381543434,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546470 , 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=26546418 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 (26546470) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26546471 , 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=26546418 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 (26546471) result : ((1381543414,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26546418) result : ((1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) 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 (1381538800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26546418 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','plastique','metal','environnement','flou','mal_croppe','papier','autre_refus','Carton_brun')) 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`=26546418 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','kraft','Carton_gris','plastique','metal','environnement','flou','mal_croppe','papier','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 26546418, 'sub_port_id': 26546472, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876131, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'metal': {'main_port_id': 26546418, 'sub_port_id': 26546473, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876132, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'mal_croppe': {'main_port_id': 26546418, 'sub_port_id': 26546474, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876133, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'flou': {'main_port_id': 26546418, 'sub_port_id': 26546475, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876134, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'autre_refus': {'main_port_id': 26546418, 'sub_port_id': 26546476, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876135, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'kraft': {'main_port_id': 26546418, 'sub_port_id': 26546477, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876136, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'plastique': {'main_port_id': 26546418, 'sub_port_id': 26546478, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876137, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'papier': {'main_port_id': 26546418, 'sub_port_id': 26546479, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876138, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 26546418, 'sub_port_id': 26546480, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876139, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'Carton_brun': {'main_port_id': 26546418, 'sub_port_id': 26546481, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876140, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'environnement': {'main_port_id': 26546418, 'sub_port_id': 26546482, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876141, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}, 'Carton_gris': {'main_port_id': 26546418, 'sub_port_id': 26546483, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17876142, 'last_updated_at': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 22, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 22, 3, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26546483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26546471 lien utilise dans velours : https://marlene.fotonower.com/velours/26546472,26546473,26546474,26546475,26546476,26546477,26546478,26546479,26546480,26546481,26546482,26546483?tags=cartonnette,metal,mal_croppe,flou,autre_refus,kraft,plastique,papier,Teint_Dans_La_Masse,Carton_brun,environnement,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26546418]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] map_info['map_portfolio_photo'] : {26546418: [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054, 1381542488, 1381542484, 1381542480, 1381542476, 1381542472, 1381542468, 1381541977, 1381541975, 1381541972, 1381541969, 1381541925, 1381541486, 1381541484, 1381541482, 1381541480, 1381541094, 1381541091, 1381541088, 1381540343, 1381540339, 1381539747, 1381539743, 1381539739, 1381539734, 1381539730, 1381538819, 1381538815, 1381538812, 1381538808, 1381538804, 1381538800, 1381538044, 1381538039]} final : False mtd_id 4302 list_pids : [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] Looping around the photos to save general results len do output : 1 /26546418. 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, '3666054') ('4302', '26546418', '1381543526', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26546418', "{'cartonnette': 26546458, 'metal': 26546459, 'mal_croppe': 26546460, 'flou': 26546461, 'autre_refus': 26546463, 'kraft': 26546464, 'plastique': 26546466, 'papier': 26546467, 'Teint_Dans_La_Masse': 26546468, 'Carton_brun': 26546469, 'environnement': 26546470, 'Carton_gris': 26546471}", None, None, None, None, '3666054'), ('4302', '26546418', '1381543526', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054')] time used for this insertion : 0.04470944404602051 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.915229082107544 time spend to save output : 0.045058250427246094 total time spend for step 1 : 1.96028733253479 step2:final Thu Sep 4 22:11:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26546418) 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 26546418 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381538044,1381538039,1381538819,1381538815,1381538812,1381538808,1381538804,1381538800,1381539747,1381539743,1381539739,1381539734,1381539730,1381540343,1381540339,1381541094,1381541091,1381541088,1381541486,1381541484,1381541482,1381541480,1381541977,1381541975,1381541972,1381541969,1381542488,1381541925,1381542484,1381542480,1381542476,1381542472,1381542468,1381543064,1381543062,1381543060,1381543058,1381543056,1381543054,1381543526,1381543523,1381543520,1381543517); 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([26546418]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} new output for save of step final : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] map_info['map_portfolio_photo'] : {26546418: [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054, 1381542488, 1381542484, 1381542480, 1381542476, 1381542472, 1381542468, 1381541977, 1381541975, 1381541972, 1381541969, 1381541925, 1381541486, 1381541484, 1381541482, 1381541480, 1381541094, 1381541091, 1381541088, 1381540343, 1381540339, 1381539747, 1381539743, 1381539739, 1381539734, 1381539730, 1381538819, 1381538815, 1381538812, 1381538808, 1381538804, 1381538800, 1381538044, 1381538039]} final : False mtd_id 4302 list_pids : [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] Looping around the photos to save general results len do output : 10 /1381543526.Didn't retrieve data . /1381543523.Didn't retrieve data . /1381543520.Didn't retrieve data . /1381543517.Didn't retrieve data . /1381543064.Didn't retrieve data . /1381543062.Didn't retrieve data . /1381543060.Didn't retrieve data . /1381543058.Didn't retrieve data . /1381543056.Didn't retrieve data . /1381543054.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, '3666054') ('4302', '26546418', '1381543526', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26546418', '1381543526', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543523', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543520', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543517', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543064', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543062', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543060', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543058', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543056', '0.042968553638007494', None, None, None, None, '3666054'), ('4302', '26546418', '1381543054', '0.042968553638007494', None, None, None, None, '3666054')] time used for this insertion : 0.04879903793334961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29364490509033203 time spend to save output : 0.04928946495056152 total time spend for step 2 : 0.34293437004089355 step3:velours_tree Thu Sep 4 22:11: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 : {26546418: [{'cartonnette': 26546458, 'metal': 26546459, 'mal_croppe': 26546460, 'flou': 26546461, 'autre_refus': 26546463, 'kraft': 26546464, 'plastique': 26546466, 'papier': 26546467, 'Teint_Dans_La_Masse': 26546468, 'Carton_brun': 26546469, 'environnement': 26546470, 'Carton_gris': 26546471}]} input_args_next_step : {26546418: ()} output_args : {26546418: [{'cartonnette': 26546458, 'metal': 26546459, 'mal_croppe': 26546460, 'flou': 26546461, 'autre_refus': 26546463, 'kraft': 26546464, 'plastique': 26546466, 'papier': 26546467, 'Teint_Dans_La_Masse': 26546468, 'Carton_brun': 26546469, 'environnement': 26546470, 'Carton_gris': 26546471}]} args : 26546418 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 26546458, 'metal': 26546459, 'mal_croppe': 26546460, 'flou': 26546461, 'autre_refus': 26546463, 'kraft': 26546464, 'plastique': 26546466, 'papier': 26546467, 'Teint_Dans_La_Masse': 26546468, 'Carton_brun': 26546469, 'environnement': 26546470, 'Carton_gris': 26546471},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26546418) 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([26546418]) 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.3487534523010254 time spend to save output : 7.104873657226562e-05 total time spend for step 3 : 0.34882450103759766 step4:send_mail_cod Thu Sep 4 22:11: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 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 : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} input_args_next_step : {1381543526: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543526 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543523 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543520 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543517 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543064 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543062 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543060 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543058 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543056 depend.output_id : 0 input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ()} output_args : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',)} args : 1381543054 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {26546418: [{'cartonnette': 26546458, 'metal': 26546459, 'mal_croppe': 26546460, 'flou': 26546461, 'autre_refus': 26546463, 'kraft': 26546464, 'plastique': 26546466, 'papier': 26546467, 'Teint_Dans_La_Masse': 26546468, 'Carton_brun': 26546469, 'environnement': 26546470, 'Carton_gris': 26546471}]} input_args_next_step : {1381543526: ('0.042968553638007494',), 1381543523: ('0.042968553638007494',), 1381543520: ('0.042968553638007494',), 1381543517: ('0.042968553638007494',), 1381543064: ('0.042968553638007494',), 1381543062: ('0.042968553638007494',), 1381543060: ('0.042968553638007494',), 1381543058: ('0.042968553638007494',), 1381543056: ('0.042968553638007494',), 1381543054: ('0.042968553638007494',), 26546418: ()} output_args : {26546418: [{'cartonnette': 26546458, 'metal': 26546459, 'mal_croppe': 26546460, 'flou': 26546461, 'autre_refus': 26546463, 'kraft': 26546464, 'plastique': 26546466, 'papier': 26546467, 'Teint_Dans_La_Masse': 26546468, 'Carton_brun': 26546469, 'environnement': 26546470, 'Carton_gris': 26546471}]} args : 26546418 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.042968553638007494',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26546418) 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 (1381543526,1381543523,1381543520,1381543517,1381543064,1381543062,1381543060,1381543058,1381543056,1381543054) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381543054 begin to download photo : 1381543060 begin to download photo : 1381543517 begin to download photo : 1381543526 download finish for photo 1381543517 begin to download photo : 1381543520 download finish for photo 1381543526 download finish for photo 1381543054 begin to download photo : 1381543056 download finish for photo 1381543060 begin to download photo : 1381543062 download finish for photo 1381543056 begin to download photo : 1381543058 download finish for photo 1381543520 begin to download photo : 1381543523 download finish for photo 1381543062 begin to download photo : 1381543064 download finish for photo 1381543058 download finish for photo 1381543523 download finish for photo 1381543064 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26546418_04-09-2025_22_11_01.pdf 26546458 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=26546458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381541437: '1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840350_0.png', 1381541438: '1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840354_0.png', 1381543425: '1757016548_3853394_1381541482_f7873f64a932062bbf344c8ced39ed4f_13145708_rle_crop_3944845927_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d8d1b1af1607686e02ba9de31db850f5_57846965.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/8e7ca09edd20252acd5d7236a716efdb_1016115.png change filename to text .imagette265464581757016661/ imagette265464581757016661/1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840354_0.png.png imagette265464581757016661/1757016548_3853394_1381541482_f7873f64a932062bbf344c8ced39ed4f_13145708_rle_crop_3944845927_0.png.png imagette265464581757016661/1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840350_0.png.png imagette265464591757016662/ imagette265464601757016662/ imagette265464611757016662/ imagette265464631757016662/ imagette265464641757016662/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/384052da3147dff5777acd7c70b9a847_93161721.png imagette265464581757016661 26546459 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=26546459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265464591757016662 26546460 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=26546460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265464601757016662 26546461 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=26546461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265464611757016662 26546463 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=26546463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265464631757016662 26546464 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=26546464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265464641757016662 26546466 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=26546466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381541441: '1757016327_3840256_1381538039_d37702c73c0e6e4f33cacd149509bdc5_908753_rle_crop_3944840366_0.png', 1381543536: '1757016566_3853742_1381541486_e4eb25aecc8683ac2a034084cda461ee_5717282_rle_crop_3944845955_0.png', 1381543539: '1757016566_3853742_1381541091_225707208d100487a7a303642140f58a_96608738_rle_crop_3944846373_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/8c3e6b2dc72b8299d0a12dac4ef21d7a_11418098.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/a1f8fc99003f449034745e1e9531aee4_76260367.png change filename to text .imagette265464661757016662/ imagette265464661757016662/1757016566_3853742_1381541486_e4eb25aecc8683ac2a034084cda461ee_5717282_rle_crop_3944845955_0.png.png imagette265464661757016662/1757016327_3840256_1381538039_d37702c73c0e6e4f33cacd149509bdc5_908753_rle_crop_3944840366_0.png.png imagette265464661757016662/1757016566_3853742_1381541091_225707208d100487a7a303642140f58a_96608738_rle_crop_3944846373_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/951ec41981aec3aef344eb98c6a39e64_32786826.png imagette265464661757016662 26546468 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=26546468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381541312: '1757016306_3838543_1381538808_119124dbb0ebade32521300a9d52fb67_64531869_rle_crop_3944840151_0.png', 1381541314: '1757016306_3838543_1381538808_119124dbb0ebade32521300a9d52fb67_64531869_rle_crop_3944840152_0.png', 1381541316: '1757016306_3838543_1381538804_630ffddd18787e3ff799234153737800_94076628_rle_crop_3944840165_0.png', 1381541319: '1757016306_3838543_1381538804_630ffddd18787e3ff799234153737800_94076628_rle_crop_3944840168_0.png', 1381541429: '1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840352_0.png', 1381541431: '1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840360_0.png', 1381543401: '1757016548_3853394_1381541484_e31bbf8843ae2a462c94be4b6319bfe9_95919751_rle_crop_3944845915_0.png', 1381543404: '1757016548_3853394_1381541482_f7873f64a932062bbf344c8ced39ed4f_13145708_rle_crop_3944845929_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/b55c50729c00790e46e1481a7746bd09_21641254.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/5b6d186de5399a7972af9df47553fec7_61149146.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/9de70048dd48f1f5c5628cd7e446d5ef_56504460.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/bc0c7753375b3c19e2adbbaa9635ea39_65601269.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/567c8556470f8a59b8c7d7d36cac49da_65063459.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/2e528829d37192bde42ee03f3a4aed89_43821014.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/4f7d4e05c65ccc8199642e15fccf6e94_69939376.png change filename to text .imagette265464681757016662/ imagette265464681757016662/1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840352_0.png.png imagette265464681757016662/1757016306_3838543_1381538804_630ffddd18787e3ff799234153737800_94076628_rle_crop_3944840168_0.png.png imagette265464681757016662/1757016306_3838543_1381538808_119124dbb0ebade32521300a9d52fb67_64531869_rle_crop_3944840152_0.png.png imagette265464681757016662/1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840360_0.png.png imagette265464681757016662/1757016306_3838543_1381538808_119124dbb0ebade32521300a9d52fb67_64531869_rle_crop_3944840151_0.png.png imagette265464681757016662/1757016548_3853394_1381541482_f7873f64a932062bbf344c8ced39ed4f_13145708_rle_crop_3944845929_0.png.png imagette265464681757016662/1757016548_3853394_1381541484_e31bbf8843ae2a462c94be4b6319bfe9_95919751_rle_crop_3944845915_0.png.png imagette265464681757016662/1757016306_3838543_1381538804_630ffddd18787e3ff799234153737800_94076628_rle_crop_3944840165_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/f33ac753669a42c90f364cee20533cee_10749109.png imagette265464681757016662 26546469 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=26546469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381541329: '1757016306_3838543_1381538808_119124dbb0ebade32521300a9d52fb67_64531869_rle_crop_3944840148_0.png', 1381541439: '1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840353_0.png', 1381541440: '1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840359_0.png', 1381543434: '1757016548_3853394_1381541482_f7873f64a932062bbf344c8ced39ed4f_13145708_rle_crop_3944845930_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/8ae91152c62d1d3cb5c0f82733685faa_84680520.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/50d72ec65c9e906861635f710dc6763d_91922999.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/a9432aab1f32ae847e75cf029779eeed_73717188.png change filename to text .imagette265464691757016662/ imagette265464691757016662/1757016548_3853394_1381541482_f7873f64a932062bbf344c8ced39ed4f_13145708_rle_crop_3944845930_0.png.png imagette265464691757016662/1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840359_0.png.png imagette265464691757016662/1757016306_3838543_1381538808_119124dbb0ebade32521300a9d52fb67_64531869_rle_crop_3944840148_0.png.png imagette265464691757016662/1757016327_3840256_1381538044_475891326b4c21bc2b0bb3a1f51a8f5c_77970142_rle_crop_3944840353_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/20ca799ae6a42c8798e2d9b94197bee8_88305795.png imagette265464691757016662 26546471 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=26546471 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381543414: '1757016548_3853394_1381541480_c253550497f75b2765febdc16db85cb1_49003196_rle_crop_3944845942_0.png'} change filename to text .imagette265464711757016663/ imagette265464711757016663/1757016548_3853394_1381541480_c253550497f75b2765febdc16db85cb1_49003196_rle_crop_3944845942_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/bbc6ad274ab4f5b6a576c472fc715ae0_43322142.png imagette265464711757016663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26546418 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26546472,26546473,26546474,26546475,26546476,26546477,26546478,26546479,26546480,26546481,26546482,26546483?tags=cartonnette,metal,mal_croppe,flou,autre_refus,kraft,plastique,papier,Teint_Dans_La_Masse,Carton_brun,environnement,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1381543526] : ('0.042968553638007494',) no score found for photo 1381543526 We are sending mail with results at report@fotonower.com args[1381543523] : ('0.042968553638007494',) no score found for photo 1381543523 We are sending mail with results at report@fotonower.com args[1381543520] : ('0.042968553638007494',) no score found for photo 1381543520 We are sending mail with results at report@fotonower.com args[1381543517] : ('0.042968553638007494',) no score found for photo 1381543517 We are sending mail with results at report@fotonower.com args[1381543064] : ('0.042968553638007494',) no score found for photo 1381543064 We are sending mail with results at report@fotonower.com args[1381543062] : ('0.042968553638007494',) no score found for photo 1381543062 We are sending mail with results at report@fotonower.com args[1381543060] : ('0.042968553638007494',) no score found for photo 1381543060 We are sending mail with results at report@fotonower.com args[1381543058] : ('0.042968553638007494',) no score found for photo 1381543058 We are sending mail with results at report@fotonower.com args[1381543056] : ('0.042968553638007494',) no score found for photo 1381543056 We are sending mail with results at report@fotonower.com args[1381543054] : ('0.042968553638007494',) no score found for photo 1381543054 We are sending mail with results at report@fotonower.com refus_total : 0.042968553638007494 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=26546418 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_P26546418_04-09-2025_22_11_01.pdf results_Auto_P26546418_04-09-2025_22_11_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26546418_04-09-2025_22_11_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26546418','results_Auto_P26546418_04-09-2025_22_11_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26546418_04-09-2025_22_11_01.pdf','pdf','','0.14','0.042968553638007494') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26546418]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] map_info['map_portfolio_photo'] : {26546418: [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054, 1381542488, 1381542484, 1381542480, 1381542476, 1381542472, 1381542468, 1381541977, 1381541975, 1381541972, 1381541969, 1381541925, 1381541486, 1381541484, 1381541482, 1381541480, 1381541094, 1381541091, 1381541088, 1381540343, 1381540339, 1381539747, 1381539743, 1381539739, 1381539734, 1381539730, 1381538819, 1381538815, 1381538812, 1381538808, 1381538804, 1381538800, 1381538044, 1381538039]} final : False mtd_id 4302 list_pids : [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] 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, '3666054') ('4302', '26546418', '1381543526', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26546418', '1381543526', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054')] time used for this insertion : 0.03928542137145996 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.073103189468384 time spend to save output : 0.04343152046203613 total time spend for step 4 : 3.11653470993042 step5:split_time_score Thu Sep 4 22:11:04 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 : ['26546418'] 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 : [('26546418',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26546418) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381543526: {'path': 'temp/1757016661_2043676_1381543526_f886e34d3c6f966b12d32afb4727359d_26878406.jpg', 'extension': 'jpg'}, 1381543054: {'path': 'temp/1757016661_2043676_1381543054_f92bea395e8cc46a47a0404e09be8c9d_39950257.jpg', 'extension': 'jpg'}, 1381543056: {'path': 'temp/1757016661_2043676_1381543056_3586d24a83c54b0497ab8b643cc63f58_59123979.jpg', 'extension': 'jpg'}, 1381543058: {'path': 'temp/1757016661_2043676_1381543058_3aa68c651ac4fecf0c8eeeb954c7a2a9_20562367.jpg', 'extension': 'jpg'}, 1381543517: {'path': 'temp/1757016661_2043676_1381543517_60dcb917824b0c709b9f7b3b6ef2035b_16665463.jpg', 'extension': 'jpg'}, 1381543520: {'path': 'temp/1757016661_2043676_1381543520_8e0ea19548b6e1a8fdf606d8759eca59_46423904.jpg', 'extension': 'jpg'}, 1381543523: {'path': 'temp/1757016661_2043676_1381543523_44b6565391e2b0ee70d5ea42a0268e07_64061609.jpg', 'extension': 'jpg'}, 1381543060: {'path': 'temp/1757016661_2043676_1381543060_8a28d915d3f3f8e4339ca17fe0436ded_83167590.jpg', 'extension': 'jpg'}, 1381543062: {'path': 'temp/1757016661_2043676_1381543062_0a1c5c5a640e97f1e5e07abc2372bdcc_54587856.jpg', 'extension': 'jpg'}, 1381543064: {'path': 'temp/1757016661_2043676_1381543064_5bb77d3ec97a53fb5536dc8d349286a4_15847260.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 = 26546418; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26546418 group by h (('22', 43),) 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=26546418 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 (26546418) 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 (26546418) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04092025 26546418 Nombre de photos uploadées : 43 / 23040 (0%) 04092025 26546418 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 04092025 26546418 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1381538044, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/475891326b4c21bc2b0bb3a1f51a8f5c_77970142.jpg', 'username': None, 'uploaded_at': 1757016073, 'text': 'image_04092025_22_00_14_010186m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381538039, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d37702c73c0e6e4f33cacd149509bdc5_908753.jpg', 'username': None, 'uploaded_at': 1757016073, 'text': 'image_04092025_22_00_24_010139m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1381538819, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/9bb817d86cce0793e4632fccdaf1ba20_59794462.jpg', 'username': None, 'uploaded_at': 1757016133, 'text': 'image_04092025_22_00_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1381538815, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/d13aabaefc85fb9a5ea74760c659e2b3_99034248.jpg', 'username': None, 'uploaded_at': 1757016133, 'text': 'image_04092025_22_01_05_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0030875205993652344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26546418, '2025-09-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2228087,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.7038607597351074 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= 2228087 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26511239, 'dashboard_result_id': 14768124, '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_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26512008, 'dashboard_result_id': 14768125, '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_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26512746, 'dashboard_result_id': 14768126, '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_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26513045, 'dashboard_result_id': 14768127, '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_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26514289, 'dashboard_result_id': 14768128, '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_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26514642, 'dashboard_result_id': 14768129, '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_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26515182, 'dashboard_result_id': 14768130, '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_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26515774, 'dashboard_result_id': 14768131, '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_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26516310, 'dashboard_result_id': 14768132, '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_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26516863, 'dashboard_result_id': 14768133, '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_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26517331, 'dashboard_result_id': 14768134, '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_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26517892, 'dashboard_result_id': 14768135, '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_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26518418, 'dashboard_result_id': 14768136, '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_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26518831, 'dashboard_result_id': 14768137, '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_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26519302, 'dashboard_result_id': 14768138, '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_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26521196, 'dashboard_result_id': 14768139, '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_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26521198, 'dashboard_result_id': 14768140, '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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26521200, 'dashboard_result_id': 14768141, '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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26521203, 'dashboard_result_id': 14768142, '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_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26521292, 'dashboard_result_id': 14768143, '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_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26523116, 'dashboard_result_id': 14768144, '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_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26523130, 'dashboard_result_id': 14768145, '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_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26523144, 'dashboard_result_id': 14768146, '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_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26524019, 'dashboard_result_id': 14768147, '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_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26524022, 'dashboard_result_id': 14768148, '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_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26526039, 'dashboard_result_id': 14768149, '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_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26526041, 'dashboard_result_id': 14768151, '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_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26526889, 'dashboard_result_id': 14768152, '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_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26526952, 'dashboard_result_id': 14768153, '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_P26526952_04-09-2025_08_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26527552, 'dashboard_result_id': 14768154, '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_P26527552_04-09-2025_09_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26527570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26527571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26527572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26527573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26527574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26527575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26527576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26527577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26527578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26527579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26527580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26527581, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26528718, 'dashboard_result_id': 14768156, '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_P26528718_04-09-2025_09_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26528726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26528727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26528728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26528729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26528730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26528731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26528732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26528733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26528734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26528735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26528737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26528738, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534825, 'dashboard_result_id': 14768157, '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_P26534825_04-09-2025_18_01_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534965, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534827, 'dashboard_result_id': 14768158, '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_P26534827_04-09-2025_18_01_42.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26534942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534963, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534829, 'dashboard_result_id': 14768159, '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_P26534829_04-09-2025_18_00_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534865, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534077, 'dashboard_result_id': 14768161, '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_P26534077_04-09-2025_18_00_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534386, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534078, 'dashboard_result_id': 14768162, '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_P26534078_04-09-2025_17_44_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534358, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534079, 'dashboard_result_id': 14768163, '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_P26534079_04-09-2025_17_44_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534310, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534080, 'dashboard_result_id': 14768164, '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_P26534080_04-09-2025_17_43_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534255, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534081, 'dashboard_result_id': 14768165, '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_P26534081_04-09-2025_17_43_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534237, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534082, 'dashboard_result_id': 14768167, '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_P26534082_04-09-2025_17_43_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534185, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26534083, 'dashboard_result_id': 14768168, '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_P26534083_04-09-2025_17_42_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534142, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534152, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26533428, 'dashboard_result_id': 14768169, '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_P26533428_04-09-2025_17_42_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26533542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533553, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26533432, 'dashboard_result_id': 14768170, '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_P26533432_04-09-2025_17_30_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26533507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533518, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26533305, 'dashboard_result_id': 14768171, '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_P26533305_04-09-2025_17_29_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533323, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26533307, 'dashboard_result_id': 14768172, '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_P26533307_04-09-2025_18_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533369, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26535186, 'dashboard_result_id': 14768173, '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_P26535186_04-09-2025_18_17_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26535196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26535197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26535198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26535199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26535200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26535201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26535202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26535203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26535204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26535205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26535206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26535207, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26535592, 'dashboard_result_id': 14768174, '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_P26535592_04-09-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26535600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26535601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26535602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26535603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26535604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26535605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26535606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26535607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26535608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26535609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26535610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26535611, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26536159, 'dashboard_result_id': 14768175, '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_P26536159_04-09-2025_18_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26536187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26536188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26536189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26536190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26536191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26536192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26536193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26536194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26536195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26536196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26536197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26536198, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26536721, 'dashboard_result_id': 14768176, '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_P26536721_04-09-2025_19_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26536735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26536736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26536737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26536738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26536739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26536740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26536741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26536742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26536743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26536744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26536745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26536746, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26537305, 'dashboard_result_id': 14768177, '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_P26537305_04-09-2025_19_17_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26537353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26537354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26537355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26537356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26537357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26537358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26537359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26537360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26537361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26537362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26537363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26537364, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26538058, 'dashboard_result_id': 14768178, '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_P26538058_04-09-2025_19_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26538069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26538070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26538071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26538072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26538073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26538074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26538075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26538076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26538077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26538078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26538079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26538080, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26538968, 'dashboard_result_id': 14768179, '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_P26538968_04-09-2025_19_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26538993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26538994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26538995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26538996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26538997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26538999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26539000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26539001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26539002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26539003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26539004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26539005, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26539763, 'dashboard_result_id': 14768180, '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_P26539763_04-09-2025_20_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26539782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26539783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26539784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26539785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26539786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26539787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26539788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26539790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26539792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26539795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26539797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26539799, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26540663, 'dashboard_result_id': 14768181, '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_P26540663_04-09-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26540672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26540673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26540674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26540675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26540676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26540677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26540678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26540679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26540680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26540681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26540682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26540683, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26541550, 'dashboard_result_id': 14768182, '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_P26541550_04-09-2025_20_33_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26541564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26541565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26541566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26541567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26541568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26541569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26541570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26541571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26541572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26541573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26541574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26541575, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26542332, 'dashboard_result_id': 14768183, '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_P26542332_04-09-2025_21_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26542375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26542376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26542377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26542378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26542379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26542380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26542381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26542382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26542383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26542384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26542385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26542386, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26543622, 'dashboard_result_id': 14768184, '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_P26543622_04-09-2025_21_17_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26543644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26543645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26543646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26543647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26543648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26543649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26543650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26543651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26543652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26543653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26543654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26543655, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26544247, 'dashboard_result_id': 14768185, '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_P26544247_04-09-2025_21_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26544309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26544310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26544311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26544312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26544313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26544314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26544315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26544316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26544317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26544318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26544319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26544320, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26545016, 'dashboard_result_id': 14768186, '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_P26545016_04-09-2025_21_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26545039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26545040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26545041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26545042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26545043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26545044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26545045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26545046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26545047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26545048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26545049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26545050, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26545727, 'dashboard_result_id': 14768187, '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_P26545727_04-09-2025_22_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26545734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26545735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26545736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26545738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26545739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26545741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26545742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26545743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26545744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26545745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26545746, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2240758, 'mtr_portfolio_id': 26546418, 'dashboard_result_id': 14768188, '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_P26546418_04-09-2025_22_09_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26546458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26546459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26546460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26546461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26546463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26546464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26546466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26546467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26546468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26546469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26546470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26546471, '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 = 26511239 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': 3662799, 'mtr_portfolio_id': 26511239, 'created_at': datetime.datetime(2025, 9, 4, 6, 14, 28), 'result': '0.05235452170997832', 'result_long': None, 'result_double': None}] Qualite : 0.05235452170997832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26511239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_06_14_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26511239 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_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}" where mtr_portfolio_id = 26511239 and dashboard_run_id = 2240758 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`=26511239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768124, 0.05235452170997832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, '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 = 26512008 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': 3662800, 'mtr_portfolio_id': 26512008, 'created_at': datetime.datetime(2025, 9, 4, 6, 14, 58), 'result': '0.05836182521425707', 'result_long': None, 'result_double': None}] Qualite : 0.05836182521425707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512008 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_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}" where mtr_portfolio_id = 26512008 and dashboard_run_id = 2240758 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`=26512008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768125, 0.05836182521425707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, '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 = 26512746 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': 3662801, 'mtr_portfolio_id': 26512746, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 28), 'result': '0.06725556869373282', 'result_long': None, 'result_double': None}] Qualite : 0.06725556869373282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512746 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_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}" where mtr_portfolio_id = 26512746 and dashboard_run_id = 2240758 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`=26512746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768126, 0.06725556869373282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, '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 = 26513045 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': 3662802, 'mtr_portfolio_id': 26513045, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 38), 'result': '0.05307991528254644', 'result_long': None, 'result_double': None}] Qualite : 0.05307991528254644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26513045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26513045 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_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}" where mtr_portfolio_id = 26513045 and dashboard_run_id = 2240758 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`=26513045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768127, 0.05307991528254644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, '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 = 26514289 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': 3662803, 'mtr_portfolio_id': 26514289, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 58), 'result': '0.05834739802176517', 'result_long': None, 'result_double': None}] Qualite : 0.05834739802176517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514289 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_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}" where mtr_portfolio_id = 26514289 and dashboard_run_id = 2240758 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`=26514289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768128, 0.05834739802176517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, '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 = 26514642 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': 3662804, 'mtr_portfolio_id': 26514642, 'created_at': datetime.datetime(2025, 9, 4, 6, 16, 29), 'result': '0.06985876329804716', 'result_long': None, 'result_double': None}] Qualite : 0.06985876329804716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_06_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514642 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_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}" where mtr_portfolio_id = 26514642 and dashboard_run_id = 2240758 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`=26514642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768129, 0.06985876329804716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, '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 = 26515182 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': 3662805, 'mtr_portfolio_id': 26515182, 'created_at': datetime.datetime(2025, 9, 4, 6, 16, 59), 'result': '0.08199694817227696', 'result_long': None, 'result_double': None}] Qualite : 0.08199694817227696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515182 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_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}" where mtr_portfolio_id = 26515182 and dashboard_run_id = 2240758 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`=26515182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768130, 0.08199694817227696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, '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 = 26515774 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': 3662806, 'mtr_portfolio_id': 26515774, 'created_at': datetime.datetime(2025, 9, 4, 6, 17, 28), 'result': '0.04594157915341626', 'result_long': None, 'result_double': None}] Qualite : 0.04594157915341626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515774 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_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}" where mtr_portfolio_id = 26515774 and dashboard_run_id = 2240758 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`=26515774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768131, 0.04594157915341626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, '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 = 26516310 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': 3662807, 'mtr_portfolio_id': 26516310, 'created_at': datetime.datetime(2025, 9, 4, 6, 17, 59), 'result': '0.06671172116199682', 'result_long': None, 'result_double': None}] Qualite : 0.06671172116199682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516310 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_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}" where mtr_portfolio_id = 26516310 and dashboard_run_id = 2240758 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`=26516310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768132, 0.06671172116199682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, '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 = 26516863 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': 3662808, 'mtr_portfolio_id': 26516863, 'created_at': datetime.datetime(2025, 9, 4, 6, 18, 29), 'result': '0.06624665214224501', 'result_long': None, 'result_double': None}] Qualite : 0.06624665214224501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516863 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_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}" where mtr_portfolio_id = 26516863 and dashboard_run_id = 2240758 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`=26516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768133, 0.06624665214224501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, '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 = 26517331 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': 3662809, 'mtr_portfolio_id': 26517331, 'created_at': datetime.datetime(2025, 9, 4, 6, 19), 'result': '0.05536328619484043', 'result_long': None, 'result_double': None}] Qualite : 0.05536328619484043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_06_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517331 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_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}" where mtr_portfolio_id = 26517331 and dashboard_run_id = 2240758 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`=26517331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768134, 0.05536328619484043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, '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 = 26517892 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': 3662810, 'mtr_portfolio_id': 26517892, 'created_at': datetime.datetime(2025, 9, 4, 6, 19, 27), 'result': '0.04303722426482572', 'result_long': None, 'result_double': None}] Qualite : 0.04303722426482572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517892 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_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}" where mtr_portfolio_id = 26517892 and dashboard_run_id = 2240758 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`=26517892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768135, 0.04303722426482572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, '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 = 26518418 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': 3662811, 'mtr_portfolio_id': 26518418, 'created_at': datetime.datetime(2025, 9, 4, 6, 19, 59), 'result': '0.058210659713508646', 'result_long': None, 'result_double': None}] Qualite : 0.058210659713508646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518418 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_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}" where mtr_portfolio_id = 26518418 and dashboard_run_id = 2240758 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`=26518418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768136, 0.058210659713508646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, '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 = 26518831 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': 3662812, 'mtr_portfolio_id': 26518831, 'created_at': datetime.datetime(2025, 9, 4, 6, 20, 30), 'result': '0.05648689825518858', 'result_long': None, 'result_double': None}] Qualite : 0.05648689825518858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518831 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_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}" where mtr_portfolio_id = 26518831 and dashboard_run_id = 2240758 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`=26518831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768137, 0.05648689825518858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, '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 = 26519302 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': 3662813, 'mtr_portfolio_id': 26519302, 'created_at': datetime.datetime(2025, 9, 4, 6, 20, 37), 'result': '0.04651536629923985', 'result_long': None, 'result_double': None}] Qualite : 0.04651536629923985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26519302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_20_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26519302 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_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}" where mtr_portfolio_id = 26519302 and dashboard_run_id = 2240758 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`=26519302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768138, 0.04651536629923985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, '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 = 26521196 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': 3662920, 'mtr_portfolio_id': 26521196, 'created_at': datetime.datetime(2025, 9, 4, 6, 4), 'result': '0.03975237627567749', 'result_long': None, 'result_double': None}] Qualite : 0.03975237627567749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521196_04-09-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521196 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_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, 'pht': 3726}}" where mtr_portfolio_id = 26521196 and dashboard_run_id = 2240758 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`=26521196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768139, 0.03975237627567749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, '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 = 26521198 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': 3662921, 'mtr_portfolio_id': 26521198, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 58), 'result': '0.08810981605952489', 'result_long': None, 'result_double': None}] Qualite : 0.08810981605952489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521198 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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}" where mtr_portfolio_id = 26521198 and dashboard_run_id = 2240758 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`=26521198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768140, 0.08810981605952489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, '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 = 26521200 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': 3662922, 'mtr_portfolio_id': 26521200, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 30), 'result': '0.05914308535975234', 'result_long': None, 'result_double': None}] Qualite : 0.05914308535975234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521200 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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}" where mtr_portfolio_id = 26521200 and dashboard_run_id = 2240758 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`=26521200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768141, 0.05914308535975234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, '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 = 26521203 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': 3662923, 'mtr_portfolio_id': 26521203, 'created_at': datetime.datetime(2025, 9, 4, 6, 3), 'result': '0.07337767426580319', 'result_long': None, 'result_double': None}] Qualite : 0.07337767426580319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521203 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_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}" where mtr_portfolio_id = 26521203 and dashboard_run_id = 2240758 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`=26521203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768142, 0.07337767426580319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, '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 = 26521292 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': 3662934, 'mtr_portfolio_id': 26521292, 'created_at': datetime.datetime(2025, 9, 4, 7, 1), 'result': '0.06731247452286676', 'result_long': None, 'result_double': None}] Qualite : 0.06731247452286676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521292_04-09-2025_07_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521292 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_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, 'pht': 3726}}" where mtr_portfolio_id = 26521292 and dashboard_run_id = 2240758 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`=26521292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768143, 0.06731247452286676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, '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 = 26523116 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': 3663280, 'mtr_portfolio_id': 26523116, 'created_at': datetime.datetime(2025, 9, 4, 7, 1, 33), 'result': '0.053622880557909126', 'result_long': None, 'result_double': None}] Qualite : 0.053622880557909126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523116_04-09-2025_07_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523116 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_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, 'pht': 3726}}" where mtr_portfolio_id = 26523116 and dashboard_run_id = 2240758 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`=26523116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768144, 0.053622880557909126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, '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 = 26523130 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': 3663281, 'mtr_portfolio_id': 26523130, 'created_at': datetime.datetime(2025, 9, 4, 7, 0), 'result': '0.048149229687541505', 'result_long': None, 'result_double': None}] Qualite : 0.048149229687541505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523130_04-09-2025_07_00_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523130 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_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, 'pht': 3726}}" where mtr_portfolio_id = 26523130 and dashboard_run_id = 2240758 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`=26523130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768145, 0.048149229687541505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, '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 = 26523144 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': 3663282, 'mtr_portfolio_id': 26523144, 'created_at': datetime.datetime(2025, 9, 4, 7, 16, 57), 'result': '0.04953402944280438', 'result_long': None, 'result_double': None}] Qualite : 0.04953402944280438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523144_04-09-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523144 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_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, 'pht': 3726}}" where mtr_portfolio_id = 26523144 and dashboard_run_id = 2240758 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`=26523144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768146, 0.04953402944280438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, '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 = 26524019 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': 3663410, 'mtr_portfolio_id': 26524019, 'created_at': datetime.datetime(2025, 9, 4, 7, 17, 32), 'result': '0.04357979625475857', 'result_long': None, 'result_double': None}] Qualite : 0.04357979625475857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26524019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524019_04-09-2025_07_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26524019 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_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, 'pht': 3726}}" where mtr_portfolio_id = 26524019 and dashboard_run_id = 2240758 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`=26524019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768147, 0.04357979625475857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, '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 = 26524022 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': 3663411, 'mtr_portfolio_id': 26524022, 'created_at': datetime.datetime(2025, 9, 4, 8, 0, 29), 'result': '0.05854257460013273', 'result_long': None, 'result_double': None}] Qualite : 0.05854257460013273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26524022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524022_04-09-2025_08_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26524022 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_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, 'pht': 3726}}" where mtr_portfolio_id = 26524022 and dashboard_run_id = 2240758 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`=26524022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768148, 0.05854257460013273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, '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 = 26526039 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': 3663642, 'mtr_portfolio_id': 26526039, 'created_at': datetime.datetime(2025, 9, 4, 8, 0, 58), 'result': '0.07393756064831652', 'result_long': None, 'result_double': None}] Qualite : 0.07393756064831652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526039_04-09-2025_08_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526039 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_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, 'pht': 3726}}" where mtr_portfolio_id = 26526039 and dashboard_run_id = 2240758 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`=26526039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768149, 0.07393756064831652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, '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 = 26526041 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': 3663643, 'mtr_portfolio_id': 26526041, 'created_at': datetime.datetime(2025, 9, 4, 8, 16, 58), 'result': '0.058204342503370886', 'result_long': None, 'result_double': None}] Qualite : 0.058204342503370886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526041_04-09-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526041 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_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, 'pht': 3726}}" where mtr_portfolio_id = 26526041 and dashboard_run_id = 2240758 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`=26526041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768151, 0.058204342503370886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, '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 = 26526889 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': 3663742, 'mtr_portfolio_id': 26526889, 'created_at': datetime.datetime(2025, 9, 4, 8, 17, 36), 'result': '0.06085608171986234', 'result_long': None, 'result_double': None}] Qualite : 0.06085608171986234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526889_04-09-2025_08_17_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526889 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_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, 'pht': 3726}}" where mtr_portfolio_id = 26526889 and dashboard_run_id = 2240758 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`=26526889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768152, 0.06085608171986234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, '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 = 26526952 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': 3663758, 'mtr_portfolio_id': 26526952, 'created_at': datetime.datetime(2025, 9, 4, 8, 32, 59), 'result': '0.05939384208263903', 'result_long': None, 'result_double': None}] Qualite : 0.05939384208263903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526952 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_P26526952_04-09-2025_08_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, 'pht': 3726}}" where mtr_portfolio_id = 26526952 and dashboard_run_id = 2240758 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`=26526952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768153, 0.05939384208263903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, '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 = 26527552 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': 3663836, 'mtr_portfolio_id': 26527552, 'created_at': datetime.datetime(2025, 9, 4, 9, 0, 30), 'result': '0.053121259523909066', 'result_long': None, 'result_double': None}] Qualite : 0.053121259523909066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26527552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26527552_04-09-2025_09_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26527552 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_P26527552_04-09-2025_09_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26527570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26527571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26527572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26527573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26527574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26527575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26527576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26527577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26527578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26527579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26527580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26527581, 'pht': 3726}}" where mtr_portfolio_id = 26527552 and dashboard_run_id = 2240758 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`=26527552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768154, 0.053121259523909066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26527552_04-09-2025_09_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26527570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26527571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26527572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26527573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26527574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26527575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26527576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26527577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26527578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26527579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26527580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26527581, '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 = 26528718 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': 3663983, 'mtr_portfolio_id': 26528718, 'created_at': datetime.datetime(2025, 9, 4, 9, 59, 58), 'result': '0.051039267930604565', 'result_long': None, 'result_double': None}] Qualite : 0.051039267930604565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26528718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26528718_04-09-2025_09_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26528718 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_P26528718_04-09-2025_09_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26528726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26528727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26528728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26528729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26528730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26528731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26528732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26528733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26528734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26528735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26528737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26528738, 'pht': 3726}}" where mtr_portfolio_id = 26528718 and dashboard_run_id = 2240758 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`=26528718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768156, 0.051039267930604565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26528718_04-09-2025_09_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26528726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26528727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26528728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26528729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26528730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26528731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26528732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26528733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26528734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26528735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26528737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26528738, '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 = 26534825 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 = 26534825 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 = 26534825 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534825 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 = 26534825 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 = 26534825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534825_04-09-2025_18_01_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534825 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_P26534825_04-09-2025_18_01_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534965, 'pht': 3726}}" where mtr_portfolio_id = 26534825 and dashboard_run_id = 2240758 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 = 26534827 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 = 26534827 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 = 26534827 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534827 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 = 26534827 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 = 26534827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534827_04-09-2025_18_01_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534827 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_P26534827_04-09-2025_18_01_42.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26534942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534963, 'pht': 3726}}" where mtr_portfolio_id = 26534827 and dashboard_run_id = 2240758 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 = 26534829 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 = 26534829 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 = 26534829 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534829 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 = 26534829 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 = 26534829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534829_04-09-2025_18_00_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534829 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_P26534829_04-09-2025_18_00_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534865, 'pht': 3726}}" where mtr_portfolio_id = 26534829 and dashboard_run_id = 2240758 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 = 26534077 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 = 26534077 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 = 26534077 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534077 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 = 26534077 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 = 26534077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534077_04-09-2025_18_00_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534077 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_P26534077_04-09-2025_18_00_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534381, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534382, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534386, 'pht': 3726}}" where mtr_portfolio_id = 26534077 and dashboard_run_id = 2240758 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 = 26534078 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 = 26534078 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 = 26534078 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534078 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 = 26534078 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 = 26534078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534078_04-09-2025_17_44_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534078 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_P26534078_04-09-2025_17_44_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534349, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534358, 'pht': 3726}}" where mtr_portfolio_id = 26534078 and dashboard_run_id = 2240758 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 = 26534079 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 = 26534079 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 = 26534079 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534079 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 = 26534079 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 = 26534079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534079_04-09-2025_17_44_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534079 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_P26534079_04-09-2025_17_44_06.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534310, 'pht': 3726}}" where mtr_portfolio_id = 26534079 and dashboard_run_id = 2240758 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 = 26534080 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 = 26534080 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 = 26534080 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534080 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 = 26534080 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 = 26534080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534080_04-09-2025_17_43_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534080 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_P26534080_04-09-2025_17_43_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534239, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534255, 'pht': 3726}}" where mtr_portfolio_id = 26534080 and dashboard_run_id = 2240758 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 = 26534081 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 = 26534081 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 = 26534081 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534081 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 = 26534081 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 = 26534081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534081_04-09-2025_17_43_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534081 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_P26534081_04-09-2025_17_43_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534237, 'pht': 3726}}" where mtr_portfolio_id = 26534081 and dashboard_run_id = 2240758 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 = 26534082 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 = 26534082 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 = 26534082 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534082 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 = 26534082 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 = 26534082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534082_04-09-2025_17_43_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534082 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_P26534082_04-09-2025_17_43_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534174, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534185, 'pht': 3726}}" where mtr_portfolio_id = 26534082 and dashboard_run_id = 2240758 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 = 26534083 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 = 26534083 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 = 26534083 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26534083 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 = 26534083 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 = 26534083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26534083_04-09-2025_17_42_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26534083 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_P26534083_04-09-2025_17_42_39.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26534141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26534142, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26534143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26534144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26534145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26534146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26534147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26534148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26534149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26534150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26534151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26534152, 'pht': 3726}}" where mtr_portfolio_id = 26534083 and dashboard_run_id = 2240758 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 = 26533428 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 = 26533428 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 = 26533428 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533428 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 = 26533428 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 = 26533428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533428_04-09-2025_17_42_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533428 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_P26533428_04-09-2025_17_42_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26533542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533553, 'pht': 3726}}" where mtr_portfolio_id = 26533428 and dashboard_run_id = 2240758 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 = 26533432 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 = 26533432 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 = 26533432 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533432 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 = 26533432 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 = 26533432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533432_04-09-2025_17_30_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533432 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_P26533432_04-09-2025_17_30_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26533507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533518, 'pht': 3726}}" where mtr_portfolio_id = 26533432 and dashboard_run_id = 2240758 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 = 26533305 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 = 26533305 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 = 26533305 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533305 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 = 26533305 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 = 26533305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533305_04-09-2025_17_29_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533305 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_P26533305_04-09-2025_17_29_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533323, 'pht': 3726}}" where mtr_portfolio_id = 26533305 and dashboard_run_id = 2240758 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 = 26533307 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': 3664611, 'mtr_portfolio_id': 26533307, 'created_at': datetime.datetime(2025, 9, 4, 18, 7), 'result': '0.0634792062587651', 'result_long': None, 'result_double': None}] Qualite : 0.0634792062587651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26533307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533307_04-09-2025_18_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533307 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_P26533307_04-09-2025_18_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533369, 'pht': 3726}}" where mtr_portfolio_id = 26533307 and dashboard_run_id = 2240758 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`=26533307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768172, 0.0634792062587651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533307_04-09-2025_18_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533369, '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 = 26535186 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': 3664843, 'mtr_portfolio_id': 26535186, 'created_at': datetime.datetime(2025, 9, 4, 18, 17, 4), 'result': '0.03954886169332861', 'result_long': None, 'result_double': None}] Qualite : 0.03954886169332861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26535186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26535186_04-09-2025_18_17_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26535186 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_P26535186_04-09-2025_18_17_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26535196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26535197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26535198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26535199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26535200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26535201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26535202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26535203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26535204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26535205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26535206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26535207, 'pht': 3726}}" where mtr_portfolio_id = 26535186 and dashboard_run_id = 2240758 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`=26535186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768173, 0.03954886169332861, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26535186_04-09-2025_18_17_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26535196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26535197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26535198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26535199, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26535200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26535201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26535202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26535203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26535204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26535205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26535206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26535207, '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 = 26535592 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': 3664872, 'mtr_portfolio_id': 26535592, 'created_at': datetime.datetime(2025, 9, 4, 18, 33), 'result': '0.05952526945225031', 'result_long': None, 'result_double': None}] Qualite : 0.05952526945225031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26535592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26535592_04-09-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26535592 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_P26535592_04-09-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26535600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26535601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26535602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26535603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26535604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26535605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26535606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26535607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26535608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26535609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26535610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26535611, 'pht': 3726}}" where mtr_portfolio_id = 26535592 and dashboard_run_id = 2240758 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`=26535592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768174, 0.05952526945225031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26535592_04-09-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26535600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26535601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26535602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26535603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26535604, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26535605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26535606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26535607, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26535608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26535609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26535610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26535611, '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 = 26536159 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': 3664950, 'mtr_portfolio_id': 26536159, 'created_at': datetime.datetime(2025, 9, 4, 18, 48, 58), 'result': '0.041171924408261534', 'result_long': None, 'result_double': None}] Qualite : 0.041171924408261534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26536159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26536159_04-09-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26536159 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_P26536159_04-09-2025_18_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26536187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26536188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26536189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26536190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26536191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26536192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26536193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26536194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26536195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26536196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26536197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26536198, 'pht': 3726}}" where mtr_portfolio_id = 26536159 and dashboard_run_id = 2240758 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`=26536159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768175, 0.041171924408261534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26536159_04-09-2025_18_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26536187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26536188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26536189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26536190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26536191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26536192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26536193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26536194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26536195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26536196, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26536197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26536198, '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 = 26536721 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': 3665012, 'mtr_portfolio_id': 26536721, 'created_at': datetime.datetime(2025, 9, 4, 19, 3, 3), 'result': '0.059587994179795524', 'result_long': None, 'result_double': None}] Qualite : 0.059587994179795524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26536721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26536721_04-09-2025_19_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26536721 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_P26536721_04-09-2025_19_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26536735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26536736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26536737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26536738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26536739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26536740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26536741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26536742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26536743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26536744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26536745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26536746, 'pht': 3726}}" where mtr_portfolio_id = 26536721 and dashboard_run_id = 2240758 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`=26536721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768176, 0.059587994179795524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26536721_04-09-2025_19_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26536735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26536736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26536737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26536738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26536739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26536740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26536741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26536742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26536743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26536744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26536745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26536746, '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 = 26537305 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': 3665088, 'mtr_portfolio_id': 26537305, 'created_at': datetime.datetime(2025, 9, 4, 19, 17, 3), 'result': '0.05435100383589278', 'result_long': None, 'result_double': None}] Qualite : 0.05435100383589278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26537305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26537305_04-09-2025_19_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26537305 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_P26537305_04-09-2025_19_17_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26537353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26537354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26537355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26537356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26537357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26537358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26537359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26537360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26537361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26537362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26537363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26537364, 'pht': 3726}}" where mtr_portfolio_id = 26537305 and dashboard_run_id = 2240758 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`=26537305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768177, 0.05435100383589278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26537305_04-09-2025_19_17_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26537353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26537354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26537355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26537356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26537357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26537358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26537359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26537360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26537361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26537362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26537363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26537364, '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 = 26538058 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': 3665170, 'mtr_portfolio_id': 26538058, 'created_at': datetime.datetime(2025, 9, 4, 19, 33, 3), 'result': '0.04963248369613384', 'result_long': None, 'result_double': None}] Qualite : 0.04963248369613384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26538058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26538058_04-09-2025_19_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26538058 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_P26538058_04-09-2025_19_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26538069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26538070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26538071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26538072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26538073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26538074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26538075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26538076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26538077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26538078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26538079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26538080, 'pht': 3726}}" where mtr_portfolio_id = 26538058 and dashboard_run_id = 2240758 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`=26538058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768178, 0.04963248369613384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26538058_04-09-2025_19_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26538069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26538070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26538071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26538072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26538073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26538074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26538075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26538076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26538077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26538078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26538079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26538080, '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 = 26538968 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': 3665275, 'mtr_portfolio_id': 26538968, 'created_at': datetime.datetime(2025, 9, 4, 19, 47, 3), 'result': '0.06518388486993729', 'result_long': None, 'result_double': None}] Qualite : 0.06518388486993729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26538968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26538968_04-09-2025_19_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26538968 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_P26538968_04-09-2025_19_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26538993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26538994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26538995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26538996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26538997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26538999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26539000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26539001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26539002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26539003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26539004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26539005, 'pht': 3726}}" where mtr_portfolio_id = 26538968 and dashboard_run_id = 2240758 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`=26538968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768179, 0.06518388486993729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26538968_04-09-2025_19_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26538993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26538994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26538995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26538996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26538997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26538999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26539000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26539001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26539002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26539003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26539004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26539005, '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 = 26539763 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': 3665377, 'mtr_portfolio_id': 26539763, 'created_at': datetime.datetime(2025, 9, 4, 20, 3, 30), 'result': '0.06851329137655691', 'result_long': None, 'result_double': None}] Qualite : 0.06851329137655691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26539763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26539763_04-09-2025_20_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26539763 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_P26539763_04-09-2025_20_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26539782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26539783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26539784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26539785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26539786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26539787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26539788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26539790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26539792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26539795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26539797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26539799, 'pht': 3726}}" where mtr_portfolio_id = 26539763 and dashboard_run_id = 2240758 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`=26539763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768180, 0.06851329137655691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26539763_04-09-2025_20_03_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26539782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26539783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26539784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26539785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26539786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26539787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26539788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26539790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26539792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26539795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26539797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26539799, '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 = 26540663 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': 3665446, 'mtr_portfolio_id': 26540663, 'created_at': datetime.datetime(2025, 9, 4, 20, 17), 'result': '0.07273041442112493', 'result_long': None, 'result_double': None}] Qualite : 0.07273041442112493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26540663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26540663_04-09-2025_20_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26540663 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_P26540663_04-09-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26540672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26540673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26540674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26540675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26540676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26540677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26540678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26540679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26540680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26540681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26540682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26540683, 'pht': 3726}}" where mtr_portfolio_id = 26540663 and dashboard_run_id = 2240758 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`=26540663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768181, 0.07273041442112493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26540663_04-09-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26540672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26540673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26540674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26540675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26540676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26540677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26540678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26540679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26540680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26540681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26540682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26540683, '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 = 26541550 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': 3665529, 'mtr_portfolio_id': 26541550, 'created_at': datetime.datetime(2025, 9, 4, 20, 33, 7), 'result': '0.05033330910380328', 'result_long': None, 'result_double': None}] Qualite : 0.05033330910380328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26541550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26541550_04-09-2025_20_33_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26541550 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_P26541550_04-09-2025_20_33_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26541564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26541565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26541566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26541567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26541568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26541569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26541570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26541571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26541572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26541573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26541574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26541575, 'pht': 3726}}" where mtr_portfolio_id = 26541550 and dashboard_run_id = 2240758 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`=26541550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768182, 0.05033330910380328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26541550_04-09-2025_20_33_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26541564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26541565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26541566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26541567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26541568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26541569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26541570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26541571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26541572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26541573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26541574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26541575, '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 = 26542332 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': 3665613, 'mtr_portfolio_id': 26542332, 'created_at': datetime.datetime(2025, 9, 4, 21, 3, 1), 'result': '0.0625670418092201', 'result_long': None, 'result_double': None}] Qualite : 0.0625670418092201 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26542332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26542332_04-09-2025_21_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26542332 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_P26542332_04-09-2025_21_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26542375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26542376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26542377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26542378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26542379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26542380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26542381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26542382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26542383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26542384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26542385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26542386, 'pht': 3726}}" where mtr_portfolio_id = 26542332 and dashboard_run_id = 2240758 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`=26542332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768183, 0.0625670418092201, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26542332_04-09-2025_21_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26542375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26542376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26542377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26542378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26542379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26542380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26542381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26542382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26542383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26542384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26542385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26542386, '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 = 26543622 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': 3665731, 'mtr_portfolio_id': 26543622, 'created_at': datetime.datetime(2025, 9, 4, 21, 17, 29), 'result': '0.0523663357898448', 'result_long': None, 'result_double': None}] Qualite : 0.0523663357898448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26543622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26543622_04-09-2025_21_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26543622 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_P26543622_04-09-2025_21_17_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26543644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26543645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26543646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26543647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26543648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26543649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26543650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26543651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26543652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26543653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26543654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26543655, 'pht': 3726}}" where mtr_portfolio_id = 26543622 and dashboard_run_id = 2240758 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`=26543622 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768184, 0.0523663357898448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26543622_04-09-2025_21_17_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26543644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26543645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26543646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26543647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26543648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26543649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26543650, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26543651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26543652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26543653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26543654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26543655, '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 = 26544247 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': 3665773, 'mtr_portfolio_id': 26544247, 'created_at': datetime.datetime(2025, 9, 4, 21, 33), 'result': '0.03641153255141462', 'result_long': None, 'result_double': None}] Qualite : 0.03641153255141462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26544247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26544247_04-09-2025_21_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26544247 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_P26544247_04-09-2025_21_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26544309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26544310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26544311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26544312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26544313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26544314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26544315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26544316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26544317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26544318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26544319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26544320, 'pht': 3726}}" where mtr_portfolio_id = 26544247 and dashboard_run_id = 2240758 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`=26544247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768185, 0.03641153255141462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26544247_04-09-2025_21_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26544309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26544310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26544311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26544312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26544313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26544314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26544315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26544316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26544317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26544318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26544319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26544320, '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 = 26545016 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': 3665839, 'mtr_portfolio_id': 26545016, 'created_at': datetime.datetime(2025, 9, 4, 21, 47, 31), 'result': '0.04787451903717756', 'result_long': None, 'result_double': None}] Qualite : 0.04787451903717756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26545016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26545016_04-09-2025_21_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26545016 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_P26545016_04-09-2025_21_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26545039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26545040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26545041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26545042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26545043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26545044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26545045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26545046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26545047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26545048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26545049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26545050, 'pht': 3726}}" where mtr_portfolio_id = 26545016 and dashboard_run_id = 2240758 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`=26545016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768186, 0.04787451903717756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26545016_04-09-2025_21_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26545039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26545040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26545041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26545042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26545043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26545044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26545045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26545046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26545047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26545048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26545049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26545050, '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 = 26545727 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': 3665928, 'mtr_portfolio_id': 26545727, 'created_at': datetime.datetime(2025, 9, 4, 22, 3), 'result': '0.051586038979083315', 'result_long': None, 'result_double': None}] Qualite : 0.051586038979083315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26545727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26545727_04-09-2025_22_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26545727 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_P26545727_04-09-2025_22_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26545734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26545735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26545736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26545738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26545739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26545741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26545742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26545743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26545744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26545745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26545746, 'pht': 3726}}" where mtr_portfolio_id = 26545727 and dashboard_run_id = 2240758 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`=26545727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768187, 0.051586038979083315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26545727_04-09-2025_22_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26545734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26545735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26545736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26545738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26545739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26545740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26545741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26545742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26545743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26545744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26545745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26545746, '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 = 26546418 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': 3666054, 'mtr_portfolio_id': 26546418, 'created_at': datetime.datetime(2025, 9, 4, 22, 11, 1), 'result': '0.042968553638007494', 'result_long': None, 'result_double': None}] Qualite : 0.042968553638007494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26546418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26546418_04-09-2025_22_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26546418 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_P26546418_04-09-2025_22_11_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26546458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26546459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26546460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26546461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26546463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26546464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26546466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26546467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26546468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26546469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26546470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26546471, 'pht': 3726}}" where mtr_portfolio_id = 26546418 and dashboard_run_id = 2240758 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`=26546418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14768188, 0.042968553638007494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26546418_04-09-2025_22_11_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26546458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26546459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26546460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26546461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26546463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26546464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26546466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26546467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26546468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26546469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26546470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26546471, '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 (26511239,26512008,26512746,26513045,26514289,26514642,26515182,26515774,26516310,26516863,26517331,26517892,26518418,26518831,26519302,26521196,26521198,26521200,26521203,26521292,26523116,26523130,26523144,26524019,26524022,26526039,26526041,26526889,26526952,26527552,26528718,26534825,26534827,26534829,26534077,26534078,26534079,26534080,26534081,26534082,26534083,26533428,26533432,26533305,26533307,26535186,26535592,26536159,26536721,26537305,26538058,26538968,26539763,26540663,26541550,26542332,26543622,26544247,26545016,26545727,26546418) result : ((1381310396,), (1381310399,), (1381311379,), (1381311381,), (1381311384,), (1381312220,), (1381312223,), (1381312226,), (1381312229,), (1381312232,), (1381312235,), (1381313264,), (1381313267,), (1381313270,), (1381313273,), (1381313276,), (1381313862,), (1381313864,), (1381313866,), (1381313868,), (1381314117,), (1381314118,), (1381314119,), (1381314120,), (1381314122,), (1381314348,), (1381314350,), (1381314353,), (1381314355,), (1381314357,), (1381314752,), (1381314827,), (1381314829,), (1381314831,), (1381314833,), (1381314835,), (1381315040,), (1381315041,), (1381315042,), (1381315043,), (1381315098,), (1381315099,), (1381315100,), (1381315102,), (1381315103,), (1381315104,), (1381315270,), (1381315271,), (1381315272,), (1381315273,), (1381315274,), (1381315580,), (1381315581,), (1381315583,), (1381315584,), (1381315585,), (1381315586,), (1381315682,), (1381315683,), (1381315684,), (1381315685,), (1381315729,), (1381315730,), (1381315731,), (1381315732,), (1381315826,), (1381315828,), (1381315830,), (1381315832,), (1381316466,), (1381316707,), (1381316463,), (1381316465,), (1381316658,), (1381316659,), (1381316661,), (1381316663,), (1381316665,), (1381316667,), (1381316706,), (1381316821,), (1381316823,), (1381316825,), (1381316827,), (1381316829,), (1381316831,), (1381317023,), (1381317025,), (1381317027,), (1381317796,), (1381317801,), (1381317806,), (1381319184,), (1381319187,), (1381319191,), (1381319195,), (1381319199,), (1381319652,), (1381319654,), (1381319656,), (1381319658,), (1381319660,), (1381319662,), (1381320119,), (1381320121,), (1381320123,), (1381320125,), (1381321423,), (1381321431,), (1381321439,), (1381321449,), (1381321456,), (1381322593,), (1381322596,), (1381322598,), (1381322600,), (1381322602,), (1381322604,), (1381323215,), (1381323216,), (1381323217,), (1381323218,), (1381323940,), (1381323941,), (1381323942,), (1381323943,), (1381324018,), (1381324019,), (1381324020,), (1381324021,), (1381324023,), (1381324200,), (1381324202,), (1381324204,), (1381324206,), (1381324610,), (1381324611,), (1381324613,), (1381324616,), (1381324878,), (1381324875,), (1381324876,), (1381324877,), (1381325084,), (1381325086,), (1381325088,), (1381325089,), (1381325320,), (1381325321,), (1381325322,), (1381325323,), (1381325324,), (1381325325,), (1381325518,), (1381325521,), (1381325523,), (1381325525,), (1381325907,), (1381325909,), (1381325911,), (1381325913,), (1381326296,), (1381326298,), (1381326300,), (1381326302,), (1381326585,), (1381329291,), (1381329294,), (1381329706,), (1381329708,), (1381329710,), (1381329712,), (1381329714,), (1381329716,), (1381330124,), (1381330127,), (1381330130,), (1381330133,), (1381330847,), (1381330853,), (1381330858,), (1381331946,), (1381331949,), (1381331952,), (1381331955,), (1381332414,), (1381332404,), (1381332406,), (1381332408,), (1381332410,), (1381332412,), (1381333367,), (1381333370,), (1381333373,), (1381333376,), (1381333379,), (1381333941,), (1381333943,), (1381333945,), (1381333947,), (1381333949,), (1381334631,), (1381334634,), (1381334637,), (1381335104,), (1381335106,), (1381335108,), (1381335110,), (1381335807,), (1381335809,), (1381335811,), (1381335814,), (1381335816,), (1381336258,), (1381336259,), (1381336260,), (1381336261,), (1381336262,), (1381336263,), (1381336801,), (1381336803,), (1381336805,), (1381336966,), (1381336967,), (1381336968,), (1381336969,), (1381336970,), (1381336971,), (1381337452,), (1381337455,), (1381337458,), (1381337461,), (1381337464,), (1381337467,), (1381337643,), (1381337644,), (1381337645,), (1381337646,), (1381337647,), (1381337686,), (1381337687,), (1381337688,), (1381337735,), (1381345142,), (1381345189,), (1381345190,), (1381345259,), (1381345260,), (1381345262,), (1381345263,), (1381345302,), (1381345304,), (1381345305,), (1381345347,), (1381345348,), (1381345349,), (1381345394,), (1381345395,), (1381345396,), (1381345397,), (1381345398,), (1381345399,), (1381345436,), (1381345437,), (1381345438,), (1381345439,), (1381345440,), (1381345486,), (1381345487,), (1381345488,), (1381345490,), (1381345528,), (1381345529,), (1381345530,), (1381345531,), (1381345577,), (1381345585,), (1381345586,), (1381345587,), (1381345589,), (1381345633,), (1381345634,), (1381345635,), (1381345636,), (1381345637,), (1381345638,), (1381345679,), (1381345680,), (1381345681,), (1381345682,), (1381345717,), (1381345718,), (1381345719,), (1381345915,), (1381345919,), (1381345923,), (1381345927,), (1381345930,), (1381345999,), (1381346000,), (1381346001,), (1381346002,), (1381346003,), (1381346049,), (1381346044,), (1381346045,), (1381346046,), (1381346048,), (1381346114,), (1381346115,), (1381346116,), (1381346117,), (1381346182,), (1381346183,), (1381346232,), (1381346254,), (1381346255,), (1381346256,), (1381346258,), (1381346318,), (1381346319,), (1381346320,), (1381346321,), (1381346322,), (1381346323,), (1381346370,), (1381346371,), (1381346372,), (1381346428,), (1381346430,), (1381346431,), (1381346432,), (1381346433,), (1381346500,), (1381346501,), (1381346502,), (1381346503,), (1381346504,), (1381346558,), (1381346559,), (1381346560,), (1381346561,), (1381346562,), (1381346598,), (1381346599,), (1381346600,), (1381346601,), (1381346602,), (1381346641,), (1381346642,), (1381346679,), (1381346680,), (1381346681,), (1381346682,), (1381346683,), (1381346735,), (1381346736,), (1381346737,), (1381346738,), (1381346739,), (1381346740,), (1381346942,), (1381346944,), (1381346946,), (1381346948,), (1381347376,), (1381347369,), (1381347370,), (1381347372,), (1381347374,), (1381347700,), (1381347702,), (1381347703,), (1381347704,), (1381347879,), (1381347880,), (1381347881,), (1381347882,), (1381347883,), (1381347884,), (1381347952,), (1381347953,), (1381347954,), (1381347955,), (1381347956,), (1381347994,), (1381347995,), (1381347996,), (1381347997,), (1381347998,), (1381347999,), (1381348046,), (1381348047,), (1381348048,), (1381348049,), (1381348518,), (1381348521,), (1381348524,), (1381349221,), (1381349223,), (1381349739,), (1381349741,), (1381349743,), (1381349745,), (1381349747,), (1381349959,), (1381350079,), (1381350357,), (1381350359,), (1381350361,), (1381350363,), (1381350365,), (1381350776,), (1381350778,), (1381350780,), (1381350782,), (1381350784,), (1381351159,), (1381351160,), (1381351161,), (1381351162,), (1381351210,), (1381351212,), (1381351214,), (1381351216,), (1381351218,), (1381351506,), (1381351498,), (1381351500,), (1381351502,), (1381351504,), (1381351621,), (1381351622,), (1381351624,), (1381351626,), (1381351629,), (1381351703,), (1381351704,), (1381351743,), (1381351744,), (1381351745,), (1381351746,), (1381351783,), (1381351784,), (1381351785,), (1381351786,), (1381351787,), (1381351830,), (1381351831,), (1381351832,), (1381351833,), (1381351889,), (1381351890,), (1381351891,), (1381351892,), (1381351929,), (1381351930,), (1381351931,), (1381351932,), (1381352023,), (1381352025,), (1381352027,), (1381352029,), (1381352031,), (1381352409,), (1381352411,), (1381352413,), (1381352728,), (1381352731,), (1381352734,), (1381352737,), (1381352740,), (1381352743,), (1381353097,), (1381353099,), (1381353101,), (1381353103,), (1381353105,), (1381353107,), (1381353494,), (1381353496,), (1381353498,), (1381353500,), (1381353811,), (1381353813,), (1381353814,), (1381353815,), (1381353816,), (1381353879,), (1381353880,), (1381353881,), (1381353882,), (1381353883,), (1381353931,), (1381353928,), (1381353929,), (1381353930,), (1381354265,), (1381354267,), (1381354269,), (1381354271,), (1381354670,), (1381354671,), (1381354672,), (1381354673,), (1381354853,), (1381354855,), (1381354857,), (1381354859,), (1381354861,), (1381354863,), (1381354941,), (1381354942,), (1381354943,), (1381354945,), (1381354946,), (1381355150,), (1381355152,), (1381355154,), (1381355156,), (1381355455,), (1381355456,), (1381355457,), (1381355458,), (1381355541,), (1381355542,), (1381355543,), (1381355544,), (1381355580,), (1381355581,), (1381355582,), (1381355626,), (1381355627,), (1381355629,), (1381355630,), (1381355631,), (1381355632,), (1381355666,), (1381355667,), (1381355668,), (1381355712,), (1381355713,), (1381355714,), (1381355751,), (1381355752,), (1381355753,), (1381355754,), (1381355802,), (1381355803,), (1381355804,), (1381355805,), (1381355806,), (1381355898,), (1381355899,), (1381355901,), (1381355943,), (1381355942,), (1381355987,), (1381355988,), (1381355989,), (1381356042,), (1381356043,), (1381356044,), (1381356045,), (1381356085,), (1381356086,), (1381356087,), (1381356088,), (1381356126,), (1381356127,), (1381356128,), (1381356129,), (1381356130,), (1381356220,), (1381356221,), (1381356278,), (1381356279,), (1381356280,), (1381356281,), (1381356282,), (1381356343,), (1381356344,), (1381356345,), (1381356346,), (1381356779,), (1381356781,), (1381356783,), (1381356785,), (1381356787,), (1381357239,), (1381357241,), (1381357243,), (1381357649,), (1381357651,), (1381357653,), (1381357655,), (1381358020,), (1381358021,), (1381358022,), (1381358023,), (1381358106,), (1381358107,), (1381358108,), (1381358579,), (1381358583,), (1381358587,), (1381358771,), (1381358775,), (1381358779,), (1381359839,), (1381359823,), (1381359827,), (1381359831,), (1381359835,), (1381361021,), (1381361026,), (1381361031,), (1381361719,), (1381361721,), (1381361723,), (1381362620,), (1381362623,), (1381362872,), (1381362873,), (1381362874,), (1381362917,), (1381362918,), (1381362919,), (1381362966,), (1381362967,), (1381363007,), (1381363008,), (1381363009,), (1381363010,), (1381363184,), (1381363186,), (1381363188,), (1381363190,), (1381363192,), (1381363576,), (1381363579,), (1381363581,), (1381363584,), (1381363976,), (1381363978,), (1381363980,), (1381363982,), (1381363984,), (1381364376,), (1381364378,), (1381364380,), (1381364382,), (1381364384,), (1381364386,), (1381364753,), (1381364754,), (1381364755,), (1381364805,), (1381364806,), (1381364807,), (1381364808,), (1381364845,), (1381364846,), (1381364847,), (1381364849,), (1381364850,), (1381365244,), (1381365237,), (1381365240,), (1381365242,), (1381365612,), (1381365614,), (1381365616,), (1381365784,), (1381365786,), (1381365788,), (1381365790,), (1381365964,), (1381365966,), (1381365968,), (1381365970,), (1381366429,), (1381366432,), (1381366435,), (1381366438,), (1381366842,), (1381366843,), (1381366844,), (1381366845,), (1381366846,), (1381366847,), (1381367136,), (1381367318,), (1381367400,), (1381367438,), (1381367439,), (1381367440,), (1381367525,), (1381367526,), (1381367527,), (1381367567,), (1381367568,), (1381367569,), (1381367570,), (1381367613,), (1381367614,), (1381367615,), (1381367616,), (1381367617,), (1381367658,), (1381367655,), (1381367656,), (1381367657,), (1381367701,), (1381367702,), (1381367703,), (1381367704,), (1381367705,), (1381367955,), (1381367956,), (1381367957,), (1381368174,), (1381368176,), (1381368177,), (1381368178,), (1381368179,), (1381368219,), (1381368220,), (1381368221,), (1381368222,), (1381368270,), (1381368271,), (1381368272,), (1381368273,), (1381368310,), (1381368311,), (1381368312,), (1381368314,), (1381368315,), (1381368393,), (1381368394,), (1381368395,), (1381368430,), (1381368431,), (1381368432,), (1381368434,), (1381368435,), (1381368479,), (1381368551,), (1381368552,), (1381368553,), (1381368583,), (1381368585,), (1381368586,), (1381368587,), (1381368639,), (1381368640,), (1381368641,), (1381368642,), (1381368682,), (1381368683,), (1381368729,), (1381368725,), (1381368726,), (1381368728,), (1381368861,), (1381368862,), (1381368863,), (1381368864,), (1381368865,), (1381368989,), (1381368990,), (1381368991,), (1381368992,), (1381368993,), (1381369029,), (1381369030,), (1381369031,), (1381369032,), (1381369074,), (1381369075,), (1381369076,), (1381369123,), (1381369124,), (1381369125,), (1381369126,), (1381369127,), (1381369170,), (1381369171,), (1381369172,), (1381369173,), (1381369174,), (1381369229,), (1381369230,), (1381369231,), (1381369232,), (1381369233,), (1381369273,), (1381369274,), (1381369275,), (1381369277,), (1381369310,), (1381369311,), (1381369312,), (1381369353,), (1381369354,), (1381369355,), (1381369388,), (1381369389,), (1381369390,), (1381369391,), (1381369392,), (1381369393,), (1381369751,), (1381369753,), (1381369755,), (1381370225,), (1381370229,), (1381370232,), (1381370921,), (1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,), (1381377745,), (1381377747,), (1381378419,), (1381378420,), (1381378421,), (1381378463,), (1381378464,), (1381378465,), (1381378506,), (1381378507,), (1381378554,), (1381378555,), (1381378627,), (1381378628,), (1381378629,), (1381378630,), (1381378631,), (1381378673,), (1381378674,), (1381378723,), (1381378724,), (1381378725,), (1381378726,), (1381378727,), (1381378775,), (1381378771,), (1381378772,), (1381378773,), (1381378774,), (1381378822,), (1381378823,), (1381378824,), (1381378825,), (1381378826,), (1381378909,), (1381378910,), (1381378911,), (1381378912,), (1381378953,), (1381378954,), (1381378955,), (1381378956,), (1381379022,), (1381379023,), (1381379024,), (1381379025,), (1381379026,), (1381379027,), (1381379077,), (1381379078,), (1381379079,), (1381379080,), (1381379081,), (1381379082,), (1381379164,), (1381379165,), (1381379166,), (1381379207,), (1381379208,), (1381379209,), (1381379210,), (1381379211,), (1381379212,), (1381379324,), (1381379325,), (1381379326,), (1381379327,), (1381379328,), (1381379380,), (1381379381,), (1381379382,), (1381379383,), (1381379453,), (1381379454,), (1381379455,), (1381379456,), (1381379457,), (1381379530,), (1381379531,), (1381379532,), (1381379533,), (1381379624,), (1381379625,), (1381379626,), (1381379627,), (1381379628,), (1381379629,), (1381379669,), (1381379670,), (1381379671,), (1381379672,), (1381379673,), (1381379674,), (1381379738,), (1381379739,), (1381379740,), (1381379741,), (1381379793,), (1381379788,), (1381379789,), (1381379790,), (1381379791,), (1381379792,), (1381379852,), (1381379853,), (1381379854,), (1381379855,), (1381379856,), (1381379857,), (1381379945,), (1381379946,), (1381379947,), (1381379948,), (1381379949,), (1381379995,), (1381379996,), (1381379997,), (1381379998,), (1381379999,), (1381380000,), (1381380037,), (1381380039,), (1381380219,), (1381380590,), (1381380586,), (1381380587,), (1381380588,), (1381380589,), (1381380682,), (1381380683,), (1381380684,), (1381380685,), (1381380686,), (1381380726,), (1381380727,), (1381380728,), (1381380729,), (1381380786,), (1381380787,), (1381380788,), (1381380789,), (1381380836,), (1381380837,), (1381380838,), (1381380839,), (1381380840,), (1381380841,), (1381380881,), (1381380882,), (1381380887,), (1381380889,), (1381380935,), (1381380936,), (1381380981,), (1381380982,), (1381380983,), (1381381013,), (1381381014,), (1381381015,), (1381381016,), (1381381017,), (1381381018,), (1381381057,), (1381381058,), (1381381059,), (1381381060,), (1381381061,), (1381381075,), (1381381076,), (1381381077,), (1381381078,), (1381381079,), (1381381080,), (1381381152,), (1381381153,), (1381381154,), (1381381155,), (1381381759,), (1381381762,), (1381381766,), (1381381769,), (1381381875,), (1381381878,), (1381381881,), (1381381885,), (1381381888,), (1381382490,), (1381382481,), (1381382483,), (1381382486,), (1381382488,), (1381383011,), (1381383013,), (1381383015,), (1381383017,), (1381383019,), (1381383021,), (1381383556,), (1381383559,), (1381383562,), (1381383565,), (1381383568,), (1381384064,), (1381384066,), (1381384068,), (1381384070,), (1381384290,), (1381384291,), (1381384292,), (1381384293,), (1381384294,), (1381384295,), (1381384497,), (1381384499,), (1381384501,), (1381384503,), (1381384505,), (1381384764,), (1381384765,), (1381384766,), (1381384767,), (1381384768,), (1381384769,), (1381384823,), (1381384825,), (1381384826,), (1381384827,), (1381384881,), (1381384882,), (1381384884,), (1381384885,), (1381384886,), (1381384887,), (1381384929,), (1381384930,), (1381384931,), (1381384932,), (1381384933,), (1381384965,), (1381384966,), (1381384967,), (1381384968,), (1381385023,), (1381385024,), (1381385025,), (1381385026,), (1381385059,), (1381385060,), (1381385061,), (1381385062,), (1381385063,), (1381385096,), (1381385097,), (1381385098,), (1381385099,), (1381385134,), (1381385135,), (1381385159,), (1381385156,), (1381385157,), (1381385158,), (1381385198,), (1381385199,), (1381385200,), (1381385201,), (1381385241,), (1381385242,), (1381385243,), (1381385244,), (1381385245,), (1381385284,), (1381385285,), (1381385286,), (1381385287,), (1381385288,), (1381385344,), (1381385345,), (1381385378,), (1381385379,), (1381385380,), (1381385428,), (1381385429,), (1381385430,), (1381385431,), (1381385432,), (1381385433,), (1381385468,), (1381385469,), (1381385470,), (1381385471,), (1381385472,), (1381385519,), (1381385520,), (1381385521,), (1381385522,), (1381385560,), (1381385561,), (1381385609,), (1381385611,), (1381385613,), (1381385614,), (1381385615,), (1381385655,), (1381385656,), (1381385723,), (1381385724,), (1381385725,), (1381385726,), (1381385765,), (1381385766,), (1381385827,), (1381385828,), (1381385830,), (1381385831,), (1381385881,), (1381385879,), (1381385880,), (1381385952,), (1381385955,), (1381385956,), (1381385957,), (1381386019,), (1381386020,), (1381386021,), (1381386022,), (1381386023,), (1381386063,), (1381386064,), (1381386236,), (1381386237,), (1381386238,), (1381386273,), (1381386274,), (1381386275,), (1381386276,), (1381386277,), (1381386278,), (1381386330,), (1381386331,), (1381386332,), (1381386333,), (1381386334,), (1381386335,), (1381386379,), (1381386380,), (1381386381,), (1381386382,), (1381386436,), (1381386437,), (1381386438,), (1381386439,), (1381386440,), (1381386441,), (1381386475,), (1381386476,), (1381386477,), (1381386478,), (1381386479,), (1381386480,), (1381386530,), (1381386531,), (1381386532,), (1381386570,), (1381386571,), (1381386572,), (1381386573,), (1381386574,), (1381386575,), (1381386626,), (1381386622,), (1381386623,), (1381386624,), (1381386625,), (1381386662,), (1381386663,), (1381386664,), (1381386665,), (1381386754,), (1381386756,), (1381386758,), (1381386759,), (1381386793,), (1381386794,), (1381386795,), (1381386796,), (1381386854,), (1381386855,), (1381386856,), (1381386857,), (1381386858,), (1381386859,), (1381386892,), (1381386893,), (1381386894,), (1381386895,), (1381386941,), (1381386942,), (1381386943,), (1381386944,), (1381386977,), (1381386978,), (1381386979,), (1381386980,), (1381386981,), (1381386982,), (1381387022,), (1381387023,), (1381387024,), (1381387025,), (1381387026,), (1381387027,), (1381387064,), (1381387065,), (1381387066,), (1381387067,), (1381387106,), (1381387107,), (1381387108,), (1381387109,), (1381387111,), (1381387146,), (1381387148,), (1381387149,), (1381387228,), (1381387229,), (1381387230,), (1381387231,), (1381387232,), (1381388256,), (1381388259,), (1381388262,), (1381388265,), (1381388268,), (1381388347,), (1381388348,), (1381388350,), (1381388352,), (1381388853,), (1381388844,), (1381388849,), (1381389552,), (1381389554,), (1381389556,), (1381389558,), (1381389560,), (1381389563,), (1381390016,), (1381390018,), (1381390020,), (1381390022,), (1381390024,), (1381390026,), (1381390179,), (1381390180,), (1381390436,), (1381390437,), (1381390438,), (1381390439,), (1381390440,), (1381390441,), (1381390500,), (1381390501,), (1381390502,), (1381390503,), (1381390570,), (1381390571,), (1381390572,), (1381390573,), (1381390653,), (1381390654,), (1381390655,), (1381390656,), (1381390657,), (1381390658,), (1381390730,), (1381390731,), (1381390732,), (1381390733,), (1381390734,), (1381390735,), (1381390736,), (1381390737,), (1381390738,), (1381390739,), (1381390740,), (1381390741,), (1381390742,), (1381390743,), (1381390744,), (1381390745,), (1381390746,), (1381390747,), (1381390811,), (1381390812,), (1381390813,), (1381391735,), (1381391729,), (1381391731,), (1381391733,), (1381391881,), (1381391884,), (1381391886,), (1381391888,), (1381391996,), (1381391998,), (1381391999,), (1381392000,), (1381392001,), (1381392002,), (1381392095,), (1381392096,), (1381392097,), (1381392098,), (1381392262,), (1381392263,), (1381392264,), (1381392398,), (1381392399,), (1381392400,), (1381392401,), (1381392402,), (1381392403,), (1381392452,), (1381392453,), (1381392454,), (1381392455,), (1381392456,), (1381392457,), (1381392538,), (1381392540,), (1381392542,), (1381392545,), (1381392547,), (1381392709,), (1381392712,), (1381392716,), (1381392719,), (1381392923,), (1381392924,), (1381392925,), (1381392926,), (1381392928,), (1381392929,), (1381393068,), (1381393069,), (1381393070,), (1381393071,), (1381393196,), (1381393197,), (1381393198,), (1381393199,), (1381393200,), (1381393201,), (1381393250,), (1381393251,), (1381393252,), (1381393253,), (1381393254,), (1381393291,), (1381393293,), (1381393295,), (1381393298,), (1381393300,), (1381393388,), (1381393389,), (1381393390,), (1381393391,), (1381393392,), (1381393393,), (1381393461,), (1381393458,), (1381393459,), (1381393460,), (1381393498,), (1381393499,), (1381393500,), (1381393501,), (1381393503,), (1381393505,), (1381393660,), (1381393662,), (1381393664,), (1381393666,), (1381393668,), (1381393670,), (1381394033,), (1381394035,), (1381394037,), (1381394085,), (1381394086,), (1381394087,), (1381394088,), (1381394089,), (1381394090,), (1381394143,), (1381394144,), (1381394145,), (1381394146,), (1381394148,), (1381394150,), (1381394196,), (1381394197,), (1381394198,), (1381394317,), (1381394319,), (1381394321,), (1381394323,), (1381394325,), (1381394401,), (1381394403,), (1381394405,), (1381394407,), (1381394409,), (1381394542,), (1381394543,), (1381394544,), (1381394545,), (1381394546,), (1381394591,), (1381394592,), (1381394593,), (1381394594,), (1381394595,), (1381394596,), (1381394678,), (1381394679,), (1381394680,), (1381394681,), (1381394683,), (1381394806,), (1381394808,), (1381394810,), (1381394812,), (1381394814,), (1381394816,), (1381395128,), (1381395129,), (1381395130,), (1381395131,), (1381395132,), (1381395133,), (1381395149,), (1381395256,), (1381395257,), (1381395258,), (1381395497,), (1381395476,), (1381395494,), (1381395495,), (1381395496,), (1381395556,), (1381395557,), (1381395558,), (1381395646,), (1381395647,), (1381395648,), (1381395649,), (1381395650,), (1381395781,), (1381395782,), (1381395783,), (1381395784,), (1381396167,), (1381396169,), (1381396171,), (1381396172,), (1381396233,), (1381396234,), (1381396235,), (1381396236,), (1381396237,), (1381396295,), (1381396296,), (1381396297,), (1381396298,), (1381396299,), (1381396349,), (1381396350,), (1381396351,), (1381396352,), (1381396393,), (1381396394,), (1381396456,), (1381396468,), (1381396469,), (1381396470,), (1381396648,), (1381396649,), (1381396650,), (1381396651,), (1381396710,), (1381396711,), (1381396712,), (1381396713,), (1381396714,), (1381396715,), (1381397865,), (1381397866,), (1381398187,), (1381398181,), (1381398185,), (1381398501,), (1381398503,), (1381398505,), (1381398507,), (1381399217,), (1381399221,), (1381399397,), (1381399399,), (1381399667,), (1381399670,), (1381399672,), (1381399673,), (1381399674,), (1381399779,), (1381399780,), (1381399781,), (1381399883,), (1381399884,), (1381399885,), (1381399886,), (1381399887,), (1381399929,), (1381399930,), (1381399931,), (1381399979,), (1381399980,), (1381399981,), (1381399982,), (1381399983,), (1381400039,), (1381400040,), (1381400041,), (1381400226,), (1381400227,), (1381400228,), (1381400301,), (1381400302,), (1381400345,), (1381400346,), (1381400347,), (1381400380,), (1381400381,), (1381400422,), (1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,), (1381400873,), (1381400874,), (1381400875,), (1381400995,), (1381400996,), (1381400997,), (1381400998,), (1381401000,), (1381401043,), (1381401044,), (1381401045,), (1381401046,), (1381401047,), (1381401048,), (1381401085,), (1381401086,), (1381401087,), (1381401088,), (1381401089,), (1381401147,), (1381401148,), (1381401149,), (1381401150,), (1381401151,), (1381401152,), (1381401261,), (1381401262,), (1381401263,), (1381401264,), (1381401266,), (1381401319,), (1381401316,), (1381401317,), (1381401318,), (1381401373,), (1381401374,), (1381401375,), (1381401376,), (1381401377,), (1381401459,), (1381401460,), (1381401461,), (1381401462,), (1381401505,), (1381401506,), (1381401639,), (1381401641,), (1381401643,), (1381401645,), (1381401748,), (1381401749,), (1381401750,), (1381401751,), (1381401752,), (1381401794,), (1381401795,), (1381401796,), (1381401860,), (1381401861,), (1381401862,), (1381401863,), (1381401904,), (1381401905,), (1381401961,), (1381401962,), (1381401963,), (1381401964,), (1381401998,), (1381402019,), (1381402021,), (1381402023,), (1381402128,), (1381402129,), (1381402130,), (1381402131,), (1381402132,), (1381402190,), (1381402191,), (1381402192,), (1381402193,), (1381402228,), (1381402229,), (1381402230,), (1381402231,), (1381402305,), (1381402306,), (1381402307,), (1381402308,), (1381402365,), (1381402362,), (1381402363,), (1381402364,), (1381402407,), (1381402408,), (1381402409,), (1381402492,), (1381402494,), (1381402662,), (1381402663,), (1381402664,), (1381402721,), (1381402722,), (1381402723,), (1381402724,), (1381402725,), (1381402763,), (1381402764,), (1381402765,), (1381402766,), (1381402767,), (1381402905,), (1381402906,), (1381402907,), (1381402950,), (1381402951,), (1381402952,), (1381402953,), (1381402954,), (1381402955,), (1381403038,), (1381403039,), (1381403040,), (1381403041,), (1381403043,), (1381403044,), (1381403092,), (1381403093,), (1381403094,), (1381403171,), (1381403225,), (1381403957,), (1381410553,), (1381446037,), (1381446065,), (1381446068,), (1381446071,), (1381446074,), (1381446076,), (1381446078,), (1381446080,), (1381446081,), (1381446082,), (1381446083,), (1381446084,), (1381446085,), (1381446086,), (1381446087,), (1381446088,), (1381446089,), (1381446090,), (1381446091,), (1381446094,), (1381446095,), (1381446096,), (1381446098,), (1381446100,), (1381446102,), (1381446116,), (1381446117,), (1381446118,), (1381446119,), (1381446120,), (1381446121,), (1381446128,), (1381446129,), (1381446131,), (1381446133,), (1381446135,), (1381446137,), (1381446160,), (1381446161,), (1381446167,), (1381446169,), (1381446171,), (1381446173,), (1381446176,), (1381446179,), (1381446186,), (1381446187,), (1381446188,), (1381446190,), (1381446192,), (1381446194,), (1381446200,), (1381446202,), (1381446204,), (1381446206,), (1381445937,), (1381445939,), (1381445941,), (1381445943,), (1381445946,), (1381445949,), (1381445962,), (1381445963,), (1381445964,), (1381445965,), (1381445966,), (1381445967,), (1381445970,), (1381445971,), (1381445973,), (1381445974,), (1381445976,), (1381445978,), (1381445990,), (1381445991,), (1381445992,), (1381445993,), (1381445994,), (1381445995,), (1381445996,), (1381445997,), (1381445998,), (1381445999,), (1381446000,), (1381446001,), (1381446002,), (1381446003,), (1381446004,), (1381446005,), (1381446006,), (1381446007,), (1381446021,), (1381446022,), (1381446023,), (1381446024,), (1381446025,), (1381446026,), (1381446030,), (1381446031,), (1381446032,), (1381446033,), (1381446035,), (1381446055,), (1381446056,), (1381446057,), (1381446058,), (1381446060,), (1381446061,), (1381446156,), (1381446157,), (1381446158,), (1381446159,), (1381446267,), (1381446268,), (1381446269,), (1381446270,), (1381446382,), (1381446383,), (1381446384,), (1381446385,), (1381446386,), (1381461696,), (1381446394,), (1381446395,), (1381446396,), (1381446397,), (1381446417,), (1381446419,), (1381446420,), (1381446421,), (1381446422,), (1381446423,), (1381446424,), (1381446425,), (1381446426,), (1381446427,), (1381446428,), (1381446429,), (1381446438,), (1381446440,), (1381446442,), (1381446445,), (1381446446,), (1381446448,), (1381446454,), (1381446455,), (1381446456,), (1381446457,), (1381446458,), (1381446459,), (1381446467,), (1381446469,), (1381446472,), (1381446475,), (1381446477,), (1381446479,), (1381446484,), (1381446485,), (1381446488,), (1381446489,), (1381446490,), (1381446491,), (1381446502,), (1381446505,), (1381446509,), (1381446512,), (1381446514,), (1381446515,), (1381446518,), (1381446519,), (1381446520,), (1381446521,), (1381446522,), (1381446523,), (1381446524,), (1381446525,), (1381446526,), (1381446527,), (1381446528,), (1381446529,), (1381446539,), (1381446541,), (1381446545,), (1381446548,), (1381446551,), (1381446554,), (1381446560,), (1381446561,), (1381446562,), (1381446563,), (1381446564,), (1381446565,), (1381446571,), (1381446573,), (1381446575,), (1381446577,), (1381446580,), (1381446583,), (1381446593,), (1381446594,), (1381446595,), (1381446596,), (1381446209,), (1381446212,), (1381446222,), (1381446223,), (1381446224,), (1381446225,), (1381446226,), (1381446227,), (1381446244,), (1381446246,), (1381446249,), (1381446252,), (1381446255,), (1381446257,), (1381446271,), (1381446272,), (1381446305,), (1381446306,), (1381446308,), (1381446309,), (1381446310,), (1381446311,), (1381446322,), (1381446324,), (1381446325,), (1381446326,), (1381446327,), (1381446328,), (1381446348,), (1381446349,), (1381446350,), (1381446351,), (1381446352,), (1381446353,), (1381446357,), (1381446358,), (1381446359,), (1381446360,), (1381446361,), (1381446362,), (1381446387,), (1381446392,), (1381446393,), (1381451376,), (1381451379,), (1381451498,), (1381451502,), (1381451506,), (1381451510,), (1381451514,), (1381451517,), (1381451588,), (1381451592,), (1381451596,), (1381451601,), (1381451605,), (1381451609,), (1381451714,), (1381451718,), (1381451723,), (1381451728,), (1381451733,), (1381451738,), (1381451926,), (1381451930,), (1381451935,), (1381451939,), (1381451943,), (1381451948,), (1381452063,), (1381452067,), (1381452071,), (1381452075,), (1381452079,), (1381452083,), (1381452214,), (1381452218,), (1381452222,), (1381452226,), (1381452230,), (1381452234,), (1381452317,), (1381452321,), (1381452324,), (1381452327,), (1381452330,), (1381452333,), (1381452431,), (1381452434,), (1381452437,), (1381452441,), (1381452444,), (1381452447,), (1381452519,), (1381452522,), (1381452525,), (1381452528,), (1381452531,), (1381452534,), (1381452635,), (1381452640,), (1381452644,), (1381452648,), (1381452652,), (1381452656,), (1381452756,), (1381452761,), (1381452765,), (1381450410,), (1381450413,), (1381450416,), (1381450420,), (1381450422,), (1381450426,), (1381450542,), (1381450543,), (1381450544,), (1381450546,), (1381450548,), (1381450550,), (1381450570,), (1381450572,), (1381450573,), (1381450575,), (1381450576,), (1381450578,), (1381450579,), (1381450581,), (1381450583,), (1381450585,), (1381450586,), (1381450588,), (1381450645,), (1381450648,), (1381450652,), (1381450655,), (1381450659,), (1381450664,), (1381450763,), (1381450767,), (1381450771,), (1381450775,), (1381450779,), (1381450783,), (1381450889,), (1381450897,), (1381450903,), (1381450910,), (1381450917,), (1381450924,), (1381451043,), (1381451047,), (1381451051,), (1381451056,), (1381451060,), (1381451064,), (1381451152,), (1381451157,), (1381451161,), (1381451164,), (1381451167,), (1381451170,), (1381451264,), (1381451265,), (1381451268,), (1381451269,), (1381451273,), (1381451274,), (1381451277,), (1381451278,), (1381451281,), (1381451282,), (1381451286,), (1381451287,), (1381451362,), (1381451365,), (1381451369,), (1381451372,), (1381450225,), (1381450228,), (1381450231,), (1381450234,), (1381450237,), (1381450317,), (1381450320,), (1381450323,), (1381450326,), (1381450329,), (1381450334,), (1381449365,), (1381449367,), (1381449370,), (1381449448,), (1381449452,), (1381449456,), (1381449460,), (1381449464,), (1381449468,), (1381449532,), (1381449535,), (1381449538,), (1381449541,), (1381449544,), (1381449547,), (1381449621,), (1381449625,), (1381449629,), (1381449633,), (1381449637,), (1381449642,), (1381449755,), (1381449758,), (1381449761,), (1381449764,), (1381449767,), (1381449770,), (1381449849,), (1381449852,), (1381449855,), (1381449860,), (1381449866,), (1381449871,), (1381449974,), (1381449977,), (1381449981,), (1381449986,), (1381449991,), (1381449996,), (1381450086,), (1381450091,), (1381450096,), (1381450101,), (1381450108,), (1381450115,), (1381450222,), (1381448006,), (1381448009,), (1381448166,), (1381448169,), (1381448171,), (1381448173,), (1381448175,), (1381448177,), (1381448179,), (1381448181,), (1381448183,), (1381448185,), (1381448187,), (1381448189,), (1381448293,), (1381448298,), (1381448303,), (1381448308,), (1381448313,), (1381448319,), (1381448387,), (1381448390,), (1381448394,), (1381448398,), (1381448402,), (1381448406,), (1381448535,), (1381448539,), (1381448544,), (1381448550,), (1381448556,), (1381448561,), (1381448660,), (1381448664,), (1381448669,), (1381448673,), (1381448677,), (1381448680,), (1381448773,), (1381448777,), (1381448781,), (1381448786,), (1381448791,), (1381448796,), (1381448923,), (1381448928,), (1381448932,), (1381448936,), (1381448941,), (1381448945,), (1381449069,), (1381449074,), (1381449079,), (1381449084,), (1381449088,), (1381449092,), (1381449190,), (1381449194,), (1381449197,), (1381449200,), (1381449203,), (1381449206,), (1381449241,), (1381449244,), (1381449247,), (1381449249,), (1381449250,), (1381449252,), (1381449270,), (1381449271,), (1381449272,), (1381449273,), (1381449274,), (1381449275,), (1381449306,), (1381449310,), (1381449314,), (1381449318,), (1381449321,), (1381449323,), (1381449359,), (1381449361,), (1381449363,), (1381447248,), (1381447250,), (1381447292,), (1381447294,), (1381447298,), (1381447302,), (1381447306,), (1381447311,), (1381447379,), (1381447380,), (1381447382,), (1381447383,), (1381447385,), (1381447386,), (1381447388,), (1381447389,), (1381447392,), (1381447393,), (1381447396,), (1381447397,), (1381447450,), (1381447453,), (1381447456,), (1381447459,), (1381447462,), (1381447465,), (1381447512,), (1381447514,), (1381447516,), (1381447518,), (1381447520,), (1381447522,), (1381447544,), (1381447545,), (1381447547,), (1381447550,), (1381447552,), (1381447556,), (1381447573,), (1381447575,), (1381447577,), (1381447580,), (1381447582,), (1381447584,), (1381447651,), (1381447654,), (1381447658,), (1381447662,), (1381447666,), (1381447670,), (1381447709,), (1381447711,), (1381447712,), (1381447714,), (1381447715,), (1381447717,), (1381447718,), (1381447720,), (1381447721,), (1381447724,), (1381447725,), (1381447728,), (1381447753,), (1381447756,), (1381447759,), (1381447762,), (1381447765,), (1381447767,), (1381447802,), (1381447805,), (1381447807,), (1381447809,), (1381447811,), (1381447813,), (1381447829,), (1381447833,), (1381447838,), (1381447843,), (1381447847,), (1381447851,), (1381447994,), (1381447997,), (1381448000,), (1381448003,), (1381446597,), (1381446599,), (1381446649,), (1381446653,), (1381446657,), (1381446661,), (1381446665,), (1381446668,), (1381446712,), (1381446714,), (1381446715,), (1381446717,), (1381446718,), (1381446720,), (1381446722,), (1381446724,), (1381446725,), (1381446727,), (1381446729,), (1381446731,), (1381446783,), (1381446786,), (1381446787,), (1381446788,), (1381446789,), (1381446790,), (1381446813,), (1381446815,), (1381446817,), (1381446820,), (1381446822,), (1381446824,), (1381446861,), (1381446862,), (1381446863,), (1381446865,), (1381446868,), (1381446871,), (1381446938,), (1381446941,), (1381446943,), (1381446944,), (1381446946,), (1381446949,), (1381447015,), (1381447017,), (1381447019,), (1381447021,), (1381447025,), (1381447030,), (1381447056,), (1381447057,), (1381447058,), (1381447059,), (1381447060,), (1381447061,), (1381447062,), (1381447063,), (1381447064,), (1381447065,), (1381447066,), (1381447067,), (1381447077,), (1381447078,), (1381447079,), (1381447081,), (1381447083,), (1381447085,), (1381447156,), (1381447157,), (1381447158,), (1381447160,), (1381447163,), (1381447165,), (1381447176,), (1381447178,), (1381447180,), (1381447183,), (1381447185,), (1381447188,), (1381447239,), (1381447241,), (1381447243,), (1381447246,), (1381445724,), (1381445725,), (1381445935,), (1381455886,), (1381455887,), (1381455888,), (1381455889,), (1381455890,), (1381455891,), (1381455911,), (1381455912,), (1381455913,), (1381455914,), (1381455915,), (1381455916,), (1381455920,), (1381455921,), (1381455922,), (1381455923,), (1381455925,), (1381455926,), (1381455963,), (1381455965,), (1381455967,), (1381455971,), (1381455973,), (1381455975,), (1381456013,), (1381456016,), (1381456018,), (1381454228,), (1381454230,), (1381454232,), (1381454235,), (1381454317,), (1381454321,), (1381454326,), (1381454330,), (1381454335,), (1381454339,), (1381454497,), (1381454501,), (1381454504,), (1381454508,), (1381454512,), (1381454517,), (1381454644,), (1381454648,), (1381454652,), (1381454656,), (1381454661,), (1381454665,), (1381454768,), (1381454771,), (1381454774,), (1381454777,), (1381454780,), (1381454783,), (1381455351,), (1381455353,), (1381455355,), (1381455357,), (1381455360,), (1381455363,), (1381455449,), (1381455452,), (1381455455,), (1381455458,), (1381455461,), (1381455464,), (1381455540,), (1381455542,), (1381455545,), (1381455547,), (1381455549,), (1381455551,), (1381455652,), (1381455654,), (1381455656,), (1381455659,), (1381455662,), (1381455665,), (1381455748,), (1381455751,), (1381455754,), (1381455757,), (1381455762,), (1381455765,), (1381455832,), (1381455834,), (1381455836,), (1381455838,), (1381455840,), (1381455842,), (1381455878,), (1381455879,), (1381455880,), (1381455881,), (1381455882,), (1381455883,), (1381452769,), (1381452772,), (1381452776,), (1381452901,), (1381452906,), (1381452911,), (1381452916,), (1381452921,), (1381452926,), (1381453048,), (1381453053,), (1381453058,), (1381453064,), (1381453070,), (1381453075,), (1381453203,), (1381453206,), (1381453210,), (1381453214,), (1381453218,), (1381453358,), (1381453361,), (1381453365,), (1381453368,), (1381453371,), (1381453374,), (1381453467,), (1381453470,), (1381453473,), (1381453476,), (1381453479,), (1381453483,), (1381453563,), (1381453567,), (1381453571,), (1381453576,), (1381453580,), (1381453583,), (1381453686,), (1381453690,), (1381453694,), (1381453698,), (1381453703,), (1381453707,), (1381453810,), (1381453814,), (1381453819,), (1381453824,), (1381453829,), (1381453834,), (1381453967,), (1381453970,), (1381453973,), (1381453976,), (1381453979,), (1381453982,), (1381454050,), (1381454052,), (1381454054,), (1381454056,), (1381454058,), (1381454061,), (1381454107,), (1381454109,), (1381454111,), (1381454113,), (1381454116,), (1381454118,), (1381454157,), (1381454159,), (1381454161,), (1381454163,), (1381454165,), (1381454167,), (1381454224,), (1381454226,), (1381461690,), (1381461693,), (1381462229,), (1381462233,), (1381462239,), (1381462244,), (1381463689,), (1381463696,), (1381463703,), (1381464989,), (1381464996,), (1381465799,), (1381465804,), (1381465809,), (1381465814,), (1381465820,), (1381466617,), (1381466621,), (1381466624,), (1381466627,), (1381466924,), (1381466925,), (1381466926,), (1381466927,), (1381467218,), (1381467219,), (1381467220,), (1381467221,), (1381467224,), (1381467225,), (1381467402,), (1381467403,), (1381467404,), (1381467485,), (1381467486,), (1381467487,), (1381467488,), (1381467490,), (1381467551,), (1381467552,), (1381467553,), (1381467554,), (1381467555,), (1381467623,), (1381467616,), (1381467617,), (1381467619,), (1381467621,), (1381467688,), (1381467689,), (1381467690,), (1381467691,), (1381467778,), (1381467779,), (1381467780,), (1381467782,), (1381467784,), (1381467785,), (1381467842,), (1381467844,), (1381467845,), (1381467846,), (1381467847,), (1381467848,), (1381467899,), (1381467900,), (1381467901,), (1381467902,), (1381467966,), (1381467967,), (1381467968,), (1381467969,), (1381467971,), (1381467972,), (1381468025,), (1381468027,), (1381468029,), (1381468030,), (1381468074,), (1381468075,), (1381468076,), (1381468077,), (1381468078,), (1381468149,), (1381468150,), (1381468151,), (1381468153,), (1381468154,), (1381468155,), (1381468204,), (1381468205,), (1381468206,), (1381468207,), (1381468298,), (1381468299,), (1381468300,), (1381468301,), (1381468302,), (1381468303,), (1381468354,), (1381468355,), (1381468356,), (1381468357,), (1381468358,), (1381468359,), (1381468432,), (1381468433,), (1381468434,), (1381468435,), (1381468491,), (1381468492,), (1381468493,), (1381468588,), (1381468591,), (1381468593,), (1381468595,), (1381468597,), (1381468598,), (1381468687,), (1381468683,), (1381468685,), (1381468686,), (1381468748,), (1381468749,), (1381468822,), (1381468824,), (1381468825,), (1381468827,), (1381468829,), (1381468830,), (1381468876,), (1381468877,), (1381468878,), (1381468879,), (1381468880,), (1381468881,), (1381468935,), (1381468937,), (1381468939,), (1381468941,), (1381468943,), (1381468945,), (1381469144,), (1381469146,), (1381469148,), (1381469236,), (1381469237,), (1381469238,), (1381469239,), (1381469240,), (1381469290,), (1381469292,), (1381469294,), (1381469296,), (1381469297,), (1381469298,), (1381469490,), (1381469491,), (1381469492,), (1381469493,), (1381469495,), (1381469539,), (1381469540,), (1381469541,), (1381469542,), (1381469543,), (1381469544,), (1381469673,), (1381469674,), (1381469675,), (1381469676,), (1381469753,), (1381469754,), (1381469755,), (1381469757,), (1381469759,), (1381469760,), (1381469797,), (1381469798,), (1381469800,), (1381469801,), (1381469862,), (1381469863,), (1381469864,), (1381469865,), (1381469866,), (1381469867,), (1381470199,), (1381470201,), (1381470203,), (1381470466,), (1381470668,), (1381470462,), (1381470463,), (1381470464,), (1381470465,), (1381470640,), (1381470642,), (1381470644,), (1381470646,), (1381470648,), (1381470650,), (1381470662,), (1381470664,), (1381470665,), (1381470666,), (1381470769,), (1381470770,), (1381470771,), (1381470773,), (1381470923,), (1381470924,), (1381470925,), (1381470926,), (1381470927,), (1381470928,), (1381470977,), (1381470979,), (1381470981,), (1381470982,), (1381470983,), (1381471061,), (1381471062,), (1381471063,), (1381471064,), (1381471121,), (1381471123,), (1381471125,), (1381471126,), (1381471166,), (1381471167,), (1381471283,), (1381471285,), (1381471287,), (1381471655,), (1381471658,), (1381471842,), (1381471843,), (1381471844,), (1381471845,), (1381471846,), (1381471911,), (1381471912,), (1381471913,), (1381471914,), (1381471915,), (1381471916,), (1381472008,), (1381472010,), (1381472012,), (1381472014,), (1381472643,), (1381472646,), (1381472650,), (1381472691,), (1381472693,), (1381472695,), (1381473150,), (1381473130,), (1381473134,), (1381473138,), (1381473142,), (1381473146,), (1381473811,), (1381473814,), (1381473817,), (1381473820,), (1381474437,), (1381474441,), (1381474446,), (1381474451,), (1381474455,), (1381474949,), (1381475067,), (1381475070,), (1381475073,), (1381475575,), (1381475578,), (1381475582,), (1381475586,), (1381475978,), (1381475979,), (1381475980,), (1381475981,), (1381475982,), (1381476188,), (1381476190,), (1381476192,), (1381476194,), (1381476196,), (1381476198,), (1381476466,), (1381476468,), (1381476470,), (1381476472,), (1381476475,), (1381476705,), (1381476706,), (1381476707,), (1381476708,), (1381476709,), (1381476976,), (1381476979,), (1381476982,), (1381476985,), (1381476987,), (1381476989,), (1381477374,), (1381477377,), (1381477379,), (1381477381,), (1381477384,), (1381477602,), (1381477603,), (1381477604,), (1381477605,), (1381477607,), (1381477608,), (1381477862,), (1381477863,), (1381477864,), (1381477866,), (1381477867,), (1381478098,), (1381478101,), (1381478104,), (1381478107,), (1381478111,), (1381478278,), (1381478280,), (1381478282,), (1381478284,), (1381478286,), (1381478574,), (1381478567,), (1381478569,), (1381478572,), (1381479199,), (1381479203,), (1381479207,), (1381479210,), (1381479213,), (1381479847,), (1381479850,), (1381479853,), (1381479856,), (1381479859,), (1381479862,), (1381480165,), (1381480167,), (1381480169,), (1381480171,), (1381480619,), (1381480622,), (1381480624,), (1381481018,), (1381481020,), (1381481022,), (1381481025,), (1381481027,), (1381481418,), (1381481423,), (1381481428,), (1381481432,), (1381481437,), (1381481442,), (1381482365,), (1381482368,), (1381482372,), (1381482376,), (1381482683,), (1381482685,), (1381482687,), (1381482688,), (1381482689,), (1381483112,), (1381483114,), (1381483116,), (1381483118,), (1381483120,), (1381483122,), (1381483463,), (1381483466,), (1381483469,), (1381483985,), (1381483988,), (1381483991,), (1381483994,), (1381484339,), (1381484340,), (1381484341,), (1381484342,), (1381484343,), (1381484495,), (1381484496,), (1381484497,), (1381484498,), (1381484566,), (1381484567,), (1381484568,), (1381484570,), (1381484572,), (1381484625,), (1381484610,), (1381484623,), (1381484624,), (1381484916,), (1381484920,), (1381484923,), (1381484928,), (1381485442,), (1381485446,), (1381485450,), (1381485454,), (1381485694,), (1381485696,), (1381485698,), (1381486046,), (1381486049,), (1381486052,), (1381486054,), (1381486278,), (1381486280,), (1381486282,), (1381486425,), (1381486426,), (1381486427,), (1381486428,), (1381486429,), (1381486430,), (1381486478,), (1381486479,), (1381486480,), (1381486550,), (1381486551,), (1381486552,), (1381486553,), (1381486554,), (1381486702,), (1381486705,), (1381486708,), (1381486711,), (1381486714,), (1381487289,), (1381487293,), (1381487299,), (1381487304,), (1381488049,), (1381488052,), (1381488055,), (1381488058,), (1381488061,), (1381488064,), (1381488279,), (1381488280,), (1381488283,), (1381488284,), (1381488285,), (1381488286,), (1381489041,), (1381489044,), (1381489048,), (1381490068,), (1381490072,), (1381490077,), (1381490081,), (1381490648,), (1381490636,), (1381490638,), (1381490641,), (1381490644,), (1381490646,), (1381490927,), (1381490930,), (1381490932,), (1381490936,), (1381491574,), (1381491575,), (1381491576,), (1381491577,), (1381491578,), (1381491579,), (1381491847,), (1381491849,), (1381491850,), (1381491852,), (1381491855,), (1381491928,), (1381491930,), (1381491932,), (1381491933,), (1381491935,), (1381491936,), (1381491999,), (1381492000,), (1381492001,), (1381492002,), (1381492003,), (1381492005,), (1381492205,), (1381492207,), (1381492209,), (1381492688,), (1381492691,), (1381492695,), (1381492699,), (1381492704,), (1381492708,), (1381493427,), (1381493430,), (1381493433,), (1381493436,), (1381493439,), (1381494027,), (1381494033,), (1381494853,), (1381494856,), (1381495535,), (1381495541,), (1381495547,), (1381495553,), (1381495559,), (1381495564,), (1381496574,), (1381496580,), (1381496584,), (1381496589,), (1381496593,), (1381498372,), (1381498375,), (1381498379,), (1381498461,), (1381498464,), (1381498466,), (1381498468,), (1381499031,), (1381499010,), (1381499014,), (1381499018,), (1381499022,), (1381499027,), (1381499590,), (1381499593,), (1381499596,), (1381499599,), (1381500299,), (1381500303,), (1381500308,), (1381500313,), (1381500318,), (1381501093,), (1381501096,), (1381501099,), (1381501101,), (1381501497,), (1381501501,), (1381501505,), (1381501509,), (1381501929,), (1381501931,), (1381501933,), (1381501935,), (1381501937,), (1381502218,), (1381502221,), (1381502223,), (1381502225,), (1381502228,), (1381502918,), (1381502979,), (1381502982,), (1381502985,), (1381502989,), (1381503605,), (1381503608,), (1381503612,), (1381504027,), (1381504030,), (1381504032,), (1381504034,), (1381504036,), (1381504468,), (1381504471,), (1381504475,), (1381504479,), (1381504481,), (1381504816,), (1381504817,), (1381504818,), (1381504820,), (1381504821,), (1381504823,), (1381504889,), (1381504891,), (1381505198,), (1381505200,), (1381505202,), (1381505204,), (1381505206,), (1381505400,), (1381505401,), (1381505402,), (1381505403,), (1381505404,), (1381505405,), (1381505572,), (1381505565,), (1381505567,), (1381505569,), (1381505878,), (1381505880,), (1381505881,), (1381505883,), (1381505885,), (1381506107,), (1381506110,), (1381506113,), (1381506116,), (1381506119,), (1381506565,), (1381506567,), (1381506569,), (1381506571,), (1381506830,), (1381506832,), (1381506834,), (1381506836,), (1381506838,), (1381507006,), (1381507008,), (1381507010,), (1381507456,), (1381507458,), (1381507459,), (1381507460,), (1381507461,), (1381507462,), (1381507573,), (1381507574,), (1381507575,), (1381507576,), (1381507577,), (1381507578,), (1381507852,), (1381507855,), (1381507858,), (1381508343,), (1381508346,), (1381508349,), (1381508353,), (1381508356,), (1381508803,), (1381508805,), (1381508808,), (1381508810,), (1381508812,), (1381509002,), (1381509004,), (1381509005,), (1381509006,), (1381509007,), (1381509293,), (1381509298,), (1381509302,), (1381509306,), (1381510112,), (1381510115,), (1381510118,), (1381510121,), (1381510124,), (1381510453,), (1381510455,), (1381510457,), (1381510460,), (1381510462,), (1381510721,), (1381510718,), (1381510719,), (1381510720,), (1381510886,), (1381510888,), (1381510890,), (1381510892,), (1381511349,), (1381511351,), (1381511353,), (1381511355,), (1381511357,), (1381511359,), (1381511459,), (1381511460,), (1381511505,), (1381511506,), (1381511507,), (1381511509,), (1381511510,), (1381511567,), (1381511568,), (1381511569,), (1381511571,), (1381511572,), (1381511613,), (1381511614,), (1381511615,), (1381511616,), (1381511693,), (1381511694,), (1381511695,), (1381511696,), (1381511697,), (1381511698,), (1381511816,), (1381511819,), (1381511823,), (1381514513,), (1381520113,), (1381520112,), (1381520432,), (1381520956,), (1381521096,), (1381521668,), (1381522071,), (1381522073,), (1381522669,), (1381522671,), (1381522673,), (1381523187,), (1381523189,), (1381523191,), (1381523193,), (1381523195,), (1381523197,), (1381523621,), (1381523624,), (1381523627,), (1381523630,), (1381524082,), (1381524085,), (1381524088,), (1381524091,), (1381524460,), (1381524462,), (1381524464,), (1381524466,), (1381524468,), (1381524470,), (1381524994,), (1381524997,), (1381525000,), (1381525003,), (1381525330,), (1381525331,), (1381525332,), (1381525333,), (1381525334,), (1381525335,), (1381525687,), (1381525689,), (1381525691,), (1381525693,), (1381525696,), (1381526143,), (1381526145,), (1381526147,), (1381526149,), (1381526722,), (1381526725,), (1381526728,), (1381526730,), (1381526733,), (1381526936,), (1381526925,), (1381526927,), (1381526929,), (1381526931,), (1381526934,), (1381527258,), (1381527262,), (1381527265,), (1381527723,), (1381527724,), (1381527725,), (1381527726,), (1381527914,), (1381527915,), (1381527916,), (1381527917,), (1381527918,), (1381528028,), (1381528030,), (1381528032,), (1381528034,), (1381528036,), (1381528160,), (1381528172,), (1381528173,), (1381528174,), (1381528177,), (1381528178,), (1381528396,), (1381528397,), (1381528398,), (1381528400,), (1381528448,), (1381528449,), (1381528450,), (1381528451,), (1381528452,), (1381528453,), (1381528500,), (1381528502,), (1381528503,), (1381528504,), (1381528505,), (1381528506,), (1381528543,), (1381528647,), (1381528648,), (1381528649,), (1381528650,), (1381528653,), (1381528655,), (1381528689,), (1381528690,), (1381528691,), (1381528692,), (1381528694,), (1381528960,), (1381528963,), (1381528965,), (1381529243,), (1381529245,), (1381529247,), (1381529249,), (1381529252,), (1381529529,), (1381529531,), (1381529534,), (1381529536,), (1381529538,), (1381529540,), (1381529786,), (1381529783,), (1381529784,), (1381529785,), (1381529919,), (1381529921,), (1381529923,), (1381529925,), (1381529927,), (1381530185,), (1381530186,), (1381530187,), (1381530188,), (1381530437,), (1381530441,), (1381530444,), (1381530447,), (1381530450,), (1381530453,), (1381530898,), (1381530901,), (1381530903,), (1381530906,), (1381530909,), (1381531112,), (1381531113,), (1381531114,), (1381531115,), (1381531116,), (1381531438,), (1381531440,), (1381531443,), (1381531445,), (1381531447,), (1381531449,), (1381531557,), (1381531558,), (1381531559,), (1381531560,), (1381531561,), (1381531562,), (1381531611,), (1381531613,), (1381531614,), (1381531615,), (1381531872,), (1381531874,), (1381531876,), (1381531878,), (1381531880,), (1381531882,), (1381532296,), (1381532298,), (1381532300,), (1381532302,), (1381532304,), (1381532306,), (1381532647,), (1381532650,), (1381532652,), (1381532654,), (1381533156,), (1381533159,), (1381533162,), (1381533165,), (1381533169,), (1381533173,), (1381533930,), (1381533933,), (1381533936,), (1381533938,), (1381533942,), (1381533945,), (1381534561,), (1381534565,), (1381534568,), (1381534571,), (1381535155,), (1381535140,), (1381535144,), (1381535147,), (1381535150,), (1381535152,), (1381535412,), (1381535414,), (1381535415,), (1381535416,), (1381535417,), (1381535824,), (1381535827,), (1381535830,), (1381535833,), (1381535836,), (1381535839,), (1381536101,), (1381536102,), (1381536103,), (1381536104,), (1381536345,), (1381536347,), (1381536350,), (1381536352,), (1381536354,), (1381536611,), (1381536613,), (1381536616,), (1381536618,), (1381536621,), (1381536624,), (1381536771,), (1381536772,), (1381536773,), (1381536774,), (1381536885,), (1381536886,), (1381536888,), (1381536889,), (1381536890,), (1381536891,), (1381536992,), (1381536994,), (1381536996,), (1381536998,), (1381537227,), (1381537229,), (1381537230,), (1381537231,), (1381537232,), (1381537334,), (1381537335,), (1381537336,), (1381537337,), (1381537338,), (1381537372,), (1381537373,), (1381537374,), (1381537375,), (1381537376,), (1381537377,), (1381537508,), (1381537509,), (1381537510,), (1381537511,), (1381537690,), (1381537693,), (1381537695,), (1381537697,), (1381537700,), (1381537703,), (1381538048,), (1381538039,), (1381538044,), (1381538800,), (1381538804,), (1381538808,), (1381538812,), (1381538815,), (1381538819,), (1381539730,), (1381539734,), (1381539739,), (1381539743,), (1381539747,), (1381540339,), (1381540343,), (1381541088,), (1381541091,), (1381541094,), (1381541480,), (1381541482,), (1381541484,), (1381541486,), (1381541925,), (1381541969,), (1381541972,), (1381541975,), (1381541977,), (1381542468,), (1381542472,), (1381542476,), (1381542480,), (1381542484,), (1381542488,), (1381543054,), (1381543056,), (1381543058,), (1381543060,), (1381543062,), (1381543064,), (1381543517,), (1381543520,), (1381543523,), (1381543526,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04092025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26546418]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] map_info['map_portfolio_photo'] : {26546418: [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054, 1381542488, 1381542484, 1381542480, 1381542476, 1381542472, 1381542468, 1381541977, 1381541975, 1381541972, 1381541969, 1381541925, 1381541486, 1381541484, 1381541482, 1381541480, 1381541094, 1381541091, 1381541088, 1381540343, 1381540339, 1381539747, 1381539743, 1381539739, 1381539734, 1381539730, 1381538819, 1381538815, 1381538812, 1381538808, 1381538804, 1381538800, 1381538044, 1381538039]} final : True mtd_id 4302 list_pids : [1381543526, 1381543523, 1381543520, 1381543517, 1381543064, 1381543062, 1381543060, 1381543058, 1381543056, 1381543054] Looping around the photos to save general results len do output : 1 /26546418Didn'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, '3666054') ('4302', '26546418', '1381543526', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054') ('4302', None, None, None, None, None, None, None, '3666054') ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26546418', 'None', None, None, None, None, '3666054'), ('4302', '26546418', '1381543526', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543523', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543520', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543517', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543064', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543062', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543060', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543058', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543056', None, None, None, None, None, '3666054'), ('4302', '26546418', '1381543054', None, None, None, None, None, '3666054')] time used for this insertion : 0.02314162254333496 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.602045774459839 time spend to save output : 0.023400068283081055 total time spend for step 5 : 8.62544584274292 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 (3666054) 2.42user 2.25system 0:17.06elapsed 27%CPU (0avgtext+0avgdata 160380maxresident)k 1712inputs+9064outputs (37major+76915minor)pagefaults 0swaps