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 : 3070594 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 (4029011) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4029011) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406093 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4029011'] with mtr_portfolio_ids : ['28406093'] and first list_photo_ids : [] new path : /proc/3070594/ Name: python3 Umask: 0002 State: R (running) Tgid: 3070594 Ngid: 0 Pid: 3070594 PPid: 3070593 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3070594 NSpid: 3070594 NSpgid: 3069024 NSsid: 3069024 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98924 kB VmRSS: 98924 kB RssAnon: 59904 kB RssFile: 39020 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 45 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3070594', 'Ngid': '0', 'Pid': '3070594', 'PPid': '3070593', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3070594', 'NSpid': '3070594', 'NSpgid': '3069024', 'NSsid': '3069024', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98924 kB', 'VmRSS': '98924 kB', 'RssAnon': '59904 kB', 'RssFile': '39020 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '45', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '3070594', '1106908', '0', '1106884', '865636', '98924', b'', 'marlene', '4029011') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28406093) 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 (4029011 ) ) 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 (28406093) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393802252, 'portfolio_id': 28406093}, {'photo_id': 1393801898, 'portfolio_id': 28406093}, {'photo_id': 1393801880, 'portfolio_id': 28406093}, {'photo_id': 1393801843, 'portfolio_id': 28406093}, {'photo_id': 1393801616, 'portfolio_id': 28406093}, {'photo_id': 1393801551, 'portfolio_id': 28406093}, {'photo_id': 1393801483, 'portfolio_id': 28406093}, {'photo_id': 1393801421, 'portfolio_id': 28406093}, {'photo_id': 1393801384, 'portfolio_id': 28406093}, {'photo_id': 1393801346, 'portfolio_id': 28406093}, {'photo_id': 1393800518, 'portfolio_id': 28406093}, {'photo_id': 1393800517, 'portfolio_id': 28406093}, {'photo_id': 1393800516, 'portfolio_id': 28406093}, {'photo_id': 1393800514, 'portfolio_id': 28406093}, {'photo_id': 1393800496, 'portfolio_id': 28406093}, {'photo_id': 1393800493, 'portfolio_id': 28406093}, {'photo_id': 1393800489, 'portfolio_id': 28406093}, {'photo_id': 1393800486, 'portfolio_id': 28406093}, {'photo_id': 1393800484, 'portfolio_id': 28406093}, {'photo_id': 1393800482, 'portfolio_id': 28406093}, {'photo_id': 1393800465, 'portfolio_id': 28406093}, {'photo_id': 1393800461, 'portfolio_id': 28406093}, {'photo_id': 1393800456, 'portfolio_id': 28406093}, {'photo_id': 1393800453, 'portfolio_id': 28406093}, {'photo_id': 1393800451, 'portfolio_id': 28406093}, {'photo_id': 1393800450, 'portfolio_id': 28406093}, {'photo_id': 1393800370, 'portfolio_id': 28406093}, {'photo_id': 1393800362, 'portfolio_id': 28406093}, {'photo_id': 1393800355, 'portfolio_id': 28406093}, {'photo_id': 1393800345, 'portfolio_id': 28406093}, {'photo_id': 1393800266, 'portfolio_id': 28406093}, {'photo_id': 1393800263, 'portfolio_id': 28406093}, {'photo_id': 1393800260, 'portfolio_id': 28406093}, {'photo_id': 1393800257, 'portfolio_id': 28406093}, {'photo_id': 1393800253, 'portfolio_id': 28406093}, {'photo_id': 1393800244, 'portfolio_id': 28406093}, {'photo_id': 1393800209, 'portfolio_id': 28406093}, {'photo_id': 1393800205, 'portfolio_id': 28406093}, {'photo_id': 1393800203, 'portfolio_id': 28406093}, {'photo_id': 1393800201, 'portfolio_id': 28406093}, {'photo_id': 1393800180, 'portfolio_id': 28406093}, {'photo_id': 1393800178, 'portfolio_id': 28406093}, {'photo_id': 1393800176, 'portfolio_id': 28406093}, {'photo_id': 1393800175, 'portfolio_id': 28406093}, {'photo_id': 1393800173, 'portfolio_id': 28406093}, {'photo_id': 1393800143, 'portfolio_id': 28406093}, {'photo_id': 1393800140, 'portfolio_id': 28406093}, {'photo_id': 1393800138, 'portfolio_id': 28406093}, {'photo_id': 1393800136, 'portfolio_id': 28406093}, {'photo_id': 1393800134, 'portfolio_id': 28406093}, {'photo_id': 1393800100, 'portfolio_id': 28406093}, {'photo_id': 1393800097, 'portfolio_id': 28406093}, {'photo_id': 1393800095, 'portfolio_id': 28406093}, {'photo_id': 1393800093, 'portfolio_id': 28406093}, {'photo_id': 1393800091, 'portfolio_id': 28406093}, {'photo_id': 1393800061, 'portfolio_id': 28406093}, {'photo_id': 1393800058, 'portfolio_id': 28406093}, {'photo_id': 1393800056, 'portfolio_id': 28406093}, {'photo_id': 1393800055, 'portfolio_id': 28406093}, {'photo_id': 1393800049, 'portfolio_id': 28406093}, {'photo_id': 1393800022, 'portfolio_id': 28406093}, {'photo_id': 1393800019, 'portfolio_id': 28406093}, {'photo_id': 1393800016, 'portfolio_id': 28406093}, {'photo_id': 1393800013, 'portfolio_id': 28406093}, {'photo_id': 1393799990, 'portfolio_id': 28406093}, {'photo_id': 1393799986, 'portfolio_id': 28406093}, {'photo_id': 1393799975, 'portfolio_id': 28406093}, {'photo_id': 1393799969, 'portfolio_id': 28406093}, {'photo_id': 1393799950, 'portfolio_id': 28406093}, {'photo_id': 1393799789, 'portfolio_id': 28406093}, {'photo_id': 1393799786, 'portfolio_id': 28406093}, {'photo_id': 1393799783, 'portfolio_id': 28406093}, {'photo_id': 1393799781, 'portfolio_id': 28406093}, {'photo_id': 1393799779, 'portfolio_id': 28406093}] map_portfolio_id_photo_id: {28406093: [1393802252, 1393801898, 1393801880, 1393801843, 1393801616, 1393801551, 1393801483, 1393801421, 1393801384, 1393801346, 1393800518, 1393800517, 1393800516, 1393800514, 1393800496, 1393800493, 1393800489, 1393800486, 1393800484, 1393800482, 1393800465, 1393800461, 1393800456, 1393800453, 1393800451, 1393800450, 1393800370, 1393800362, 1393800355, 1393800345, 1393800266, 1393800263, 1393800260, 1393800257, 1393800253, 1393800244, 1393800209, 1393800205, 1393800203, 1393800201, 1393800180, 1393800178, 1393800176, 1393800175, 1393800173, 1393800143, 1393800140, 1393800138, 1393800136, 1393800134, 1393800100, 1393800097, 1393800095, 1393800093, 1393800091, 1393800061, 1393800058, 1393800056, 1393800055, 1393800049, 1393800022, 1393800019, 1393800016, 1393800013, 1393799990, 1393799986, 1393799975, 1393799969, 1393799950, 1393799789, 1393799786, 1393799783, 1393799781, 1393799779]} ##### 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.016393423080444336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Nov 10 20:02: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 (28406093) 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 : 28406093 get user id for portfolio 28406093 get sub ptf for main ptf 28406093, type 3726 and hashtags ['Carton_gris', 'Carton_brun', 'flou', 'plastique', 'environnement', 'mal_croppe', 'kraft', 'papier', 'metal', 'Teint_Dans_La_Masse', 'autre_refus', 'cartonnette'] 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`=28406093 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','plastique','environnement','mal_croppe','kraft','papier','metal','Teint_Dans_La_Masse','autre_refus','cartonnette')) 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`=28406093 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','plastique','environnement','mal_croppe','kraft','papier','metal','Teint_Dans_La_Masse','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28406093, 'sub_port_id': 28406108, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236988, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'autre_refus': {'main_port_id': 28406093, 'sub_port_id': 28406109, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236989, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'plastique': {'main_port_id': 28406093, 'sub_port_id': 28406110, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236990, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'Carton_brun': {'main_port_id': 28406093, 'sub_port_id': 28406111, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236991, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'environnement': {'main_port_id': 28406093, 'sub_port_id': 28406112, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236992, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'cartonnette': {'main_port_id': 28406093, 'sub_port_id': 28406113, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236993, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'kraft': {'main_port_id': 28406093, 'sub_port_id': 28406114, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236994, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'flou': {'main_port_id': 28406093, 'sub_port_id': 28406115, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236995, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 28406093, 'sub_port_id': 28406116, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236996, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'mal_croppe': {'main_port_id': 28406093, 'sub_port_id': 28406117, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236997, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'papier': {'main_port_id': 28406093, 'sub_port_id': 28406118, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236998, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}, 'Carton_gris': {'main_port_id': 28406093, 'sub_port_id': 28406119, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19236999, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 25)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28406108 , 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=28406093 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 (28406108) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406109 , 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=28406093 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 (28406109) result : ((1393801182,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406110 , 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=28406093 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 (28406110) result : ((1393800153,), (1393800154,), (1393800225,), (1393800254,), (1393800255,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406111 , 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=28406093 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 (28406111) result : ((1393800152,), (1393800223,), (1393800250,), (1393800251,), (1393800252,), (1393801232,), (1393801234,), (1393801236,), (1393801238,), (1393802148,), (1393802149,), (1393802150,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406112 , 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=28406093 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 (28406112) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406113 , 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=28406093 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 (28406113) result : ((1393800150,), (1393800246,), (1393800247,), (1393800249,), (1393800668,), (1393801216,), (1393801219,), (1393802146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406114 , 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=28406093 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 (28406114) result : ((1393800226,), (1393800227,), (1393801254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406115 , 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=28406093 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 (28406115) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406116 , 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=28406093 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 (28406116) result : ((1393800147,), (1393800220,), (1393800239,), (1393800240,), (1393800241,), (1393800242,), (1393800243,), (1393800649,), (1393800651,), (1393801172,), (1393801174,), (1393802138,), (1393802139,), (1393802141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406117 , 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=28406093 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 (28406117) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406118 , 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=28406093 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 (28406118) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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 28406119 , 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=28406093 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 (28406119) result : ((1393800149,), (1393800222,), (1393800245,), (1393800660,), (1393801199,), (1393801202,), (1393801205,), (1393802143,), (1393802144,), (1393802145,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28406093) result : ((1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) 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 (1393800100) 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`=28406093 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','plastique','environnement','mal_croppe','kraft','papier','metal','Teint_Dans_La_Masse','autre_refus','cartonnette')) 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`=28406093 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','plastique','environnement','mal_croppe','kraft','papier','metal','Teint_Dans_La_Masse','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28406093, 'sub_port_id': 28406122, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237000, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'autre_refus': {'main_port_id': 28406093, 'sub_port_id': 28406123, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237001, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'plastique': {'main_port_id': 28406093, 'sub_port_id': 28406124, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237002, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'Carton_brun': {'main_port_id': 28406093, 'sub_port_id': 28406125, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237003, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'environnement': {'main_port_id': 28406093, 'sub_port_id': 28406126, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237004, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'cartonnette': {'main_port_id': 28406093, 'sub_port_id': 28406127, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237005, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'kraft': {'main_port_id': 28406093, 'sub_port_id': 28406128, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237006, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'flou': {'main_port_id': 28406093, 'sub_port_id': 28406129, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237007, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 28406093, 'sub_port_id': 28406130, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237008, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'mal_croppe': {'main_port_id': 28406093, 'sub_port_id': 28406131, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237009, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'papier': {'main_port_id': 28406093, 'sub_port_id': 28406132, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237010, 'last_updated_at': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 19, 49, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}, 'Carton_gris': {'main_port_id': 28406093, 'sub_port_id': 28406133, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19237011, 'last_updated_at': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 10, 20, 0, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 10, 19, 49, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28406133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28406119 lien utilise dans velours : https://marlene.fotonower.com/velours/28406122,28406123,28406124,28406125,28406126,28406127,28406128,28406129,28406130,28406131,28406132,28406133?tags=metal,autre_refus,plastique,Carton_brun,environnement,cartonnette,kraft,flou,Teint_Dans_La_Masse,mal_croppe,papier,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28406093]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393802252, 1393801898, 1393801880, 1393801843] map_info['map_portfolio_photo'] : {28406093: [1393802252, 1393801898, 1393801880, 1393801843, 1393801616, 1393801551, 1393801483, 1393801421, 1393801384, 1393801346, 1393800518, 1393800517, 1393800516, 1393800514, 1393800496, 1393800493, 1393800489, 1393800486, 1393800484, 1393800482, 1393800465, 1393800461, 1393800456, 1393800453, 1393800451, 1393800450, 1393800370, 1393800362, 1393800355, 1393800345, 1393800266, 1393800263, 1393800260, 1393800257, 1393800253, 1393800244, 1393800209, 1393800205, 1393800203, 1393800201, 1393800180, 1393800178, 1393800176, 1393800175, 1393800173, 1393800143, 1393800140, 1393800138, 1393800136, 1393800134, 1393800100, 1393800097, 1393800095, 1393800093, 1393800091, 1393800061, 1393800058, 1393800056, 1393800055, 1393800049, 1393800022, 1393800019, 1393800016, 1393800013, 1393799990, 1393799986, 1393799975, 1393799969, 1393799950, 1393799789, 1393799786, 1393799783, 1393799781, 1393799779]} final : False mtd_id 4302 list_pids : [1393802252, 1393801898, 1393801880, 1393801843] Looping around the photos to save general results len do output : 1 /28406093. 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, '4029011') ('4302', '28406093', '1393802252', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '28406093', "{'metal': 28406108, 'autre_refus': 28406109, 'plastique': 28406110, 'Carton_brun': 28406111, 'environnement': 28406112, 'cartonnette': 28406113, 'kraft': 28406114, 'flou': 28406115, 'Teint_Dans_La_Masse': 28406116, 'mal_croppe': 28406117, 'papier': 28406118, 'Carton_gris': 28406119}", None, None, None, None, '4029011'), ('4302', '28406093', '1393802252', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011')] time used for this insertion : 0.013699769973754883 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.472339391708374 time spend to save output : 0.013951539993286133 total time spend for step 1 : 0.48629093170166016 step2:final Mon Nov 10 20:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28406093) 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 28406093 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393799789,1393799786,1393799783,1393799781,1393799779,1393799990,1393799986,1393799975,1393799969,1393799950,1393800022,1393800019,1393800016,1393800013,1393800061,1393800058,1393800056,1393800055,1393800049,1393800100,1393800097,1393800095,1393800093,1393800091,1393800143,1393800140,1393800138,1393800136,1393800134,1393800180,1393800178,1393800176,1393800175,1393800173,1393800209,1393800205,1393800203,1393800201,1393800266,1393800263,1393800260,1393800257,1393800253,1393800244,1393800370,1393800362,1393800355,1393800345,1393800465,1393800461,1393800456,1393800453,1393800451,1393800450,1393800496,1393800493,1393800489,1393800486,1393800484,1393800482,1393800518,1393800517,1393800516,1393800514,1393801616,1393801551,1393801483,1393801421,1393801384,1393801346,1393801898,1393801880,1393801843,1393802252); 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([28406093]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} new output for save of step final : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} [1393802252, 1393801898, 1393801880, 1393801843] map_info['map_portfolio_photo'] : {28406093: [1393802252, 1393801898, 1393801880, 1393801843, 1393801616, 1393801551, 1393801483, 1393801421, 1393801384, 1393801346, 1393800518, 1393800517, 1393800516, 1393800514, 1393800496, 1393800493, 1393800489, 1393800486, 1393800484, 1393800482, 1393800465, 1393800461, 1393800456, 1393800453, 1393800451, 1393800450, 1393800370, 1393800362, 1393800355, 1393800345, 1393800266, 1393800263, 1393800260, 1393800257, 1393800253, 1393800244, 1393800209, 1393800205, 1393800203, 1393800201, 1393800180, 1393800178, 1393800176, 1393800175, 1393800173, 1393800143, 1393800140, 1393800138, 1393800136, 1393800134, 1393800100, 1393800097, 1393800095, 1393800093, 1393800091, 1393800061, 1393800058, 1393800056, 1393800055, 1393800049, 1393800022, 1393800019, 1393800016, 1393800013, 1393799990, 1393799986, 1393799975, 1393799969, 1393799950, 1393799789, 1393799786, 1393799783, 1393799781, 1393799779]} final : False mtd_id 4302 list_pids : [1393802252, 1393801898, 1393801880, 1393801843] Looping around the photos to save general results len do output : 4 /1393802252.Didn't retrieve data . /1393801898.Didn't retrieve data . /1393801880.Didn't retrieve data . /1393801843.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, '4029011') ('4302', '28406093', '1393802252', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '28406093', '1393802252', '0.08666394721791995', None, None, None, None, '4029011'), ('4302', '28406093', '1393801898', '0.08666394721791995', None, None, None, None, '4029011'), ('4302', '28406093', '1393801880', '0.08666394721791995', None, None, None, None, '4029011'), ('4302', '28406093', '1393801843', '0.08666394721791995', None, None, None, None, '4029011')] time used for this insertion : 0.018707752227783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07187247276306152 time spend to save output : 0.01899886131286621 total time spend for step 2 : 0.09087133407592773 step3:velours_tree Mon Nov 10 20:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28406093: [{'metal': 28406108, 'autre_refus': 28406109, 'plastique': 28406110, 'Carton_brun': 28406111, 'environnement': 28406112, 'cartonnette': 28406113, 'kraft': 28406114, 'flou': 28406115, 'Teint_Dans_La_Masse': 28406116, 'mal_croppe': 28406117, 'papier': 28406118, 'Carton_gris': 28406119}]} input_args_next_step : {28406093: ()} output_args : {28406093: [{'metal': 28406108, 'autre_refus': 28406109, 'plastique': 28406110, 'Carton_brun': 28406111, 'environnement': 28406112, 'cartonnette': 28406113, 'kraft': 28406114, 'flou': 28406115, 'Teint_Dans_La_Masse': 28406116, 'mal_croppe': 28406117, 'papier': 28406118, 'Carton_gris': 28406119}]} args : 28406093 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 : ({'metal': 28406108, 'autre_refus': 28406109, 'plastique': 28406110, 'Carton_brun': 28406111, 'environnement': 28406112, 'cartonnette': 28406113, 'kraft': 28406114, 'flou': 28406115, 'Teint_Dans_La_Masse': 28406116, 'mal_croppe': 28406117, 'papier': 28406118, 'Carton_gris': 28406119},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28406093) 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([28406093]) 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.27968716621398926 time spend to save output : 4.7206878662109375e-05 total time spend for step 3 : 0.27973437309265137 step4:send_mail_cod Mon Nov 10 20:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} input_args_next_step : {1393802252: ()} output_args : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} args : 1393802252 depend.output_id : 0 input_args_next_step : {1393802252: ('0.08666394721791995',), 1393801898: ()} output_args : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} args : 1393801898 depend.output_id : 0 input_args_next_step : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ()} output_args : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} args : 1393801880 depend.output_id : 0 input_args_next_step : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ()} output_args : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',)} args : 1393801843 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 : {28406093: [{'metal': 28406108, 'autre_refus': 28406109, 'plastique': 28406110, 'Carton_brun': 28406111, 'environnement': 28406112, 'cartonnette': 28406113, 'kraft': 28406114, 'flou': 28406115, 'Teint_Dans_La_Masse': 28406116, 'mal_croppe': 28406117, 'papier': 28406118, 'Carton_gris': 28406119}]} input_args_next_step : {1393802252: ('0.08666394721791995',), 1393801898: ('0.08666394721791995',), 1393801880: ('0.08666394721791995',), 1393801843: ('0.08666394721791995',), 28406093: ()} output_args : {28406093: [{'metal': 28406108, 'autre_refus': 28406109, 'plastique': 28406110, 'Carton_brun': 28406111, 'environnement': 28406112, 'cartonnette': 28406113, 'kraft': 28406114, 'flou': 28406115, 'Teint_Dans_La_Masse': 28406116, 'mal_croppe': 28406117, 'papier': 28406118, 'Carton_gris': 28406119}]} args : 28406093 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 :5, first value : ('0.08666394721791995',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28406093) 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_view ph WHERE photo_id IN (1393802252,1393801898,1393801880,1393801843) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393801843 begin to download photo : 1393801880 begin to download photo : 1393801898 begin to download photo : 1393802252 download finish for photo 1393801880 download finish for photo 1393801843 download finish for photo 1393801898 download finish for photo 1393802252 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette284061081762801379/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P28406093_10-11-2025_20_02_59.pdf 28406108 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406108 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284061081762801379 28406109 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393801182: '1762801148_3547700_1393800260_2cbb4287f34c13fd48f296b16216c0e0_rle_crop_4029817405_0.png'} change filename to text .imagette284061091762801379/ imagette284061091762801379/1762801148_3547700_1393800260_2cbb4287f34c13fd48f296b16216c0e0_rle_crop_4029817405_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9819f91c3076ff443323305991a1a2ea_11864331.png imagette284061091762801379 28406110 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393800153: '1762800665_3529770_1393800016_9d0c8f7312089f91c380469dc21e5548_rle_crop_4029801805_0.png', 1393800154: '1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801811_0.png', 1393800225: '1762800785_3535241_1393799986_d8bc88a2546c77cd457ade56627113f0_rle_crop_4029803642_0.png', 1393800254: '1762800807_3535607_1393799990_9348ad1ddff3ddd3c7e24db03529bcdd_rle_crop_4029804305_0.png', 1393800255: '1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804322_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/950b41d4a95e543d7560822374a2c45c_3326043.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/d7cbbd5b5e57460d62b86f678bc831ec_31420784.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/7a9fa79394484cbc8023b0f4c758e0b6_48077311.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/79c53fc3d1b7def3e7fe1dbf5879f6b4_10674144.png change filename to text .imagette284061101762801379/ imagette284061101762801379/1762800665_3529770_1393800016_9d0c8f7312089f91c380469dc21e5548_rle_crop_4029801805_0.png.png imagette284061101762801379/1762800807_3535607_1393799990_9348ad1ddff3ddd3c7e24db03529bcdd_rle_crop_4029804305_0.png.png imagette284061101762801379/1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801811_0.png.png imagette284061101762801379/1762800785_3535241_1393799986_d8bc88a2546c77cd457ade56627113f0_rle_crop_4029803642_0.png.png imagette284061101762801379/1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804322_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8b8f73ae8a9dfb4ee5659c874988d5f7_6739041.png imagette284061101762801379 28406113 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393800150: '1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801809_0.png', 1393800246: '1762800807_3535607_1393799990_9348ad1ddff3ddd3c7e24db03529bcdd_rle_crop_4029804304_0.png', 1393800247: '1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804352_0.png', 1393800249: '1762800807_3535607_1393799779_8f0057fc004e7b9c3eb9418f63a3cb9d_rle_crop_4029804377_0.png', 1393800668: '1762801106_3547109_1393800345_d689a82bdab4504ae9b6af7a03ed381a_rle_crop_4029817189_0.png', 1393801216: '1762801148_3547700_1393800370_0bf9c7a013fc927329b87e0ebdb1b842_rle_crop_4029817376_0.png', 1393801219: '1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817435_0.png', 1393802146: '1762801267_3619064_1393800176_8f5c58f8dc5b3b50ed0077df8aafde49_rle_crop_4029818082_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b70349167b1d7a72f6bd0ccef80f31cf_89630049.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/df90d8cdbb01f42d4b8ede98debfdedc_94382917.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/64ca2106eb3eaacc4e58f6424bc0c23d_82845467.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b2c5dcd6b9e36e8bd807f510a1695f2d_16999003.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/85cc14e6a00afe9e2d7455bd61cb0a85_45156289.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/61f278e70064b1bc57055eb2eb187222_33014977.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/097a0366cc46a2d826e0e092433fe672_55095007.png change filename to text .imagette284061131762801380/ imagette284061131762801380/1762801106_3547109_1393800345_d689a82bdab4504ae9b6af7a03ed381a_rle_crop_4029817189_0.png.png imagette284061131762801380/1762801267_3619064_1393800176_8f5c58f8dc5b3b50ed0077df8aafde49_rle_crop_4029818082_0.png.png imagette284061131762801380/1762800807_3535607_1393799779_8f0057fc004e7b9c3eb9418f63a3cb9d_rle_crop_4029804377_0.png.png imagette284061131762801380/1762801148_3547700_1393800370_0bf9c7a013fc927329b87e0ebdb1b842_rle_crop_4029817376_0.png.png imagette284061131762801380/1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801809_0.png.png imagette284061131762801380/1762800807_3535607_1393799990_9348ad1ddff3ddd3c7e24db03529bcdd_rle_crop_4029804304_0.png.png imagette284061131762801380/1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804352_0.png.png imagette284061131762801380/1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817435_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4cf0479d30c2e8d52f14faa4e0c7ebe3_82247656.png imagette284061131762801380 28406114 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393800226: '1762800785_3535241_1393799975_0824445d4a8c8e26a852f6f33b861c90_rle_crop_4029803655_0.png', 1393800227: '1762800785_3535241_1393799969_975f5c8bbe052885ef127a9f4f0c01dd_rle_crop_4029803879_0.png', 1393801254: '1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817428_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/fef6768234cfd4504486e8bc00fe4aad_44835241.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/6879f550a8c5e8f65921a4cdcc0a0691_50872567.png change filename to text .imagette284061141762801380/ imagette284061141762801380/1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817428_0.png.png imagette284061141762801380/1762800785_3535241_1393799975_0824445d4a8c8e26a852f6f33b861c90_rle_crop_4029803655_0.png.png imagette284061141762801380/1762800785_3535241_1393799969_975f5c8bbe052885ef127a9f4f0c01dd_rle_crop_4029803879_0.png.png imagette284061151762801380/ imagette284061171762801380/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/27e7217f469a321758b16f5b0d9166bc_55232117.png imagette284061141762801380 28406115 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406115 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284061151762801380 28406117 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406117 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284061171762801380 28406111 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393800152: '1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801814_0.png', 1393800223: '1762800785_3535241_1393799950_b0a3745df62da7e2c2f627f6991a070d_rle_crop_4029803888_0.png', 1393800250: '1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804318_0.png', 1393800251: '1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804353_0.png', 1393800252: '1762800807_3535607_1393799779_8f0057fc004e7b9c3eb9418f63a3cb9d_rle_crop_4029804376_0.png', 1393801232: '1762801148_3547700_1393800370_0bf9c7a013fc927329b87e0ebdb1b842_rle_crop_4029817378_0.png', 1393801234: '1762801148_3547700_1393800263_4faaa93996373e57531acf5c030cb720_rle_crop_4029817395_0.png', 1393801236: '1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817432_0.png', 1393801238: '1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817441_0.png', 1393802148: '1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818060_0.png', 1393802149: '1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818059_0.png', 1393802150: '1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818058_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/27625d420e1a1ccbb00958253db5ae54_9091317.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/efc298aeb6d8b68f2f60cfff3d9571b7_10209620.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b77bb9fb273936145cadca9813260c9e_84862313.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8264da2ea7ea827b06f903b17f0b82f8_72078427.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/88769c9f29e4c94d285ba89c54cf29e5_15141456.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/bf01f0ddc2359ece7609384cfbbac424_95083814.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/bd3e74401b2cb3442e7503719850b2b3_40149849.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/230803df8920978d77af3a1f011e1526_91450980.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/3c96ded4ead5dd3f2f04c8aa118dbc1e_88924874.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/46db98b0930f74ec4062617046f28b6a_81478789.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/e8b37563e832a7becae62b13ad9a1acb_8164370.png change filename to text .imagette284061111762801380/ imagette284061111762801380/1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818059_0.png.png imagette284061111762801380/1762800807_3535607_1393799779_8f0057fc004e7b9c3eb9418f63a3cb9d_rle_crop_4029804376_0.png.png imagette284061111762801380/1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817432_0.png.png imagette284061111762801380/1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818060_0.png.png imagette284061111762801380/1762801148_3547700_1393800263_4faaa93996373e57531acf5c030cb720_rle_crop_4029817395_0.png.png imagette284061111762801380/1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804318_0.png.png imagette284061111762801380/1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804353_0.png.png imagette284061111762801380/1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801814_0.png.png imagette284061111762801380/1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817441_0.png.png imagette284061111762801380/1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818058_0.png.png imagette284061111762801380/1762800785_3535241_1393799950_b0a3745df62da7e2c2f627f6991a070d_rle_crop_4029803888_0.png.png imagette284061111762801380/1762801148_3547700_1393800370_0bf9c7a013fc927329b87e0ebdb1b842_rle_crop_4029817378_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8c45c43039f7737651dda74081c28f56_84862971.png imagette284061111762801380 28406116 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393800147: '1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801815_0.png', 1393800220: '1762800785_3535241_1393799975_0824445d4a8c8e26a852f6f33b861c90_rle_crop_4029803658_0.png', 1393800239: '1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804319_0.png', 1393800240: '1762800807_3535607_1393799786_5eb7833acb8bdc2f79c6c89884a3fdfc_rle_crop_4029804335_0.png', 1393800241: '1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804354_0.png', 1393800242: '1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804349_0.png', 1393800243: '1762800807_3535607_1393799781_dda3bec07bf988975df98050a3898e57_rle_crop_4029804367_0.png', 1393800649: '1762801106_3547109_1393800362_012638949619c2830003712440ff76fb_rle_crop_4029817167_0.png', 1393800651: '1762801106_3547109_1393800355_0a24612dd0c779c70ad4b31aca77fd98_rle_crop_4029817176_0.png', 1393801172: '1762801148_3547700_1393800370_0bf9c7a013fc927329b87e0ebdb1b842_rle_crop_4029817384_0.png', 1393801174: '1762801148_3547700_1393800260_2cbb4287f34c13fd48f296b16216c0e0_rle_crop_4029817406_0.png', 1393802138: '1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818061_0.png', 1393802139: '1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818056_0.png', 1393802141: '1762801267_3619064_1393800176_8f5c58f8dc5b3b50ed0077df8aafde49_rle_crop_4029818083_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/9482013766ace0e1a00053091e450e4b_21187133.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1bd065f13c0006109799ef6dc6020ba4_38502530.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ceade5b9ffa77a035afcdd7e77151089_76513242.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/84b585fd89a4e26b47c6a694cf40ab90_10204478.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/bc4f0b31ad5b812ba461ca9c4c7108a7_40875877.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b558f53af605a7fc9b56f5451e04e702_32401554.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/4ec68511abee4dadb2b41cf5f5b2e2ed_78293.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/5ab736172255556c53d20d6461c5ad19_83868052.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b929923c23c3115e45e237f7f90cc4ff_37420653.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/91acc9daa6ab12ba1766bf73e0245871_10609628.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/2d8c50d8f08ee5cd7653bd8f41a7c66b_94628146.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cd8048fc7641d1810fe6349682d30c9c_11493858.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/5451a0aadace6f6f4449ad65fedbdf15_19317609.png change filename to text .imagette284061161762801381/ imagette284061161762801381/1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818061_0.png.png imagette284061161762801381/1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804349_0.png.png imagette284061161762801381/1762801106_3547109_1393800362_012638949619c2830003712440ff76fb_rle_crop_4029817167_0.png.png imagette284061161762801381/1762800807_3535607_1393799786_5eb7833acb8bdc2f79c6c89884a3fdfc_rle_crop_4029804335_0.png.png imagette284061161762801381/1762801267_3619064_1393800176_8f5c58f8dc5b3b50ed0077df8aafde49_rle_crop_4029818083_0.png.png imagette284061161762801381/1762800807_3535607_1393799783_85c3029bab6c3dd73331ac7109a47a0d_rle_crop_4029804354_0.png.png imagette284061161762801381/1762801267_3619064_1393800209_bc4ac9fcadbe2e7f430247ef7cf4dd2d_rle_crop_4029818056_0.png.png imagette284061161762801381/1762800665_3529770_1393800013_2f948e5357983b9e036af0b5635fc74c_rle_crop_4029801815_0.png.png imagette284061161762801381/1762800785_3535241_1393799975_0824445d4a8c8e26a852f6f33b861c90_rle_crop_4029803658_0.png.png imagette284061161762801381/1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804319_0.png.png imagette284061161762801381/1762801106_3547109_1393800355_0a24612dd0c779c70ad4b31aca77fd98_rle_crop_4029817176_0.png.png imagette284061161762801381/1762801148_3547700_1393800370_0bf9c7a013fc927329b87e0ebdb1b842_rle_crop_4029817384_0.png.png imagette284061161762801381/1762801148_3547700_1393800260_2cbb4287f34c13fd48f296b16216c0e0_rle_crop_4029817406_0.png.png imagette284061161762801381/1762800807_3535607_1393799781_dda3bec07bf988975df98050a3898e57_rle_crop_4029804367_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/34eb5c8a2d6ec719b6a2537a16f80964_64377841.png imagette284061161762801381 28406119 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393800149: '1762800665_3529770_1393800019_e8cadc02c498354a38f911996181d9b6_rle_crop_4029801793_0.png', 1393800222: '1762800785_3535241_1393799986_d8bc88a2546c77cd457ade56627113f0_rle_crop_4029803640_0.png', 1393800245: '1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804321_0.png', 1393800660: '1762801106_3547109_1393800345_d689a82bdab4504ae9b6af7a03ed381a_rle_crop_4029817185_0.png', 1393801199: '1762801148_3547700_1393800263_4faaa93996373e57531acf5c030cb720_rle_crop_4029817394_0.png', 1393801202: '1762801148_3547700_1393800257_4cdc68afcbf7a4bc5aea9da07c8220ac_rle_crop_4029817418_0.png', 1393801205: '1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817430_0.png', 1393802143: '1762801267_3619064_1393800176_8f5c58f8dc5b3b50ed0077df8aafde49_rle_crop_4029818087_0.png', 1393802144: '1762801267_3619064_1393800175_77d779f2c0cc6146583080fb8ea621d5_rle_crop_4029818105_0.png', 1393802145: '1762801267_3619064_1393800175_77d779f2c0cc6146583080fb8ea621d5_rle_crop_4029818101_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/fa7651c36160b0560b60d40b7b83c33b_72650875.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/d4d856794b88d37f9b8c8f0aff5cebd4_78282021.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/b22645a1e3f5dc966c0792c961618758_9967067.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/36bb3d65b5b62f8b2c249b59649ff4ae_52320071.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/1be8d01f27662d2dc141301f3db9d642_4738124.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/ca4329572f80754d6f97e2d4f051ecca_97371556.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8c4b566e7f3f10b8506107b569ca83fc_7564043.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/cab7fc77b52c83307529c820e9d901f8_66810450.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/8985cf0204da4fbb65b1fa694c939ee1_67267740.png change filename to text .imagette284061191762801382/ imagette284061191762801382/1762801267_3619064_1393800176_8f5c58f8dc5b3b50ed0077df8aafde49_rle_crop_4029818087_0.png.png imagette284061191762801382/1762800807_3535607_1393799789_28c2a7e94c5b07e2863a7e78aa23d9cd_rle_crop_4029804321_0.png.png imagette284061191762801382/1762801148_3547700_1393800263_4faaa93996373e57531acf5c030cb720_rle_crop_4029817394_0.png.png imagette284061191762801382/1762800785_3535241_1393799986_d8bc88a2546c77cd457ade56627113f0_rle_crop_4029803640_0.png.png imagette284061191762801382/1762801148_3547700_1393800257_4cdc68afcbf7a4bc5aea9da07c8220ac_rle_crop_4029817418_0.png.png imagette284061191762801382/1762801267_3619064_1393800175_77d779f2c0cc6146583080fb8ea621d5_rle_crop_4029818101_0.png.png imagette284061191762801382/1762801148_3547700_1393800253_afd0cc0da6b5aa5635a3c4ce3c12009d_rle_crop_4029817430_0.png.png imagette284061191762801382/1762801106_3547109_1393800345_d689a82bdab4504ae9b6af7a03ed381a_rle_crop_4029817185_0.png.png imagette284061191762801382/1762800665_3529770_1393800019_e8cadc02c498354a38f911996181d9b6_rle_crop_4029801793_0.png.png imagette284061191762801382/1762801267_3619064_1393800175_77d779f2c0cc6146583080fb8ea621d5_rle_crop_4029818105_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/46adce7b09b940079124b90662507180_8308350.png imagette284061191762801382 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28406093 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28406122,28406123,28406124,28406125,28406126,28406127,28406128,28406129,28406130,28406131,28406132,28406133?tags=metal,autre_refus,plastique,Carton_brun,environnement,cartonnette,kraft,flou,Teint_Dans_La_Masse,mal_croppe,papier,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1393802252] : ('0.08666394721791995',) no score found for photo 1393802252 We are sending mail with results at report@fotonower.com args[1393801898] : ('0.08666394721791995',) no score found for photo 1393801898 We are sending mail with results at report@fotonower.com args[1393801880] : ('0.08666394721791995',) no score found for photo 1393801880 We are sending mail with results at report@fotonower.com args[1393801843] : ('0.08666394721791995',) no score found for photo 1393801843 We are sending mail with results at report@fotonower.com refus_total : 0.08666394721791995 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406093 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_P28406093_10-11-2025_20_02_59.pdf results_Auto_P28406093_10-11-2025_20_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28406093_10-11-2025_20_02_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28406093','results_Auto_P28406093_10-11-2025_20_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28406093_10-11-2025_20_02_59.pdf','pdf','','0.23','0.08666394721791995') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28406093]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393802252, 1393801898, 1393801880, 1393801843] map_info['map_portfolio_photo'] : {28406093: [1393802252, 1393801898, 1393801880, 1393801843, 1393801616, 1393801551, 1393801483, 1393801421, 1393801384, 1393801346, 1393800518, 1393800517, 1393800516, 1393800514, 1393800496, 1393800493, 1393800489, 1393800486, 1393800484, 1393800482, 1393800465, 1393800461, 1393800456, 1393800453, 1393800451, 1393800450, 1393800370, 1393800362, 1393800355, 1393800345, 1393800266, 1393800263, 1393800260, 1393800257, 1393800253, 1393800244, 1393800209, 1393800205, 1393800203, 1393800201, 1393800180, 1393800178, 1393800176, 1393800175, 1393800173, 1393800143, 1393800140, 1393800138, 1393800136, 1393800134, 1393800100, 1393800097, 1393800095, 1393800093, 1393800091, 1393800061, 1393800058, 1393800056, 1393800055, 1393800049, 1393800022, 1393800019, 1393800016, 1393800013, 1393799990, 1393799986, 1393799975, 1393799969, 1393799950, 1393799789, 1393799786, 1393799783, 1393799781, 1393799779]} final : False mtd_id 4302 list_pids : [1393802252, 1393801898, 1393801880, 1393801843] 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, '4029011') ('4302', '28406093', '1393802252', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '28406093', '1393802252', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011')] time used for this insertion : 0.012712955474853516 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.038079738616943 time spend to save output : 0.012900829315185547 total time spend for step 4 : 5.050980567932129 step5:split_time_score Mon Nov 10 20:03: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 : ['28406093'] 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 : [('28406093',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28406093) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393801880: {'path': 'temp/1762801379_3070594_1393801880_b1b7c48026ccfa6b8c18bba492042e3d.jpg', 'extension': 'jpg'}, 1393801843: {'path': 'temp/1762801379_3070594_1393801843_15def1fb43d31f387c7f47183f195d59.jpg', 'extension': 'jpg'}, 1393801898: {'path': 'temp/1762801379_3070594_1393801898_2626ca532298caad9d96cc5fb92e9d76.jpg', 'extension': 'jpg'}, 1393802252: {'path': 'temp/1762801379_3070594_1393802252_3e6036820c495492af7a5a8d730f8460.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 = 28406093; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28406093 group by h (('19', 74),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28406093 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 (28406093) 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 (28406093) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10112025 28406093 Nombre de photos uploadées : 74 / 23040 (0%) 10112025 28406093 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 10112025 28406093 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1393799789, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/28c2a7e94c5b07e2863a7e78aa23d9cd.jpg', 'username': None, 'uploaded_at': 1762800372, 'text': 'image_10112025_19_45_04_010161m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393799786, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/5eb7833acb8bdc2f79c6c89884a3fdfc.jpg', 'username': None, 'uploaded_at': 1762800372, 'text': 'image_10112025_19_45_13_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393799783, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/85c3029bab6c3dd73331ac7109a47a0d.jpg', 'username': None, 'uploaded_at': 1762800372, 'text': 'image_10112025_19_45_23_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393799781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/10/dda3bec07bf988975df98050a3898e57.jpg', 'username': None, 'uploaded_at': 1762800372, 'text': 'image_10112025_19_45_34_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003335237503051758 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28406093, '2025-11-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2549819,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20626139640808105 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= 2549819 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28372304, 'dashboard_result_id': 17096728, '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_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28372486, 'dashboard_result_id': 17096729, '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_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28372713, 'dashboard_result_id': 17096730, '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_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28373113, 'dashboard_result_id': 17096731, '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_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28373480, 'dashboard_result_id': 17096732, '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_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28374053, 'dashboard_result_id': 17096733, '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_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28374472, 'dashboard_result_id': 17096734, '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_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28374942, 'dashboard_result_id': 17096735, '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_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28375472, 'dashboard_result_id': 17096736, '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_P28375472_10-11-2025_07_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28376164, 'dashboard_result_id': 17096737, '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_P28376164_10-11-2025_07_35_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28376194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376205, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28376723, 'dashboard_result_id': 17096738, '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_P28376723_10-11-2025_07_51_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28376756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376763, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28377316, 'dashboard_result_id': 17096739, '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_P28377316_10-11-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377330, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28377851, 'dashboard_result_id': 17096741, '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_P28377851_10-11-2025_08_18_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377875, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28378557, 'dashboard_result_id': 17096742, '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_P28378557_10-11-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28378585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28378586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28378587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28378588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28378589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28378590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28378591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28378592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28378593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28378594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28378595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28378596, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28379318, 'dashboard_result_id': 17096743, '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_P28379318_10-11-2025_08_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28379354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28379355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28379356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28379357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28379358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28379359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28379360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28379361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28379362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28379363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28379364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28379365, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28380019, 'dashboard_result_id': 17096744, '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_P28380019_10-11-2025_09_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28380051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28380052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28380053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28380054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28380055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28380056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28380057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28380058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28380059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28380060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28380061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28380062, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28381483, 'dashboard_result_id': 17096745, '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_P28381483_10-11-2025_09_47_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28381491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28381492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28381493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28381494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28381495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28381496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28381497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28381498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28381499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28381500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28381501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28381502, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28381948, 'dashboard_result_id': 17096746, '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_P28381948_10-11-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28381957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28381958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28381959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28381960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28381961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28381962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28381963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28381964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28381965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28381966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28381967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28381968, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28382584, 'dashboard_result_id': 17096747, '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_P28382584_10-11-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28382591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28382593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28382594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28382595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28382596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28382597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28382598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28382599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28382600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28382601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28382602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28382603, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28383144, 'dashboard_result_id': 17096748, '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_P28383144_10-11-2025_10_36_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28383158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28383159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28383160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28383161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28383162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28383163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28383164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28383165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28383166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28383167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28383168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28383169, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28384078, 'dashboard_result_id': 17096749, '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_P28384078_10-11-2025_10_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28384083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28384084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28384085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28384086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28384087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28384088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28384089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28384090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28384091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28384092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28384093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28384094, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28384360, 'dashboard_result_id': 17096750, '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_P28384360_10-11-2025_11_06_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28384399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28384400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28384401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28384402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28384403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28384404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28384405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28384406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28384407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28384408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28384409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28384410, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28385428, 'dashboard_result_id': 17096751, '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_P28385428_10-11-2025_11_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28385435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28385436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28385437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28385438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28385439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28385440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28385441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28385442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28385443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28385444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28385445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28385446, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28385672, 'dashboard_result_id': 17096753, '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_P28385672_10-11-2025_11_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28385723, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28385724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28385725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28385726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28385727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28385728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28385729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28385730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28385731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28385732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28385733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28385734, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28386381, 'dashboard_result_id': 17096755, '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_P28386381_10-11-2025_11_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28386412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28386413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28386414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28386415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28386416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28386417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28386418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28386419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28386420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28386421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28386422, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28386994, 'dashboard_result_id': 17096756, '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_P28386994_10-11-2025_12_04_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28387002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28387003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28387004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28387005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28387006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28387007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28387008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28387009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28387010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28387011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28387012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28387013, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28387630, 'dashboard_result_id': 17096757, '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_P28387630_10-11-2025_14_01_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28387631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28387632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28387633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28387634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28387635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28387636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28387637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28387638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28387639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28387640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28387641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28387642, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28390004, 'dashboard_result_id': 17096758, '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_P28390004_10-11-2025_13_51_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28390009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390020, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28390407, 'dashboard_result_id': 17096759, '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_P28390407_10-11-2025_14_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28390412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390419, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28390736, 'dashboard_result_id': 17096760, '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_P28390736_10-11-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28390757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390765, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28391525, 'dashboard_result_id': 17096761, '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_P28391525_10-11-2025_14_34_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28391575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28391576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28391577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28391578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28391579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28391580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28391581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28391582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28391583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28391584, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28392204, 'dashboard_result_id': 17096762, '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_P28392204_10-11-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28392228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28392229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28392230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28392231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28392232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28392233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28392234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28392235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28392236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28392237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28392238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28392239, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28392829, 'dashboard_result_id': 17096763, '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_P28392829_10-11-2025_15_07_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28392860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28392861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28392862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28392864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28392865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28392866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28392868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28392869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28392870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28392872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28392873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28392874, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28393474, 'dashboard_result_id': 17096764, '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_P28393474_10-11-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28393524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28393525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28393526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28393527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28393528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28393529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28393530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28393531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28393532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28393533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28393534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28393535, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28394282, 'dashboard_result_id': 17096765, '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_P28394282_10-11-2025_15_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28394343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28394344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28394345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28394346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28394347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28394348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28394349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28394350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28394351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28394352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28394353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28394354, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28395728, 'dashboard_result_id': 17096766, '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_P28395728_10-11-2025_16_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28395733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28395734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28395735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28395736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28395737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28395738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28395739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28395740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28395741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28395742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28395743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28395744, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28396189, 'dashboard_result_id': 17096767, '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_P28396189_10-11-2025_16_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28396206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28396207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28396208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28396209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28396210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28396211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28396212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28396213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28396214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28396215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28396216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28396217, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28396822, 'dashboard_result_id': 17096769, '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_P28396822_10-11-2025_16_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28396832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28396833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28396834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28396835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28396836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28396837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28396838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28396839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28396840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28396841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28396842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28396843, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28397438, 'dashboard_result_id': 17096770, '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_P28397438_10-11-2025_16_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28397457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28397458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28397459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28397460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28397461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28397462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28397463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28397464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28397465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28397466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28397467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28397468, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28398136, 'dashboard_result_id': 17096771, '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_P28398136_10-11-2025_17_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28398177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28398179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28398181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28398183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28398185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28398187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28398190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28398192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28398196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28398198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28398200, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28399085, 'dashboard_result_id': 17096772, '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_P28399085_10-11-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28399089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28399090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28399091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28399092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28399093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28399094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28399095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28399096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28399097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28399098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28399099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28399100, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28399631, 'dashboard_result_id': 17096773, '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_P28399631_10-11-2025_18_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28399647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28399648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28399649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28399650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28399651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28399652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28399653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28399654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28399655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28399656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28399658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28399659, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28401724, 'dashboard_result_id': 17096774, '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_P28401724_10-11-2025_18_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28401743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28401744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28401745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28401746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28401747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28401748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28401749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28401750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28401751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28401752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28401753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28401754, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28402137, 'dashboard_result_id': 17096775, '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_P28402137_10-11-2025_18_34_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28402151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28402152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28402153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28402154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28402155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28402156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28402157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28402158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28402159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28402160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28402161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28402163, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28402642, 'dashboard_result_id': 17096776, '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_P28402642_10-11-2025_18_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28402660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28402661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28402662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28402663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28402664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28402665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28402666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28402667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28402668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28402669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28402670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28402671, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28403254, 'dashboard_result_id': 17096777, '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_P28403254_10-11-2025_19_04_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28403296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28403297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28403298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28403299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28403300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28403301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28403302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28403303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28403304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28403305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28403306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28403307, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28404255, 'dashboard_result_id': 17096778, '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_P28404255_10-11-2025_19_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28404265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28404266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28404267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28404268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28404269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28404270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28404271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28404272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28404273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28404274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28404275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28404276, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28404744, 'dashboard_result_id': 17096779, '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_P28404744_10-11-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28404819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28404820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28404821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28404822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28404823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28404824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28404825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28404826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28404827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28404828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28404829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28404830, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28405464, 'dashboard_result_id': 17096780, '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_P28405464_10-11-2025_19_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28405492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28405493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28405494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28405495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28405496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28405497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28405498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28405499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28405501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28405502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28405503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28405504, 'pht': 3726}}"}, {'dashboat_entry_day': 2549819, 'dashboard_run_id': 2562376, 'mtr_portfolio_id': 28406093, 'dashboard_result_id': 17096781, '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_P28406093_10-11-2025_19_58_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28406108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28406109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28406110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28406111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28406112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28406113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28406114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28406115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28406116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28406117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28406118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28406119, '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 = 28372304 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': 4024530, 'mtr_portfolio_id': 28372304, 'created_at': datetime.datetime(2025, 11, 10, 5, 16, 29), 'result': '0.040350622235919155', 'result_long': None, 'result_double': None}] Qualite : 0.040350622235919155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372304 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_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, 'pht': 3726}}" where mtr_portfolio_id = 28372304 and dashboard_run_id = 2562376 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`=28372304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096728, 0.040350622235919155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372304_10-11-2025_05_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372319, '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 = 28372486 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': 4024551, 'mtr_portfolio_id': 28372486, 'created_at': datetime.datetime(2025, 11, 10, 5, 32, 58), 'result': '0.03267969703415672', 'result_long': None, 'result_double': None}] Qualite : 0.03267969703415672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372486 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_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, 'pht': 3726}}" where mtr_portfolio_id = 28372486 and dashboard_run_id = 2562376 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`=28372486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096729, 0.03267969703415672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372486_10-11-2025_05_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372491, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372492, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372498, '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 = 28372713 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': 4024586, 'mtr_portfolio_id': 28372713, 'created_at': datetime.datetime(2025, 11, 10, 5, 48, 57), 'result': '0.05104206465845779', 'result_long': None, 'result_double': None}] Qualite : 0.05104206465845779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28372713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28372713 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_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, 'pht': 3726}}" where mtr_portfolio_id = 28372713 and dashboard_run_id = 2562376 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`=28372713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096730, 0.05104206465845779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28372713_10-11-2025_05_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28372717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28372718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28372719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28372720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28372721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28372722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28372723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28372724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28372725, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28372726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28372727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28372728, '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 = 28373113 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': 4024643, 'mtr_portfolio_id': 28373113, 'created_at': datetime.datetime(2025, 11, 10, 6, 3), 'result': '0.038593374114432984', 'result_long': None, 'result_double': None}] Qualite : 0.038593374114432984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373113 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_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, 'pht': 3726}}" where mtr_portfolio_id = 28373113 and dashboard_run_id = 2562376 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`=28373113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096731, 0.038593374114432984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373113_10-11-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373122, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373124, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373130, '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 = 28373480 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': 4024718, 'mtr_portfolio_id': 28373480, 'created_at': datetime.datetime(2025, 11, 10, 6, 18, 59), 'result': '0.07257098431664193', 'result_long': None, 'result_double': None}] Qualite : 0.07257098431664193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28373480 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28373480 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_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, 'pht': 3726}}" where mtr_portfolio_id = 28373480 and dashboard_run_id = 2562376 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`=28373480 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096732, 0.07257098431664193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28373480_10-11-2025_06_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28373541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28373542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28373543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28373544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28373545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28373546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28373547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28373548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28373549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28373550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28373551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28373552, '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 = 28374053 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': 4024775, 'mtr_portfolio_id': 28374053, 'created_at': datetime.datetime(2025, 11, 10, 6, 32, 58), 'result': '0.05042567139499325', 'result_long': None, 'result_double': None}] Qualite : 0.05042567139499325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374053 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_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, 'pht': 3726}}" where mtr_portfolio_id = 28374053 and dashboard_run_id = 2562376 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`=28374053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096733, 0.05042567139499325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374053_10-11-2025_06_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374073, '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 = 28374472 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': 4024844, 'mtr_portfolio_id': 28374472, 'created_at': datetime.datetime(2025, 11, 10, 6, 48, 58), 'result': '0.06494757563686468', 'result_long': None, 'result_double': None}] Qualite : 0.06494757563686468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374472 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_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, 'pht': 3726}}" where mtr_portfolio_id = 28374472 and dashboard_run_id = 2562376 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`=28374472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096734, 0.06494757563686468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374472_10-11-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374505, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374509, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28374512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374515, '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 = 28374942 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': 4024918, 'mtr_portfolio_id': 28374942, 'created_at': datetime.datetime(2025, 11, 10, 7, 2, 59), 'result': '0.04917242315581193', 'result_long': None, 'result_double': None}] Qualite : 0.04917242315581193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28374942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28374942 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_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, 'pht': 3726}}" where mtr_portfolio_id = 28374942 and dashboard_run_id = 2562376 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`=28374942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096735, 0.04917242315581193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28374942_10-11-2025_07_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28374975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28374976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28374977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28374978, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28374979, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28374980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28374981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28374982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28374983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28374984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28374985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28374986, '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 = 28375472 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': 4024993, 'mtr_portfolio_id': 28375472, 'created_at': datetime.datetime(2025, 11, 10, 7, 18, 57), 'result': '0.0495152725659975', 'result_long': None, 'result_double': None}] Qualite : 0.0495152725659975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28375472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28375472 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_P28375472_10-11-2025_07_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, 'pht': 3726}}" where mtr_portfolio_id = 28375472 and dashboard_run_id = 2562376 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`=28375472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096736, 0.0495152725659975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28375472_10-11-2025_07_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28375500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28375501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28375502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28375503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28375504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28375505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28375506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28375507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28375508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28375509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28375510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28375511, '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 = 28376164 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': 4025075, 'mtr_portfolio_id': 28376164, 'created_at': datetime.datetime(2025, 11, 10, 7, 35, 29), 'result': '0.055443173805302226', 'result_long': None, 'result_double': None}] Qualite : 0.055443173805302226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28376164 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376164_10-11-2025_07_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28376164 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_P28376164_10-11-2025_07_35_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28376194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376205, 'pht': 3726}}" where mtr_portfolio_id = 28376164 and dashboard_run_id = 2562376 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`=28376164 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096737, 0.055443173805302226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376164_10-11-2025_07_35_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28376194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376201, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376204, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376205, '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 = 28376723 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': 4025160, 'mtr_portfolio_id': 28376723, 'created_at': datetime.datetime(2025, 11, 10, 7, 51, 29), 'result': '0.05091454989943948', 'result_long': None, 'result_double': None}] Qualite : 0.05091454989943948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28376723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376723_10-11-2025_07_51_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28376723 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_P28376723_10-11-2025_07_51_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28376756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376763, 'pht': 3726}}" where mtr_portfolio_id = 28376723 and dashboard_run_id = 2562376 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`=28376723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096738, 0.05091454989943948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28376723_10-11-2025_07_51_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28376751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28376752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28376753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28376754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28376755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28376756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28376757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28376758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28376759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28376760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28376761, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28376763, '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 = 28377316 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': 4025262, 'mtr_portfolio_id': 28377316, 'created_at': datetime.datetime(2025, 11, 10, 8, 6, 57), 'result': '0.0715972955766616', 'result_long': None, 'result_double': None}] Qualite : 0.0715972955766616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28377316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377316_10-11-2025_08_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28377316 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_P28377316_10-11-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377330, 'pht': 3726}}" where mtr_portfolio_id = 28377316 and dashboard_run_id = 2562376 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`=28377316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096739, 0.0715972955766616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377316_10-11-2025_08_06_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377330, '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 = 28377851 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': 4025344, 'mtr_portfolio_id': 28377851, 'created_at': datetime.datetime(2025, 11, 10, 8, 17, 59), 'result': '0.04665532066178158', 'result_long': None, 'result_double': None}] Qualite : 0.04665532066178158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28377851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377851_10-11-2025_08_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28377851 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_P28377851_10-11-2025_08_18_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377875, 'pht': 3726}}" where mtr_portfolio_id = 28377851 and dashboard_run_id = 2562376 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`=28377851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096741, 0.04665532066178158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28377851_10-11-2025_08_18_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28377864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28377865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28377866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28377867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28377868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28377869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28377870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28377871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28377872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28377873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28377874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28377875, '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 = 28378557 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': 4025411, 'mtr_portfolio_id': 28378557, 'created_at': datetime.datetime(2025, 11, 10, 8, 33, 1), 'result': '0.0632283335929362', 'result_long': None, 'result_double': None}] Qualite : 0.0632283335929362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28378557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28378557 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_P28378557_10-11-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28378585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28378586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28378587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28378588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28378589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28378590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28378591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28378592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28378593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28378594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28378595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28378596, 'pht': 3726}}" where mtr_portfolio_id = 28378557 and dashboard_run_id = 2562376 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`=28378557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096742, 0.0632283335929362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28378557_10-11-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28378585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28378586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28378587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28378588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28378589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28378590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28378591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28378592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28378593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28378594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28378595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28378596, '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 = 28379318 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': 4025573, 'mtr_portfolio_id': 28379318, 'created_at': datetime.datetime(2025, 11, 10, 8, 48, 59), 'result': '0.052687971395923475', 'result_long': None, 'result_double': None}] Qualite : 0.052687971395923475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28379318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28379318_10-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28379318 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_P28379318_10-11-2025_08_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28379354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28379355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28379356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28379357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28379358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28379359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28379360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28379361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28379362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28379363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28379364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28379365, 'pht': 3726}}" where mtr_portfolio_id = 28379318 and dashboard_run_id = 2562376 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`=28379318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096743, 0.052687971395923475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28379318_10-11-2025_08_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28379354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28379355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28379356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28379357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28379358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28379359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28379360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28379361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28379362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28379363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28379364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28379365, '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 = 28380019 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': 4025679, 'mtr_portfolio_id': 28380019, 'created_at': datetime.datetime(2025, 11, 10, 9, 2, 57), 'result': '0.04620936477169002', 'result_long': None, 'result_double': None}] Qualite : 0.04620936477169002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28380019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28380019_10-11-2025_09_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28380019 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_P28380019_10-11-2025_09_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28380051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28380052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28380053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28380054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28380055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28380056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28380057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28380058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28380059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28380060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28380061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28380062, 'pht': 3726}}" where mtr_portfolio_id = 28380019 and dashboard_run_id = 2562376 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`=28380019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096744, 0.04620936477169002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28380019_10-11-2025_09_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28380051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28380052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28380053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28380054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28380055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28380056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28380057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28380058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28380059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28380060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28380061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28380062, '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 = 28381483 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': 4025880, 'mtr_portfolio_id': 28381483, 'created_at': datetime.datetime(2025, 11, 10, 9, 47, 29), 'result': '0.046765061597362656', 'result_long': None, 'result_double': None}] Qualite : 0.046765061597362656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28381483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28381483_10-11-2025_09_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28381483 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_P28381483_10-11-2025_09_47_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28381491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28381492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28381493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28381494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28381495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28381496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28381497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28381498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28381499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28381500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28381501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28381502, 'pht': 3726}}" where mtr_portfolio_id = 28381483 and dashboard_run_id = 2562376 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`=28381483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096745, 0.046765061597362656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28381483_10-11-2025_09_47_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28381491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28381492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28381493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28381494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28381495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28381496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28381497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28381498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28381499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28381500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28381501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28381502, '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 = 28381948 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': 4025932, 'mtr_portfolio_id': 28381948, 'created_at': datetime.datetime(2025, 11, 10, 10, 2, 59), 'result': '0.05582872670094759', 'result_long': None, 'result_double': None}] Qualite : 0.05582872670094759 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28381948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28381948_10-11-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28381948 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_P28381948_10-11-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28381957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28381958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28381959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28381960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28381961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28381962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28381963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28381964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28381965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28381966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28381967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28381968, 'pht': 3726}}" where mtr_portfolio_id = 28381948 and dashboard_run_id = 2562376 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`=28381948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096746, 0.05582872670094759, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28381948_10-11-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28381957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28381958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28381959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28381960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28381961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28381962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28381963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28381964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28381965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28381966, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28381967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28381968, '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 = 28382584 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': 4026025, 'mtr_portfolio_id': 28382584, 'created_at': datetime.datetime(2025, 11, 10, 10, 16, 59), 'result': '0.0635153238587302', 'result_long': None, 'result_double': None}] Qualite : 0.0635153238587302 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28382584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28382584_10-11-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28382584 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_P28382584_10-11-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28382591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28382593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28382594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28382595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28382596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28382597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28382598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28382599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28382600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28382601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28382602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28382603, 'pht': 3726}}" where mtr_portfolio_id = 28382584 and dashboard_run_id = 2562376 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`=28382584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096747, 0.0635153238587302, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28382584_10-11-2025_10_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28382591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28382593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28382594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28382595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28382596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28382597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28382598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28382599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28382600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28382601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28382602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28382603, '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 = 28383144 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': 4026062, 'mtr_portfolio_id': 28383144, 'created_at': datetime.datetime(2025, 11, 10, 10, 36, 59), 'result': '0.04453135145039819', 'result_long': None, 'result_double': None}] Qualite : 0.04453135145039819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28383144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28383144_10-11-2025_10_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28383144 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_P28383144_10-11-2025_10_36_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28383158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28383159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28383160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28383161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28383162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28383163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28383164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28383165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28383166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28383167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28383168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28383169, 'pht': 3726}}" where mtr_portfolio_id = 28383144 and dashboard_run_id = 2562376 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`=28383144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096748, 0.04453135145039819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28383144_10-11-2025_10_36_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28383158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28383159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28383160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28383161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28383162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28383163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28383164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28383165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28383166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28383167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28383168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28383169, '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 = 28384078 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': 4026165, 'mtr_portfolio_id': 28384078, 'created_at': datetime.datetime(2025, 11, 10, 10, 46, 58), 'result': '0.061941809552346704', 'result_long': None, 'result_double': None}] Qualite : 0.061941809552346704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28384078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28384078_10-11-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28384078 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_P28384078_10-11-2025_10_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28384083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28384084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28384085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28384086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28384087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28384088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28384089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28384090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28384091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28384092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28384093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28384094, 'pht': 3726}}" where mtr_portfolio_id = 28384078 and dashboard_run_id = 2562376 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`=28384078 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096749, 0.061941809552346704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28384078_10-11-2025_10_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28384083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28384084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28384085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28384086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28384087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28384088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28384089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28384090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28384091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28384092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28384093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28384094, '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 = 28384360 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': 4026194, 'mtr_portfolio_id': 28384360, 'created_at': datetime.datetime(2025, 11, 10, 11, 6, 29), 'result': '0.05170377174571424', 'result_long': None, 'result_double': None}] Qualite : 0.05170377174571424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28384360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28384360_10-11-2025_11_06_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28384360 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_P28384360_10-11-2025_11_06_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28384399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28384400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28384401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28384402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28384403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28384404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28384405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28384406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28384407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28384408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28384409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28384410, 'pht': 3726}}" where mtr_portfolio_id = 28384360 and dashboard_run_id = 2562376 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`=28384360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096750, 0.05170377174571424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28384360_10-11-2025_11_06_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28384399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28384400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28384401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28384402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28384403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28384404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28384405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28384406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28384407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28384408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28384409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28384410, '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 = 28385428 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': 4026343, 'mtr_portfolio_id': 28385428, 'created_at': datetime.datetime(2025, 11, 10, 11, 17), 'result': '0.03394178655774944', 'result_long': None, 'result_double': None}] Qualite : 0.03394178655774944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28385428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28385428_10-11-2025_11_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28385428 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_P28385428_10-11-2025_11_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28385435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28385436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28385437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28385438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28385439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28385440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28385441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28385442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28385443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28385444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28385445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28385446, 'pht': 3726}}" where mtr_portfolio_id = 28385428 and dashboard_run_id = 2562376 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`=28385428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096751, 0.03394178655774944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28385428_10-11-2025_11_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28385435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28385436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28385437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28385438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28385439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28385440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28385441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28385442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28385443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28385444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28385445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28385446, '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 = 28385672 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': 4026375, 'mtr_portfolio_id': 28385672, 'created_at': datetime.datetime(2025, 11, 10, 11, 32, 59), 'result': '0.06471623540708998', 'result_long': None, 'result_double': None}] Qualite : 0.06471623540708998 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28385672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28385672_10-11-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28385672 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_P28385672_10-11-2025_11_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28385723, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28385724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28385725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28385726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28385727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28385728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28385729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28385730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28385731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28385732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28385733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28385734, 'pht': 3726}}" where mtr_portfolio_id = 28385672 and dashboard_run_id = 2562376 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`=28385672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096753, 0.06471623540708998, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28385672_10-11-2025_11_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28385723, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28385724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28385725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28385726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28385727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28385728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28385729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28385730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28385731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28385732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28385733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28385734, '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 = 28386381 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': 4026452, 'mtr_portfolio_id': 28386381, 'created_at': datetime.datetime(2025, 11, 10, 11, 46, 57), 'result': '0.04717387907869772', 'result_long': None, 'result_double': None}] Qualite : 0.04717387907869772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28386381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28386381_10-11-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28386381 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_P28386381_10-11-2025_11_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28386412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28386413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28386414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28386415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28386416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28386417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28386418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28386419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28386420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28386421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28386422, 'pht': 3726}}" where mtr_portfolio_id = 28386381 and dashboard_run_id = 2562376 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`=28386381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096755, 0.04717387907869772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28386381_10-11-2025_11_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28386412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28386413, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28386414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28386415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28386416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28386417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28386418, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28386419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28386420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28386421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28386422, '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 = 28386994 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': 4026548, 'mtr_portfolio_id': 28386994, 'created_at': datetime.datetime(2025, 11, 10, 12, 4, 30), 'result': '0.058940377326886076', 'result_long': None, 'result_double': None}] Qualite : 0.058940377326886076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28386994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28386994_10-11-2025_12_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28386994 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_P28386994_10-11-2025_12_04_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28387002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28387003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28387004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28387005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28387006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28387007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28387008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28387009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28387010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28387011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28387012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28387013, 'pht': 3726}}" where mtr_portfolio_id = 28386994 and dashboard_run_id = 2562376 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`=28386994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096756, 0.058940377326886076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28386994_10-11-2025_12_04_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28387002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28387003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28387004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28387005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28387006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28387007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28387008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28387009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28387010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28387011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28387012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28387013, '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 = 28387630 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': 4026637, 'mtr_portfolio_id': 28387630, 'created_at': datetime.datetime(2025, 11, 10, 14, 1, 12), 'result': '0.060646208647271736', 'result_long': None, 'result_double': None}] Qualite : 0.060646208647271736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28387630 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28387630_10-11-2025_14_01_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28387630 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_P28387630_10-11-2025_14_01_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28387631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28387632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28387633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28387634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28387635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28387636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28387637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28387638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28387639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28387640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28387641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28387642, 'pht': 3726}}" where mtr_portfolio_id = 28387630 and dashboard_run_id = 2562376 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`=28387630 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096757, 0.060646208647271736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28387630_10-11-2025_14_01_12.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28387631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28387632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28387633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28387634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28387635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28387636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28387637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28387638, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28387639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28387640, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28387641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28387642, '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 = 28390004 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': 4026952, 'mtr_portfolio_id': 28390004, 'created_at': datetime.datetime(2025, 11, 10, 13, 51, 8), 'result': '0.05811248611845029', 'result_long': None, 'result_double': None}] Qualite : 0.05811248611845029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28390004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28390004_10-11-2025_13_51_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28390004 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_P28390004_10-11-2025_13_51_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28390009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390020, 'pht': 3726}}" where mtr_portfolio_id = 28390004 and dashboard_run_id = 2562376 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`=28390004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096758, 0.05811248611845029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28390004_10-11-2025_13_51_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28390009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390020, '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 = 28390407 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': 4026988, 'mtr_portfolio_id': 28390407, 'created_at': datetime.datetime(2025, 11, 10, 14, 2, 57), 'result': '0.04554888365033746', 'result_long': None, 'result_double': None}] Qualite : 0.04554888365033746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28390407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28390407_10-11-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28390407 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_P28390407_10-11-2025_14_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28390412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390419, 'pht': 3726}}" where mtr_portfolio_id = 28390407 and dashboard_run_id = 2562376 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`=28390407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096759, 0.04554888365033746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28390407_10-11-2025_14_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390409, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28390412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390419, '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 = 28390736 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': 4027048, 'mtr_portfolio_id': 28390736, 'created_at': datetime.datetime(2025, 11, 10, 14, 16, 59), 'result': '0.04943007508371187', 'result_long': None, 'result_double': None}] Qualite : 0.04943007508371187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28390736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28390736_10-11-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28390736 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_P28390736_10-11-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28390757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390765, 'pht': 3726}}" where mtr_portfolio_id = 28390736 and dashboard_run_id = 2562376 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`=28390736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096760, 0.04943007508371187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28390736_10-11-2025_14_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28390754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28390755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28390756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28390757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28390758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28390759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28390760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28390761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28390762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28390763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28390764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28390765, '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 = 28391525 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': 4027125, 'mtr_portfolio_id': 28391525, 'created_at': datetime.datetime(2025, 11, 10, 14, 34, 56), 'result': '0.05133014256138474', 'result_long': None, 'result_double': None}] Qualite : 0.05133014256138474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28391525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28391525_10-11-2025_14_34_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28391525 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_P28391525_10-11-2025_14_34_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28391575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28391576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28391577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28391578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28391579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28391580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28391581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28391582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28391583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28391584, 'pht': 3726}}" where mtr_portfolio_id = 28391525 and dashboard_run_id = 2562376 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`=28391525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096761, 0.05133014256138474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28391525_10-11-2025_14_34_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28391575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28391576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28391577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28391578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28391579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28391580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28391581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28391582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28391583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28391584, '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 = 28392204 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': 4027224, 'mtr_portfolio_id': 28392204, 'created_at': datetime.datetime(2025, 11, 10, 14, 48, 59), 'result': '0.06312437999355919', 'result_long': None, 'result_double': None}] Qualite : 0.06312437999355919 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28392204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28392204_10-11-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28392204 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_P28392204_10-11-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28392228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28392229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28392230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28392231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28392232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28392233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28392234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28392235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28392236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28392237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28392238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28392239, 'pht': 3726}}" where mtr_portfolio_id = 28392204 and dashboard_run_id = 2562376 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`=28392204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096762, 0.06312437999355919, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28392204_10-11-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28392228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28392229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28392230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28392231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28392232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28392233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28392234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28392235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28392236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28392237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28392238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28392239, '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 = 28392829 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': 4027310, 'mtr_portfolio_id': 28392829, 'created_at': datetime.datetime(2025, 11, 10, 15, 7), 'result': '0.05232591176396583', 'result_long': None, 'result_double': None}] Qualite : 0.05232591176396583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28392829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28392829_10-11-2025_15_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28392829 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_P28392829_10-11-2025_15_07_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28392860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28392861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28392862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28392864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28392865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28392866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28392868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28392869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28392870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28392872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28392873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28392874, 'pht': 3726}}" where mtr_portfolio_id = 28392829 and dashboard_run_id = 2562376 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`=28392829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096763, 0.05232591176396583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28392829_10-11-2025_15_07_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28392860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28392861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28392862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28392864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28392865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28392866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28392868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28392869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28392870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28392872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28392873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28392874, '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 = 28393474 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': 4027428, 'mtr_portfolio_id': 28393474, 'created_at': datetime.datetime(2025, 11, 10, 15, 18, 59), 'result': '0.06077045780642274', 'result_long': None, 'result_double': None}] Qualite : 0.06077045780642274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28393474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28393474_10-11-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28393474 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_P28393474_10-11-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28393524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28393525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28393526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28393527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28393528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28393529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28393530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28393531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28393532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28393533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28393534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28393535, 'pht': 3726}}" where mtr_portfolio_id = 28393474 and dashboard_run_id = 2562376 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`=28393474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096764, 0.06077045780642274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28393474_10-11-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28393524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28393525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28393526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28393527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28393528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28393529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28393530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28393531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28393532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28393533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28393534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28393535, '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 = 28394282 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': 4027521, 'mtr_portfolio_id': 28394282, 'created_at': datetime.datetime(2025, 11, 10, 15, 34, 59), 'result': '0.06966749726717589', 'result_long': None, 'result_double': None}] Qualite : 0.06966749726717589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28394282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28394282_10-11-2025_15_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28394282 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_P28394282_10-11-2025_15_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28394343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28394344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28394345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28394346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28394347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28394348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28394349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28394350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28394351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28394352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28394353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28394354, 'pht': 3726}}" where mtr_portfolio_id = 28394282 and dashboard_run_id = 2562376 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`=28394282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096765, 0.06966749726717589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28394282_10-11-2025_15_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28394343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28394344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28394345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28394346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28394347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28394348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28394349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28394350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28394351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28394352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28394353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28394354, '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 = 28395728 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': 4027689, 'mtr_portfolio_id': 28395728, 'created_at': datetime.datetime(2025, 11, 10, 16, 3, 28), 'result': '0.04278870558359258', 'result_long': None, 'result_double': None}] Qualite : 0.04278870558359258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28395728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28395728_10-11-2025_16_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28395728 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_P28395728_10-11-2025_16_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28395733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28395734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28395735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28395736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28395737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28395738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28395739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28395740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28395741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28395742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28395743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28395744, 'pht': 3726}}" where mtr_portfolio_id = 28395728 and dashboard_run_id = 2562376 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`=28395728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096766, 0.04278870558359258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28395728_10-11-2025_16_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28395733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28395734, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28395735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28395736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28395737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28395738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28395739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28395740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28395741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28395742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28395743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28395744, '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 = 28396189 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': 4027767, 'mtr_portfolio_id': 28396189, 'created_at': datetime.datetime(2025, 11, 10, 16, 16, 58), 'result': '0.050027701662502165', 'result_long': None, 'result_double': None}] Qualite : 0.050027701662502165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28396189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28396189_10-11-2025_16_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28396189 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_P28396189_10-11-2025_16_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28396206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28396207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28396208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28396209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28396210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28396211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28396212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28396213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28396214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28396215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28396216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28396217, 'pht': 3726}}" where mtr_portfolio_id = 28396189 and dashboard_run_id = 2562376 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`=28396189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096767, 0.050027701662502165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28396189_10-11-2025_16_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28396206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28396207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28396208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28396209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28396210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28396211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28396212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28396213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28396214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28396215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28396216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28396217, '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 = 28396822 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': 4027837, 'mtr_portfolio_id': 28396822, 'created_at': datetime.datetime(2025, 11, 10, 16, 32, 57), 'result': '0.04284059000572993', 'result_long': None, 'result_double': None}] Qualite : 0.04284059000572993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28396822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28396822_10-11-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28396822 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_P28396822_10-11-2025_16_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28396832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28396833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28396834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28396835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28396836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28396837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28396838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28396839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28396840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28396841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28396842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28396843, 'pht': 3726}}" where mtr_portfolio_id = 28396822 and dashboard_run_id = 2562376 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`=28396822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096769, 0.04284059000572993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28396822_10-11-2025_16_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28396832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28396833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28396834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28396835, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28396836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28396837, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28396838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28396839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28396840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28396841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28396842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28396843, '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 = 28397438 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': 4027919, 'mtr_portfolio_id': 28397438, 'created_at': datetime.datetime(2025, 11, 10, 16, 48, 58), 'result': '0.05597886324141379', 'result_long': None, 'result_double': None}] Qualite : 0.05597886324141379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28397438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28397438_10-11-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28397438 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_P28397438_10-11-2025_16_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28397457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28397458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28397459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28397460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28397461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28397462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28397463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28397464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28397465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28397466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28397467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28397468, 'pht': 3726}}" where mtr_portfolio_id = 28397438 and dashboard_run_id = 2562376 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`=28397438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096770, 0.05597886324141379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28397438_10-11-2025_16_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28397457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28397458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28397459, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28397460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28397461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28397462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28397463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28397464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28397465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28397466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28397467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28397468, '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 = 28398136 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': 4028039, 'mtr_portfolio_id': 28398136, 'created_at': datetime.datetime(2025, 11, 10, 17, 2, 59), 'result': '0.044705422680456415', 'result_long': None, 'result_double': None}] Qualite : 0.044705422680456415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28398136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28398136_10-11-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28398136 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_P28398136_10-11-2025_17_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28398177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28398179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28398181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28398183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28398185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28398187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28398190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28398192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28398196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28398198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28398200, 'pht': 3726}}" where mtr_portfolio_id = 28398136 and dashboard_run_id = 2562376 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`=28398136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096771, 0.044705422680456415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28398136_10-11-2025_17_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28398177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28398179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28398181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28398183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28398185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28398187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28398190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28398192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28398194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28398196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28398198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28398200, '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 = 28399085 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': 4028163, 'mtr_portfolio_id': 28399085, 'created_at': datetime.datetime(2025, 11, 10, 17, 18, 59), 'result': '0.055057034696786196', 'result_long': None, 'result_double': None}] Qualite : 0.055057034696786196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28399085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28399085_10-11-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28399085 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_P28399085_10-11-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28399089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28399090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28399091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28399092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28399093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28399094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28399095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28399096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28399097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28399098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28399099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28399100, 'pht': 3726}}" where mtr_portfolio_id = 28399085 and dashboard_run_id = 2562376 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`=28399085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096772, 0.055057034696786196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28399085_10-11-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28399089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28399090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28399091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28399092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28399093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28399094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28399095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28399096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28399097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28399098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28399099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28399100, '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 = 28399631 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': 4028204, 'mtr_portfolio_id': 28399631, 'created_at': datetime.datetime(2025, 11, 10, 18, 2, 58), 'result': '0.04797250695410739', 'result_long': None, 'result_double': None}] Qualite : 0.04797250695410739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28399631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28399631_10-11-2025_18_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28399631 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_P28399631_10-11-2025_18_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28399647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28399648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28399649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28399650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28399651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28399652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28399653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28399654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28399655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28399656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28399658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28399659, 'pht': 3726}}" where mtr_portfolio_id = 28399631 and dashboard_run_id = 2562376 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`=28399631 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096773, 0.04797250695410739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28399631_10-11-2025_18_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28399647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28399648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28399649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28399650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28399651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28399652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28399653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28399654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28399655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28399656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28399658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28399659, '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 = 28401724 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': 4028409, 'mtr_portfolio_id': 28401724, 'created_at': datetime.datetime(2025, 11, 10, 18, 16, 58), 'result': '0.031179865886765735', 'result_long': None, 'result_double': None}] Qualite : 0.031179865886765735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28401724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28401724_10-11-2025_18_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28401724 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_P28401724_10-11-2025_18_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28401743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28401744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28401745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28401746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28401747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28401748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28401749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28401750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28401751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28401752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28401753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28401754, 'pht': 3726}}" where mtr_portfolio_id = 28401724 and dashboard_run_id = 2562376 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`=28401724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096774, 0.031179865886765735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28401724_10-11-2025_18_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28401743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28401744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28401745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28401746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28401747, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28401748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28401749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28401750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28401751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28401752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28401753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28401754, '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 = 28402137 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': 4028446, 'mtr_portfolio_id': 28402137, 'created_at': datetime.datetime(2025, 11, 10, 18, 34, 30), 'result': '0.0412247893738284', 'result_long': None, 'result_double': None}] Qualite : 0.0412247893738284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28402137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28402137_10-11-2025_18_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28402137 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_P28402137_10-11-2025_18_34_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28402151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28402152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28402153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28402154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28402155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28402156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28402157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28402158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28402159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28402160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28402161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28402163, 'pht': 3726}}" where mtr_portfolio_id = 28402137 and dashboard_run_id = 2562376 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`=28402137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096775, 0.0412247893738284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28402137_10-11-2025_18_34_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28402151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28402152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28402153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28402154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28402155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28402156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28402157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28402158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28402159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28402160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28402161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28402163, '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 = 28402642 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': 4028525, 'mtr_portfolio_id': 28402642, 'created_at': datetime.datetime(2025, 11, 10, 18, 46, 59), 'result': '0.05110519890261381', 'result_long': None, 'result_double': None}] Qualite : 0.05110519890261381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28402642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28402642_10-11-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28402642 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_P28402642_10-11-2025_18_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28402660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28402661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28402662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28402663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28402664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28402665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28402666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28402667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28402668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28402669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28402670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28402671, 'pht': 3726}}" where mtr_portfolio_id = 28402642 and dashboard_run_id = 2562376 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`=28402642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096776, 0.05110519890261381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28402642_10-11-2025_18_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28402660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28402661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28402662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28402663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28402664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28402665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28402666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28402667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28402668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28402669, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28402670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28402671, '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 = 28403254 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': 4028612, 'mtr_portfolio_id': 28403254, 'created_at': datetime.datetime(2025, 11, 10, 19, 4, 57), 'result': '0.05973966174895254', 'result_long': None, 'result_double': None}] Qualite : 0.05973966174895254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28403254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28403254_10-11-2025_19_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28403254 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_P28403254_10-11-2025_19_04_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28403296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28403297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28403298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28403299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28403300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28403301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28403302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28403303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28403304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28403305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28403306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28403307, 'pht': 3726}}" where mtr_portfolio_id = 28403254 and dashboard_run_id = 2562376 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`=28403254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096777, 0.05973966174895254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28403254_10-11-2025_19_04_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28403296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28403297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28403298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28403299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28403300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28403301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28403302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28403303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28403304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28403305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28403306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28403307, '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 = 28404255 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': 4028750, 'mtr_portfolio_id': 28404255, 'created_at': datetime.datetime(2025, 11, 10, 19, 17), 'result': '0.04514252845277931', 'result_long': None, 'result_double': None}] Qualite : 0.04514252845277931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28404255 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28404255_10-11-2025_19_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28404255 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_P28404255_10-11-2025_19_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28404265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28404266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28404267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28404268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28404269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28404270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28404271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28404272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28404273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28404274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28404275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28404276, 'pht': 3726}}" where mtr_portfolio_id = 28404255 and dashboard_run_id = 2562376 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`=28404255 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096778, 0.04514252845277931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28404255_10-11-2025_19_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28404265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28404266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28404267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28404268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28404269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28404270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28404271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28404272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28404273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28404274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28404275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28404276, '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 = 28404744 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': 4028823, 'mtr_portfolio_id': 28404744, 'created_at': datetime.datetime(2025, 11, 10, 19, 32, 58), 'result': '0.07286461763231594', 'result_long': None, 'result_double': None}] Qualite : 0.07286461763231594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28404744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28404744_10-11-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28404744 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_P28404744_10-11-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28404819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28404820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28404821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28404822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28404823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28404824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28404825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28404826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28404827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28404828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28404829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28404830, 'pht': 3726}}" where mtr_portfolio_id = 28404744 and dashboard_run_id = 2562374 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`=28404744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096779, 0.07286461763231594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28404744_10-11-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28404819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28404820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28404821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28404822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28404823, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28404824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28404825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28404826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28404827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28404828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28404829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28404830, '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 = 28405464 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': 4028919, 'mtr_portfolio_id': 28405464, 'created_at': datetime.datetime(2025, 11, 10, 19, 48, 59), 'result': '0.046192160507576505', 'result_long': None, 'result_double': None}] Qualite : 0.046192160507576505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28405464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28405464_10-11-2025_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28405464 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_P28405464_10-11-2025_19_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28405492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28405493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28405494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28405495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28405496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28405497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28405498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28405499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28405501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28405502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28405503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28405504, 'pht': 3726}}" where mtr_portfolio_id = 28405464 and dashboard_run_id = 2562374 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`=28405464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096780, 0.046192160507576505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28405464_10-11-2025_19_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28405492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28405493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28405494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28405495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28405496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28405497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28405498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28405499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28405501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28405502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28405503, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28405504, '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 = 28406093 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': 4029011, 'mtr_portfolio_id': 28406093, 'created_at': datetime.datetime(2025, 11, 10, 20, 2, 59), 'result': '0.08666394721791995', 'result_long': None, 'result_double': None}] Qualite : 0.08666394721791995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28406093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28406093_10-11-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28406093 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_P28406093_10-11-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28406108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28406109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28406110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28406111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28406112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28406113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28406114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28406115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28406116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28406117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28406118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28406119, 'pht': 3726}}" where mtr_portfolio_id = 28406093 and dashboard_run_id = 2562374 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`=28406093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17096781, 0.08666394721791995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28406093_10-11-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28406108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28406109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28406110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28406111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28406112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28406113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28406114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28406115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28406116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28406117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28406118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28406119, '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 (28372304,28372486,28372713,28373113,28373480,28374053,28374472,28374942,28375472,28376164,28376723,28377316,28377851,28378557,28379318,28380019,28381483,28381948,28382584,28383144,28384078,28384360,28385428,28385672,28386381,28386994,28387630,28390004,28390407,28390736,28391525,28392204,28392829,28393474,28394282,28395728,28396189,28396822,28397438,28398136,28399085,28399631,28401724,28402137,28402642,28403254,28404255,28404744,28405464,28406093) result : ((1393667459,), (1393670449,), (1393670478,), (1393670523,), (1393670524,), (1393670525,), (1393670527,), (1393670543,), (1393670546,), (1393670568,), (1393670571,), (1393670573,), (1393670575,), (1393670592,), (1393670594,), (1393670596,), (1393670599,), (1393670604,), (1393670607,), (1393670673,), (1393670676,), (1393670678,), (1393670680,), (1393670707,), (1393670708,), (1393670709,), (1393670732,), (1393670757,), (1393670787,), (1393670822,), (1393670904,), (1393670906,), (1393670908,), (1393670910,), (1393670914,), (1393670917,), (1393670939,), (1393670943,), (1393670947,), (1393670951,), (1393671003,), (1393671008,), (1393671010,), (1393671012,), (1393671014,), (1393671016,), (1393671032,), (1393671033,), (1393671034,), (1393671035,), (1393671037,), (1393671064,), (1393671069,), (1393671071,), (1393671073,), (1393671076,), (1393671078,), (1393671102,), (1393671110,), (1393671113,), (1393671115,), (1393671117,), (1393671142,), (1393671145,), (1393671148,), (1393671150,), (1393671151,), (1393671153,), (1393671168,), (1393671169,), (1393671170,), (1393671171,), (1393671173,), (1393671176,), (1393671195,), (1393671199,), (1393671202,), (1393671206,), (1393671209,), (1393671264,), (1393671272,), (1393671274,), (1393671276,), (1393671278,), (1393671286,), (1393671253,), (1393671255,), (1393671257,), (1393671259,), (1393671262,), (1393671314,), (1393671315,), (1393671317,), (1393671318,), (1393671342,), (1393671343,), (1393671347,), (1393671348,), (1393671363,), (1393671366,), (1393671371,), (1393671372,), (1393671374,), (1393671375,), (1393671404,), (1393671407,), (1393671409,), (1393671412,), (1393671432,), (1393671434,), (1393671436,), (1393671438,), (1393671442,), (1393671471,), (1393671473,), (1393671475,), (1393671478,), (1393671500,), (1393671501,), (1393671504,), (1393671506,), (1393671511,), (1393671519,), (1393671561,), (1393671563,), (1393671565,), (1393671569,), (1393671587,), (1393671589,), (1393671591,), (1393671593,), (1393671596,), (1393671600,), (1393671623,), (1393671626,), (1393671628,), (1393671631,), (1393671644,), (1393671648,), (1393671652,), (1393671657,), (1393671678,), (1393671681,), (1393671685,), (1393671696,), (1393671711,), (1393671713,), (1393671732,), (1393671734,), (1393671735,), (1393671775,), (1393671776,), (1393671777,), (1393671780,), (1393671784,), (1393671787,), (1393671799,), (1393671802,), (1393671806,), (1393671809,), (1393671812,), (1393671815,), (1393671845,), (1393671836,), (1393671839,), (1393671841,), (1393671842,), (1393671843,), (1393671862,), (1393671865,), (1393671872,), (1393671888,), (1393671935,), (1393671937,), (1393671939,), (1393671942,), (1393671945,), (1393671961,), (1393671964,), (1393671966,), (1393671968,), (1393671971,), (1393671974,), (1393671995,), (1393671996,), (1393671997,), (1393671999,), (1393672020,), (1393672025,), (1393672031,), (1393672035,), (1393672038,), (1393672067,), (1393672069,), (1393672070,), (1393672074,), (1393672084,), (1393672112,), (1393672113,), (1393672115,), (1393672118,), (1393672121,), (1393672124,), (1393672134,), (1393672135,), (1393672136,), (1393672153,), (1393672156,), (1393672158,), (1393672161,), (1393672164,), (1393672165,), (1393672176,), (1393672179,), (1393672180,), (1393672181,), (1393672225,), (1393672227,), (1393672229,), (1393672232,), (1393672235,), (1393672238,), (1393672271,), (1393672273,), (1393672276,), (1393672280,), (1393672282,), (1393672284,), (1393672289,), (1393672291,), (1393672299,), (1393672309,), (1393672330,), (1393672333,), (1393672337,), (1393672339,), (1393672341,), (1393672343,), (1393672880,), (1393672904,), (1393672934,), (1393672969,), (1393673032,), (1393673028,), (1393673031,), (1393673103,), (1393673134,), (1393673163,), (1393673195,), (1393673227,), (1393673262,), (1393673601,), (1393673638,), (1393673675,), (1393673712,), (1393673931,), (1393673935,), (1393673937,), (1393673939,), (1393673943,), (1393673946,), (1393674113,), (1393674146,), (1393674181,), (1393674218,), (1393674256,), (1393674425,), (1393674428,), (1393674437,), (1393674449,), (1393674476,), (1393674479,), (1393674481,), (1393674483,), (1393674485,), (1393674489,), (1393674523,), (1393674525,), (1393674527,), (1393674530,), (1393674549,), (1393674552,), (1393674556,), (1393674559,), (1393674561,), (1393674565,), (1393674605,), (1393674607,), (1393674608,), (1393674610,), (1393674631,), (1393674633,), (1393674635,), (1393674637,), (1393674671,), (1393674674,), (1393674676,), (1393674678,), (1393674682,), (1393674685,), (1393674716,), (1393674719,), (1393674722,), (1393674725,), (1393674730,), (1393674764,), (1393674769,), (1393674771,), (1393674773,), (1393674776,), (1393674779,), (1393674797,), (1393674799,), (1393674802,), (1393674805,), (1393674861,), (1393674845,), (1393674847,), (1393674849,), (1393674852,), (1393674856,), (1393674885,), (1393674888,), (1393674890,), (1393674893,), (1393674935,), (1393674937,), (1393674939,), (1393674944,), (1393674948,), (1393674952,), (1393674961,), (1393674962,), (1393674965,), (1393674968,), (1393674971,), (1393674999,), (1393675001,), (1393675002,), (1393675004,), (1393675008,), (1393675009,), (1393675034,), (1393675037,), (1393675042,), (1393675047,), (1393675081,), (1393675083,), (1393675085,), (1393675087,), (1393675111,), (1393675113,), (1393675115,), (1393675117,), (1393675120,), (1393675122,), (1393675154,), (1393675155,), (1393675156,), (1393675158,), (1393675192,), (1393675194,), (1393675196,), (1393675200,), (1393675204,), (1393675209,), (1393675238,), (1393675240,), (1393675242,), (1393675245,), (1393675249,), (1393675279,), (1393675282,), (1393675284,), (1393675287,), (1393675291,), (1393675293,), (1393675320,), (1393675321,), (1393675323,), (1393675327,), (1393675331,), (1393675335,), (1393675345,), (1393675346,), (1393675347,), (1393675348,), (1393675349,), (1393675370,), (1393675374,), (1393675378,), (1393675381,), (1393675408,), (1393675411,), (1393675413,), (1393675417,), (1393675420,), (1393675455,), (1393675457,), (1393675469,), (1393675471,), (1393675473,), (1393675476,), (1393675445,), (1393675447,), (1393675449,), (1393675452,), (1393675486,), (1393675488,), (1393675489,), (1393675497,), (1393675506,), (1393675521,), (1393675573,), (1393675575,), (1393675577,), (1393675614,), (1393675617,), (1393675620,), (1393675622,), (1393675625,), (1393675653,), (1393675658,), (1393675663,), (1393675667,), (1393675671,), (1393675673,), (1393675690,), (1393675693,), (1393675696,), (1393675698,), (1393675705,), (1393675722,), (1393675726,), (1393675727,), (1393675750,), (1393675751,), (1393675755,), (1393675765,), (1393675774,), (1393675811,), (1393675821,), (1393675828,), (1393675831,), (1393675835,), (1393675837,), (1393675854,), (1393675857,), (1393675860,), (1393675863,), (1393675887,), (1393675889,), (1393675891,), (1393675894,), (1393675898,), (1393675902,), (1393675929,), (1393675931,), (1393675933,), (1393675936,), (1393675984,), (1393675986,), (1393675988,), (1393675991,), (1393675996,), (1393675999,), (1393676019,), (1393676021,), (1393676022,), (1393676023,), (1393676052,), (1393676055,), (1393676058,), (1393676062,), (1393676067,), (1393676088,), (1393676089,), (1393676091,), (1393676094,), (1393676099,), (1393676151,), (1393676137,), (1393676140,), (1393676142,), (1393676145,), (1393676149,), (1393676168,), (1393676173,), (1393676180,), (1393676187,), (1393676200,), (1393676228,), (1393676231,), (1393676234,), (1393676238,), (1393676242,), (1393676245,), (1393676275,), (1393676276,), (1393676277,), (1393676279,), (1393676282,), (1393676317,), (1393676319,), (1393676321,), (1393676323,), (1393676328,), (1393676332,), (1393676350,), (1393676351,), (1393676353,), (1393676356,), (1393676395,), (1393676397,), (1393676403,), (1393676410,), (1393676429,), (1393676434,), (1393676459,), (1393676462,), (1393676465,), (1393676505,), (1393676506,), (1393676507,), (1393676509,), (1393676512,), (1393676516,), (1393676534,), (1393676537,), (1393676539,), (1393676542,), (1393676579,), (1393676580,), (1393676581,), (1393676583,), (1393676588,), (1393676591,), (1393676607,), (1393676609,), (1393676611,), (1393676613,), (1393676633,), (1393676887,), (1393676888,), (1393676890,), (1393676893,), (1393676920,), (1393677218,), (1393677224,), (1393677228,), (1393677232,), (1393677236,), (1393677238,), (1393677247,), (1393677248,), (1393677250,), (1393677252,), (1393677277,), (1393677263,), (1393677267,), (1393677270,), (1393677273,), (1393677312,), (1393677313,), (1393677314,), (1393677315,), (1393677319,), (1393677501,), (1393677532,), (1393677564,), (1393677598,), (1393677631,), (1393677665,), (1393678005,), (1393678038,), (1393678069,), (1393678112,), (1393678505,), (1393678507,), (1393678509,), (1393678518,), (1393678522,), (1393678525,), (1393678580,), (1393678582,), (1393678583,), (1393678584,), (1393678912,), (1393678944,), (1393678975,), (1393679009,), (1393679046,), (1393679119,), (1393679327,), (1393679329,), (1393679330,), (1393679332,), (1393679366,), (1393679368,), (1393679370,), (1393679373,), (1393679376,), (1393679380,), (1393679405,), (1393679412,), (1393679416,), (1393679418,), (1393679425,), (1393679429,), (1393679432,), (1393679436,), (1393679572,), (1393679580,), (1393679581,), (1393679582,), (1393679615,), (1393679649,), (1393679749,), (1393679759,), (1393679763,), (1393679772,), (1393679776,), (1393679806,), (1393679834,), (1393679837,), (1393679839,), (1393679843,), (1393679847,), (1393679850,), (1393679873,), (1393679881,), (1393679883,), (1393679884,), (1393679904,), (1393679907,), (1393679909,), (1393679912,), (1393679915,), (1393679919,), (1393680114,), (1393680099,), (1393680103,), (1393680105,), (1393680109,), (1393680134,), (1393680137,), (1393680145,), (1393680149,), (1393680162,), (1393680214,), (1393680215,), (1393680216,), (1393680218,), (1393680222,), (1393680225,), (1393680244,), (1393680245,), (1393680248,), (1393680260,), (1393680265,), (1393680296,), (1393680299,), (1393680301,), (1393680304,), (1393680356,), (1393680373,), (1393680382,), (1393680391,), (1393680400,), (1393680490,), (1393680492,), (1393680494,), (1393680498,), (1393680520,), (1393680522,), (1393680524,), (1393680527,), (1393680529,), (1393680534,), (1393680552,), (1393680555,), (1393680558,), (1393680562,), (1393680566,), (1393680592,), (1393680595,), (1393680597,), (1393680601,), (1393680604,), (1393680607,), (1393680636,), (1393680647,), (1393680651,), (1393680656,), (1393680660,), (1393680677,), (1393680678,), (1393680679,), (1393680681,), (1393680685,), (1393680688,), (1393680727,), (1393680730,), (1393680732,), (1393680735,), (1393680768,), (1393680769,), (1393680770,), (1393680772,), (1393680774,), (1393680807,), (1393680811,), (1393680814,), (1393680817,), (1393680873,), (1393680893,), (1393680903,), (1393680909,), (1393680911,), (1393680848,), (1393680853,), (1393680859,), (1393680867,), (1393680870,), (1393680918,), (1393680920,), (1393680923,), (1393680926,), (1393680981,), (1393680986,), (1393680995,), (1393681003,), (1393681007,), (1393681011,), (1393681029,), (1393681032,), (1393681035,), (1393681039,), (1393681043,), (1393681065,), (1393681077,), (1393681085,), (1393681091,), (1393681092,), (1393681096,), (1393681115,), (1393681117,), (1393681119,), (1393681123,), (1393681128,), (1393681152,), (1393681159,), (1393681161,), (1393681168,), (1393681175,), (1393681219,), (1393681221,), (1393681222,), (1393681225,), (1393681256,), (1393681258,), (1393681259,), (1393681261,), (1393681266,), (1393681270,), (1393681315,), (1393681319,), (1393681323,), (1393681328,), (1393681332,), (1393681335,), (1393681343,), (1393681347,), (1393681349,), (1393681351,), (1393681362,), (1393681363,), (1393681365,), (1393681370,), (1393681374,), (1393681377,), (1393681397,), (1393681400,), (1393681402,), (1393681405,), (1393681465,), (1393681470,), (1393681473,), (1393681476,), (1393681480,), (1393681511,), (1393681513,), (1393681516,), (1393681519,), (1393681522,), (1393681526,), (1393681563,), (1393681570,), (1393681571,), (1393681572,), (1393681635,), (1393681611,), (1393681618,), (1393681621,), (1393681626,), (1393681631,), (1393681654,), (1393681656,), (1393681658,), (1393681660,), (1393681695,), (1393681704,), (1393681708,), (1393681711,), (1393681716,), (1393681718,), (1393681744,), (1393681751,), (1393681752,), (1393681753,), (1393681790,), (1393681792,), (1393681795,), (1393681799,), (1393681803,), (1393681806,), (1393681814,), (1393681815,), (1393681817,), (1393681819,), (1393681824,), (1393681826,), (1393681829,), (1393681834,), (1393681857,), (1393681860,), (1393681863,), (1393681867,), (1393681872,), (1393681904,), (1393681907,), (1393681909,), (1393681912,), (1393681948,), (1393681950,), (1393681952,), (1393681955,), (1393682032,), (1393682035,), (1393682045,), (1393682054,), (1393682079,), (1393682082,), (1393682086,), (1393682091,), (1393682097,), (1393682102,), (1393682157,), (1393682164,), (1393682178,), (1393682192,), (1393682204,), (1393682214,), (1393682286,), (1393682292,), (1393682293,), (1393682295,), (1393682299,), (1393682300,), (1393682446,), (1393682450,), (1393682454,), (1393682458,), (1393682462,), (1393682465,), (1393682510,), (1393682511,), (1393682513,), (1393682527,), (1393682531,), (1393682532,), (1393682535,), (1393682538,), (1393682539,), (1393682610,), (1393682485,), (1393682488,), (1393682494,), (1393682547,), (1393682549,), (1393682553,), (1393682557,), (1393682569,), (1393682695,), (1393682703,), (1393682707,), (1393682710,), (1393682714,), (1393682718,), (1393682746,), (1393682749,), (1393682751,), (1393682752,), (1393682776,), (1393682801,), (1393682831,), (1393682862,), (1393682904,), (1393682944,), (1393683435,), (1393683504,), (1393683568,), (1393683633,), (1393684197,), (1393684230,), (1393684265,), (1393684328,), (1393684394,), (1393684456,), (1393684753,), (1393684817,), (1393684876,), (1393684910,), (1393685799,), (1393685869,), (1393685928,), (1393685989,), (1393686326,), (1393686337,), (1393686343,), (1393686377,), (1393686423,), (1393686459,), (1393686633,), (1393686667,), (1393686703,), (1393686737,), (1393686880,), (1393686912,), (1393686917,), (1393686934,), (1393686971,), (1393686989,), (1393687018,), (1393687030,), (1393687031,), (1393687033,), (1393687067,), (1393687069,), (1393687071,), (1393687074,), (1393687079,), (1393687082,), (1393687101,), (1393687105,), (1393687109,), (1393687115,), (1393687122,), (1393687126,), (1393687183,), (1393687142,), (1393687166,), (1393687447,), (1393687465,), (1393687466,), (1393687467,), (1393687471,), (1393687641,), (1393687664,), (1393687672,), (1393687675,), (1393687858,), (1393687867,), (1393687869,), (1393687921,), (1393687924,), (1393687926,), (1393688097,), (1393688131,), (1393688171,), (1393688207,), (1393688262,), (1393688298,), (1393688325,), (1393688332,), (1393688338,), (1393688344,), (1393688346,), (1393688349,), (1393688354,), (1393688359,), (1393688522,), (1393688541,), (1393688546,), (1393688558,), (1393688564,), (1393688610,), (1393688611,), (1393688612,), (1393688614,), (1393688654,), (1393688661,), (1393688674,), (1393688678,), (1393688684,), (1393688688,), (1393688725,), (1393688727,), (1393688728,), (1393688753,), (1393688755,), (1393688757,), (1393688765,), (1393688768,), (1393688829,), (1393688831,), (1393688833,), (1393688835,), (1393688917,), (1393688931,), (1393688943,), (1393688945,), (1393688947,), (1393688950,), (1393688978,), (1393688979,), (1393688981,), (1393688983,), (1393688985,), (1393688989,), (1393689042,), (1393689053,), (1393689062,), (1393689064,), (1393689082,), (1393689085,), (1393689091,), (1393689025,), (1393689032,), (1393689106,), (1393689113,), (1393689118,), (1393689167,), (1393689174,), (1393689178,), (1393689181,), (1393689184,), (1393689189,), (1393689215,), (1393689217,), (1393689219,), (1393689221,), (1393689253,), (1393689264,), (1393689267,), (1393689270,), (1393689302,), (1393689303,), (1393689304,), (1393689309,), (1393689320,), (1393689358,), (1393689361,), (1393689364,), (1393689431,), (1393689450,), (1393689453,), (1393689463,), (1393689472,), (1393689481,), (1393689494,), (1393689497,), (1393689502,), (1393689516,), (1393689518,), (1393689520,), (1393689523,), (1393689525,), (1393689682,), (1393689683,), (1393689684,), (1393689687,), (1393689737,), (1393689741,), (1393689744,), (1393689747,), (1393689751,), (1393689755,), (1393689786,), (1393689788,), (1393689790,), (1393689792,), (1393689873,), (1393689877,), (1393689882,), (1393689886,), (1393689893,), (1393690081,), (1393690121,), (1393690131,), (1393690135,), (1393690141,), (1393690150,), (1393690286,), (1393690288,), (1393690297,), (1393690397,), (1393690381,), (1393690384,), (1393690385,), (1393690388,), (1393690393,), (1393690466,), (1393690469,), (1393690472,), (1393690507,), (1393690513,), (1393690516,), (1393690521,), (1393690524,), (1393690527,), (1393690700,), (1393690731,), (1393690772,), (1393690809,), (1393690895,), (1393690896,), (1393690897,), (1393690899,), (1393690904,), (1393690906,), (1393690927,), (1393690930,), (1393690934,), (1393690938,), (1393690943,), (1393690947,), (1393690977,), (1393690979,), (1393690980,), (1393691018,), (1393691024,), (1393691027,), (1393691053,), (1393691054,), (1393691055,), (1393691082,), (1393691085,), (1393691088,), (1393691122,), (1393691128,), (1393691129,), (1393691160,), (1393691177,), (1393691311,), (1393691350,), (1393691354,), (1393691358,), (1393691412,), (1393693544,), (1393693578,), (1393693580,), (1393693610,), (1393693611,), (1393693612,), (1393693643,), (1393693646,), (1393693720,), (1393693721,), (1393693722,), (1393693751,), (1393693754,), (1393693842,), (1393693846,), (1393693880,), (1393694052,), (1393694054,), (1393694100,), (1393694101,), (1393694103,), (1393694105,), (1393694107,), (1393694110,), (1393694131,), (1393694133,), (1393694135,), (1393694188,), (1393694193,), (1393694275,), (1393694277,), (1393694279,), (1393694376,), (1393694409,), (1393694439,), (1393694633,), (1393694601,), (1393694604,), (1393694607,), (1393694687,), (1393694716,), (1393694748,), (1393694784,), (1393694818,), (1393695031,), (1393695033,), (1393695034,), (1393695037,), (1393695040,), (1393695066,), (1393695075,), (1393695102,), (1393695105,), (1393695108,), (1393695129,), (1393695130,), (1393695169,), (1393695197,), (1393695227,), (1393695229,), (1393695231,), (1393695234,), (1393695257,), (1393695259,), (1393695261,), (1393695269,), (1393695279,), (1393695301,), (1393695304,), (1393695306,), (1393695330,), (1393695336,), (1393695342,), (1393695344,), (1393695372,), (1393695376,), (1393695403,), (1393695406,), (1393695408,), (1393695410,), (1393695413,), (1393695585,), (1393695637,), (1393695707,), (1393695757,), (1393695943,), (1393695946,), (1393695999,), (1393696000,), (1393696032,), (1393696037,), (1393696340,), (1393697076,), (1393697497,), (1393697964,), (1393697993,), (1393698443,), (1393698445,), (1393698448,), (1393698642,), (1393699178,), (1393699714,), (1393699716,), (1393699739,), (1393699771,), (1393699803,), (1393699927,), (1393699969,), (1393700012,), (1393700046,), (1393700082,), (1393700101,), (1393700135,), (1393700141,), (1393700144,), (1393700147,), (1393700150,), (1393700182,), (1393700191,), (1393700198,), (1393700206,), (1393700257,), (1393700259,), (1393700261,), (1393700289,), (1393700327,), (1393700362,), (1393700692,), (1393700724,), (1393700753,), (1393700789,), (1393701175,), (1393701170,), (1393701172,), (1393701173,), (1393701400,), (1393701431,), (1393701487,), (1393701549,), (1393701587,), (1393701628,), (1393701889,), (1393701902,), (1393701905,), (1393701907,), (1393701912,), (1393701915,), (1393702182,), (1393702216,), (1393702248,), (1393702283,), (1393702318,), (1393702401,), (1393702462,), (1393702549,), (1393702553,), (1393702558,), (1393702563,), (1393702568,), (1393702593,), (1393702595,), (1393702596,), (1393702700,), (1393702716,), (1393702718,), (1393702743,), (1393702798,), (1393702799,), (1393702801,), (1393702805,), (1393702809,), (1393702813,), (1393702824,), (1393702825,), (1393702826,), (1393702834,), (1393702836,), (1393702839,), (1393702886,), (1393702894,), (1393702924,), (1393702956,), (1393702995,), (1393703029,), (1393703176,), (1393703186,), (1393703188,), (1393703190,), (1393703193,), (1393703217,), (1393703218,), (1393703219,), (1393703234,), (1393703244,), (1393703246,), (1393704149,), (1393704233,), (1393704235,), (1393704236,), (1393704297,), (1393704299,), (1393704301,), (1393704304,), (1393704307,), (1393704311,), (1393704335,), (1393704337,), (1393704339,), (1393704341,), (1393704343,), (1393704372,), (1393704400,), (1393704402,), (1393704404,), (1393704407,), (1393704446,), (1393704459,), (1393704469,), (1393704483,), (1393704487,), (1393704515,), (1393704518,), (1393704519,), (1393704521,), (1393704525,), (1393704576,), (1393704579,), (1393704583,), (1393704586,), (1393704591,), (1393704595,), (1393704608,), (1393704610,), (1393704618,), (1393704620,), (1393704622,), (1393704625,), (1393704631,), (1393704667,), (1393704659,), (1393704662,), (1393704664,), (1393704694,), (1393704695,), (1393704696,), (1393704701,), (1393704711,), (1393704719,), (1393704762,), (1393704766,), (1393704769,), (1393704773,), (1393704778,), (1393704782,), (1393704904,), (1393704906,), (1393704916,), (1393704946,), (1393704963,), (1393704978,), (1393705018,), (1393705038,), (1393705205,), (1393705236,), (1393705240,), (1393705242,), (1393705247,), (1393705439,), (1393705441,), (1393705445,), (1393705579,), (1393705608,), (1393705617,), (1393705620,), (1393705649,), (1393705651,), (1393705746,), (1393705748,), (1393705752,), (1393705756,), (1393705759,), (1393705762,), (1393705770,), (1393705773,), (1393705776,), (1393705788,), (1393705791,), (1393705795,), (1393705799,), (1393705802,), (1393705806,), (1393705826,), (1393705827,), (1393705828,), (1393705831,), (1393705863,), (1393705900,), (1393706075,), (1393706104,), (1393706106,), (1393706136,), (1393706166,), (1393706169,), (1393706209,), (1393706224,), (1393706229,), (1393706232,), (1393706250,), (1393706260,), (1393706306,), (1393706341,), (1393706373,), (1393706406,), (1393706415,), (1393706452,), (1393706456,), (1393706462,), (1393706469,), (1393706489,), (1393706490,), (1393706500,), (1393706501,), (1393706504,), (1393706505,), (1393706508,), (1393706510,), (1393706912,), (1393706950,), (1393706981,), (1393707018,), (1393709537,), (1393709531,), (1393709978,), (1393709980,), (1393709981,), (1393710027,), (1393710030,), (1393710034,), (1393710066,), (1393710070,), (1393710076,), (1393710137,), (1393710138,), (1393710139,), (1393710168,), (1393710170,), (1393710173,), (1393710177,), (1393710179,), (1393710208,), (1393710210,), (1393710211,), (1393710212,), (1393710215,), (1393710268,), (1393710243,), (1393710258,), (1393710260,), (1393710264,), (1393710350,), (1393710352,), (1393710354,), (1393710376,), (1393710388,), (1393710494,), (1393710544,), (1393710593,), (1393710622,), (1393711255,), (1393711257,), (1393711258,), (1393711272,), (1393711293,), (1393711296,), (1393711392,), (1393711395,), (1393711398,), (1393711401,), (1393711590,), (1393711592,), (1393711595,), (1393711630,), (1393711656,), (1393711769,), (1393711772,), (1393711774,), (1393711776,), (1393711782,), (1393711841,), (1393711850,), (1393711856,), (1393711882,), (1393711886,), (1393712021,), (1393712023,), (1393712026,), (1393712031,), (1393712063,), (1393712095,), (1393712133,), (1393712141,), (1393712144,), (1393712146,), (1393712148,), (1393712152,), (1393712157,), (1393712161,), (1393712167,), (1393712172,), (1393712195,), (1393712198,), (1393712200,), (1393712204,), (1393712231,), (1393712233,), (1393712235,), (1393712237,), (1393712240,), (1393712242,), (1393712278,), (1393712279,), (1393712280,), (1393712281,), (1393712306,), (1393712307,), (1393712309,), (1393712312,), (1393712316,), (1393712319,), (1393712396,), (1393712413,), (1393712415,), (1393712418,), (1393712460,), (1393712473,), (1393712483,), (1393712494,), (1393712505,), (1393712448,), (1393712449,), (1393712450,), (1393712452,), (1393712457,), (1393712515,), (1393712518,), (1393712522,), (1393712526,), (1393712546,), (1393712552,), (1393712555,), (1393712572,), (1393712576,), (1393712580,), (1393712608,), (1393712609,), (1393712610,), (1393712614,), (1393712617,), (1393712621,), (1393712633,), (1393712635,), (1393712648,), (1393712675,), (1393712695,), (1393712701,), (1393712709,), (1393712713,), (1393712716,), (1393712733,), (1393712744,), (1393712753,), (1393712756,), (1393712758,), (1393712783,), (1393712786,), (1393712788,), (1393712792,), (1393712796,), (1393712863,), (1393712865,), (1393712867,), (1393712870,), (1393712926,), (1393712934,), (1393712940,), (1393712952,), (1393712986,), (1393712988,), (1393713080,), (1393713082,), (1393713084,), (1393713086,), (1393713145,), (1393713146,), (1393713147,), (1393713154,), (1393713192,), (1393713200,), (1393713213,), (1393713219,), (1393713224,), (1393713250,), (1393713282,), (1393713284,), (1393713285,), (1393713286,), (1393713287,), (1393713317,), (1393713318,), (1393713321,), (1393713326,), (1393713331,), (1393713333,), (1393713399,), (1393713404,), (1393713407,), (1393713410,), (1393713423,), (1393713425,), (1393713430,), (1393713458,), (1393713488,), (1393713490,), (1393713502,), (1393713559,), (1393713561,), (1393713564,), (1393713568,), (1393713586,), (1393714034,), (1393714072,), (1393714134,), (1393714200,), (1393714547,), (1393714554,), (1393714557,), (1393714616,), (1393714664,), (1393714678,), (1393714814,), (1393714815,), (1393714816,), (1393714819,), (1393714825,), (1393714830,), (1393714884,), (1393714887,), (1393714890,), (1393714895,), (1393714949,), (1393714951,), (1393714952,), (1393714953,), (1393714957,), (1393714959,), (1393714994,), (1393714995,), (1393714999,), (1393715004,), (1393715008,), (1393715011,), (1393715021,), (1393715022,), (1393715024,), (1393715026,), (1393715126,), (1393715157,), (1393715162,), (1393715174,), (1393715180,), (1393715191,), (1393715203,), (1393715206,), (1393715208,), (1393715210,), (1393715213,), (1393715233,), (1393715234,), (1393715235,), (1393715237,), (1393715239,), (1393715274,), (1393715277,), (1393715280,), (1393715578,), (1393715582,), (1393715586,), (1393715591,), (1393715595,), (1393715599,), (1393715604,), (1393715605,), (1393715608,), (1393715612,), (1393716051,), (1393716318,), (1393716350,), (1393716384,), (1393716519,), (1393715874,), (1393715916,), (1393715950,), (1393715987,), (1393716018,), (1393716209,), (1393716246,), (1393716280,), (1393716646,), (1393716680,), (1393716714,), (1393716762,), (1393716798,), (1393716837,), (1393716866,), (1393716893,), (1393716928,), (1393716962,), (1393716995,), (1393717030,), (1393717131,), (1393717133,), (1393717135,), (1393717139,), (1393717172,), (1393717283,), (1393717296,), (1393717319,), (1393717329,), (1393717341,), (1393717371,), (1393717377,), (1393717381,), (1393717385,), (1393717439,), (1393717459,), (1393717466,), (1393717467,), (1393717473,), (1393717612,), (1393717648,), (1393717656,), (1393717660,), (1393717690,), (1393717692,), (1393717694,), (1393717696,), (1393717701,), (1393717703,), (1393717735,), (1393717738,), (1393717740,), (1393717743,), (1393717775,), (1393717781,), (1393717789,), (1393731875,), (1393731780,), (1393731873,), (1393731989,), (1393732050,), (1393732095,), (1393732357,), (1393732400,), (1393732434,), (1393732796,), (1393732805,), (1393732806,), (1393732809,), (1393732830,), (1393732864,), (1393733303,), (1393733330,), (1393733333,), (1393733337,), (1393733346,), (1393733540,), (1393733543,), (1393733578,), (1393733600,), (1393733603,), (1393734531,), (1393734530,), (1393734808,), (1393734818,), (1393734825,), (1393734849,), (1393734887,), (1393735017,), (1393735018,), (1393735019,), (1393735022,), (1393735026,), (1393735295,), (1393735298,), (1393735320,), (1393735322,), (1393735324,), (1393735326,), (1393735330,), (1393735332,), (1393735373,), (1393735376,), (1393735378,), (1393735380,), (1393735383,), (1393735405,), (1393735407,), (1393735409,), (1393735438,), (1393735440,), (1393735442,), (1393735446,), (1393735451,), (1393735469,), (1393735471,), (1393735473,), (1393735507,), (1393735510,), (1393735513,), (1393735516,), (1393735521,), (1393735525,), (1393735714,), (1393735755,), (1393735790,), (1393735824,), (1393735856,), (1393735888,), (1393736014,), (1393736478,), (1393736269,), (1393736302,), (1393736364,), (1393736410,), (1393736447,), (1393737007,), (1393737096,), (1393737188,), (1393737253,), (1393737316,), (1393737891,), (1393737924,), (1393738534,), (1393738546,), (1393738551,), (1393738558,), (1393738563,), (1393738566,), (1393738617,), (1393738650,), (1393738680,), (1393738709,), (1393738741,), (1393738780,), (1393738982,), (1393739022,), (1393739060,), (1393739092,), (1393739241,), (1393739243,), (1393739247,), (1393739254,), (1393739255,), (1393739435,), (1393739499,), (1393739565,), (1393739608,), (1393739642,), (1393740151,), (1393740182,), (1393740214,), (1393740249,), (1393740254,), (1393740259,), (1393740641,), (1393740698,), (1393740757,), (1393741155,), (1393741215,), (1393741281,), (1393741323,), (1393741367,), (1393741421,), (1393741655,), (1393741688,), (1393741722,), (1393741753,), (1393741791,), (1393741825,), (1393741846,), (1393741848,), (1393741851,), (1393741883,), (1393741916,), (1393742041,), (1393742079,), (1393742122,), (1393742164,), (1393742201,), (1393742323,), (1393742334,), (1393742337,), (1393742348,), (1393742381,), (1393742419,), (1393742621,), (1393742623,), (1393742625,), (1393742814,), (1393742812,), (1393742813,), (1393742904,), (1393742906,), (1393742926,), (1393742932,), (1393742937,), (1393742962,), (1393743001,), (1393743003,), (1393743004,), (1393743005,), (1393743008,), (1393743217,), (1393743218,), (1393743248,), (1393743267,), (1393743274,), (1393743395,), (1393743453,), (1393743520,), (1393743574,), (1393743702,), (1393743883,), (1393743915,), (1393743927,), (1393743929,), (1393743935,), (1393743968,), (1393743971,), (1393743974,), (1393743977,), (1393743981,), (1393743985,), (1393744000,), (1393744002,), (1393744005,), (1393744180,), (1393744211,), (1393744244,), (1393744275,), (1393744309,), (1393744333,), (1393744366,), (1393744370,), (1393744375,), (1393744382,), (1393744385,), (1393744445,), (1393744447,), (1393744449,), (1393744451,), (1393744455,), (1393744489,), (1393744492,), (1393744520,), (1393744523,), (1393744527,), (1393744572,), (1393744573,), (1393744574,), (1393744576,), (1393744609,), (1393744613,), (1393744618,), (1393744629,), (1393744637,), (1393744640,), (1393744727,), (1393744731,), (1393744732,), (1393744733,), (1393744782,), (1393745300,), (1393745339,), (1393745371,), (1393745515,), (1393745537,), (1393744763,), (1393744765,), (1393744769,), (1393744774,), (1393744779,), (1393744903,), (1393744941,), (1393744977,), (1393745013,), (1393745048,), (1393745078,), (1393745198,), (1393745229,), (1393745266,), (1393745471,), (1393745474,), (1393745480,), (1393745488,), (1393745492,), (1393745499,), (1393745696,), (1393745734,), (1393745760,), (1393745767,), (1393745825,), (1393745854,), (1393745893,), (1393745929,), (1393745949,), (1393745953,), (1393746026,), (1393746039,), (1393746072,), (1393746105,), (1393746294,), (1393746297,), (1393746303,), (1393746331,), (1393746334,), (1393746337,), (1393746346,), (1393746350,), (1393746380,), (1393746386,), (1393746391,), (1393746393,), (1393746395,), (1393746399,), (1393746437,), (1393746447,), (1393746457,), (1393746462,), (1393746487,), (1393746489,), (1393746491,), (1393746494,), (1393746499,), (1393746501,), (1393746524,), (1393746527,), (1393746530,), (1393746533,), (1393746536,), (1393746538,), (1393746548,), (1393746550,), (1393746552,), (1393746553,), (1393746564,), (1393746574,), (1393746579,), (1393746584,), (1393746651,), (1393746661,), (1393746667,), (1393746675,), (1393746682,), (1393746687,), (1393746818,), (1393746967,), (1393746968,), (1393747186,), (1393747105,), (1393747110,), (1393747113,), (1393747144,), (1393747178,), (1393747226,), (1393747228,), (1393747229,), (1393747230,), (1393747232,), (1393747344,), (1393747345,), (1393747346,), (1393747348,), (1393747352,), (1393747356,), (1393747365,), (1393747367,), (1393747369,), (1393747374,), (1393747389,), (1393747557,), (1393747597,), (1393747629,), (1393747662,), (1393747698,), (1393747730,), (1393747767,), (1393747771,), (1393747774,), (1393747777,), (1393747781,), (1393747819,), (1393747827,), (1393747836,), (1393747841,), (1393747948,), (1393747983,), (1393748013,), (1393748017,), (1393748022,), (1393748026,), (1393748166,), (1393748206,), (1393748218,), (1393748259,), (1393748295,), (1393748298,), (1393748302,), (1393748310,), (1393748312,), (1393748315,), (1393748334,), (1393748335,), (1393748336,), (1393748337,), (1393748385,), (1393748387,), (1393748391,), (1393748398,), (1393748563,), (1393748574,), (1393748580,), (1393748593,), (1393748597,), (1393748690,), (1393748694,), (1393748698,), (1393748705,), (1393748878,), (1393748879,), (1393748912,), (1393748918,), (1393748949,), (1393748952,), (1393748984,), (1393749011,), (1393749037,), (1393749053,), (1393749575,), (1393749606,), (1393750159,), (1393750161,), (1393750163,), (1393750193,), (1393750194,), (1393750280,), (1393750283,), (1393749428,), (1393749463,), (1393749504,), (1393749538,), (1393749772,), (1393749790,), (1393749825,), (1393749857,), (1393749888,), (1393749922,), (1393750000,), (1393750018,), (1393750080,), (1393750095,), (1393750100,), (1393750106,), (1393750154,), (1393750155,), (1393750157,), (1393750173,), (1393750174,), (1393750176,), (1393750177,), (1393750180,), (1393750181,), (1393750186,), (1393750187,), (1393750189,), (1393750190,), (1393750206,), (1393750221,), (1393750231,), (1393750238,), (1393750245,), (1393750247,), (1393750315,), (1393750348,), (1393750397,), (1393750461,), (1393750528,), (1393751173,), (1393751217,), (1393751260,), (1393751301,), (1393751342,), (1393752088,), (1393752112,), (1393752126,), (1393752130,), (1393752134,), (1393752171,), (1393752200,), (1393752231,), (1393752267,), (1393752303,), (1393752513,), (1393752517,), (1393752547,), (1393752582,), (1393752618,), (1393752625,), (1393752751,), (1393752753,), (1393752754,), (1393752790,), (1393752818,), (1393752862,), (1393752896,), (1393752949,), (1393753060,), (1393753064,), (1393753067,), (1393753079,), (1393753099,), (1393753104,), (1393753126,), (1393753127,), (1393753141,), (1393753143,), (1393753150,), (1393753267,), (1393753272,), (1393753275,), (1393753283,), (1393753307,), (1393753370,), (1393753353,), (1393753360,), (1393753362,), (1393753364,), (1393753368,), (1393753390,), (1393753393,), (1393753396,), (1393753399,), (1393753431,), (1393753440,), (1393753441,), (1393753443,), (1393753446,), (1393753494,), (1393753496,), (1393753497,), (1393753499,), (1393753636,), (1393753647,), (1393753661,), (1393753672,), (1393753704,), (1393753708,), (1393753727,), (1393753734,), (1393753747,), (1393753791,), (1393753795,), (1393753797,), (1393753800,), (1393753804,), (1393753823,), (1393753824,), (1393753830,), (1393753832,), (1393753837,), (1393754141,), (1393754174,), (1393754211,), (1393754230,), (1393754235,), (1393754238,), (1393754408,), (1393754441,), (1393754471,), (1393754502,), (1393754536,), (1393754790,), (1393754825,), (1393754859,), (1393754889,), (1393754924,), (1393755018,), (1393755020,), (1393755025,), (1393755058,), (1393755094,), (1393755231,), (1393755233,), (1393755236,), (1393755240,), (1393755245,), (1393755249,), (1393755267,), (1393755277,), (1393755317,), (1393755357,), (1393755404,), (1393755877,), (1393755949,), (1393756014,), (1393756080,), (1393756145,), (1393756179,), (1393756509,), (1393756514,), (1393756527,), (1393756691,), (1393756731,), (1393756770,), (1393756809,), (1393756963,), (1393756969,), (1393756972,), (1393756975,), (1393757248,), (1393757249,), (1393757250,), (1393757252,), (1393758326,), (1393758328,), (1393758330,), (1393758332,), (1393758380,), (1393758383,), (1393758384,), (1393758385,), (1393758388,), (1393758391,), (1393758656,), (1393758689,), (1393758721,), (1393758725,), (1393758768,), (1393758778,), (1393758809,), (1393758840,), (1393758857,), (1393758859,), (1393758980,), (1393758982,), (1393758984,), (1393758987,), (1393759024,), (1393759025,), (1393759026,), (1393759028,), (1393759030,), (1393759034,), (1393759098,), (1393759100,), (1393759103,), (1393759107,), (1393759110,), (1393759149,), (1393759151,), (1393759154,), (1393759158,), (1393759161,), (1393759164,), (1393759171,), (1393759173,), (1393759183,), (1393759186,), (1393759190,), (1393759193,), (1393759199,), (1393759206,), (1393759218,), (1393759224,), (1393759231,), (1393759234,), (1393759326,), (1393759329,), (1393759330,), (1393759333,), (1393759337,), (1393759389,), (1393759396,), (1393759427,), (1393759456,), (1393759489,), (1393759525,), (1393759595,), (1393759600,), (1393759605,), (1393759609,), (1393759777,), (1393759681,), (1393759710,), (1393759747,), (1393760253,), (1393760286,), (1393760372,), (1393760425,), (1393760825,), (1393760857,), (1393760889,), (1393760892,), (1393760896,), (1393760900,), (1393760929,), (1393760932,), (1393760935,), (1393760939,), (1393760942,), (1393760943,), (1393761049,), (1393761084,), (1393761129,), (1393761170,), (1393761359,), (1393761427,), (1393761496,), (1393761543,), (1393761581,), (1393761623,), (1393761802,), (1393761838,), (1393761859,), (1393761864,), (1393761931,), (1393761935,), (1393761939,), (1393761940,), (1393761943,), (1393761946,), (1393761971,), (1393761977,), (1393761980,), (1393761984,), (1393762010,), (1393762012,), (1393762013,), (1393762014,), (1393762028,), (1393762087,), (1393762089,), (1393762091,), (1393762095,), (1393762240,), (1393762258,), (1393762260,), (1393762262,), (1393762266,), (1393762312,), (1393762315,), (1393762318,), (1393762322,), (1393762325,), (1393762356,), (1393762519,), (1393762543,), (1393762544,), (1393762547,), (1393762552,), (1393762733,), (1393762779,), (1393762811,), (1393763167,), (1393763170,), (1393763173,), (1393763178,), (1393763183,), (1393763187,), (1393763273,), (1393763237,), (1393763260,), (1393763264,), (1393763297,), (1393763299,), (1393763301,), (1393763303,), (1393763308,), (1393763316,), (1393763335,), (1393763338,), (1393763340,), (1393763343,), (1393763346,), (1393763370,), (1393763372,), (1393763374,), (1393763395,), (1393763410,), (1393763413,), (1393763502,), (1393763509,), (1393763514,), (1393763521,), (1393763525,), (1393763545,), (1393763547,), (1393763548,), (1393763550,), (1393763553,), (1393763557,), (1393763619,), (1393763621,), (1393763623,), (1393763626,), (1393763630,), (1393763731,), (1393763769,), (1393763799,), (1393763805,), (1393763813,), (1393763821,), (1393763873,), (1393763876,), (1393763879,), (1393763882,), (1393763886,), (1393763889,), (1393763909,), (1393763910,), (1393763912,), (1393763916,), (1393763920,), (1393763922,), (1393763944,), (1393763947,), (1393763950,), (1393763951,), (1393763954,), (1393763956,), (1393763960,), (1393763978,), (1393763982,), (1393763984,), (1393764028,), (1393764031,), (1393764035,), (1393764273,), (1393764281,), (1393764284,), (1393764287,), (1393764313,), (1393764316,), (1393764414,), (1393764415,), (1393764416,), (1393764418,), (1393764450,), (1393764457,), (1393764460,), (1393764463,), (1393764468,), (1393764473,), (1393764527,), (1393764538,), (1393764540,), (1393764541,), (1393764550,), (1393764558,), (1393764561,), (1393764507,), (1393764509,), (1393764513,), (1393764517,), (1393764522,), (1393764569,), (1393764572,), (1393764575,), (1393764578,), (1393764595,), (1393764597,), (1393764600,), (1393764603,), (1393764608,), (1393764610,), (1393764634,), (1393764637,), (1393764639,), (1393764681,), (1393764682,), (1393764684,), (1393764688,), (1393764692,), (1393764695,), (1393764709,), (1393764711,), (1393764713,), (1393764732,), (1393764741,), (1393764751,), (1393764754,), (1393764756,), (1393764758,), (1393764780,), (1393764781,), (1393764782,), (1393764783,), (1393764824,), (1393764825,), (1393764826,), (1393764829,), (1393764834,), (1393764930,), (1393764932,), (1393764934,), (1393764937,), (1393764941,), (1393764971,), (1393764974,), (1393764977,), (1393764979,), (1393764982,), (1393765003,), (1393765005,), (1393765006,), (1393765007,), (1393765009,), (1393765037,), (1393765040,), (1393765042,), (1393765094,), (1393765096,), (1393765098,), (1393765100,), (1393765103,), (1393765139,), (1393765145,), (1393765148,), (1393765150,), (1393765165,), (1393765170,), (1393765249,), (1393765253,), (1393765259,), (1393765267,), (1393765273,), (1393765277,), (1393765281,), (1393765286,), (1393765293,), (1393765301,), (1393765326,), (1393765313,), (1393765315,), (1393765317,), (1393765319,), (1393765323,), (1393765406,), (1393765442,), (1393765461,), (1393765462,), (1393765603,), (1393765604,), (1393765605,), (1393765607,), (1393765610,), (1393765631,), (1393765634,), (1393765640,), (1393765644,), (1393765664,), (1393765693,), (1393765696,), (1393765698,), (1393765701,), (1393765725,), (1393766115,), (1393766118,), (1393766409,), (1393766459,), (1393767042,), (1393767075,), (1393767259,), (1393767279,), (1393767282,), (1393767284,), (1393767288,), (1393767336,), (1393767343,), (1393767349,), (1393767362,), (1393767428,), (1393769222,), (1393769247,), (1393769295,), (1393769330,), (1393769733,), (1393769771,), (1393769804,), (1393769847,), (1393769884,), (1393769920,), (1393770212,), (1393770268,), (1393770304,), (1393770330,), (1393770455,), (1393770457,), (1393770459,), (1393770462,), (1393770465,), (1393770469,), (1393770628,), (1393770631,), (1393770635,), (1393770668,), (1393770975,), (1393770988,), (1393771025,), (1393771047,), (1393771063,), (1393771335,), (1393771337,), (1393771340,), (1393771429,), (1393771491,), (1393771633,), (1393771635,), (1393771637,), (1393771639,), (1393771865,), (1393771868,), (1393771891,), (1393771922,), (1393772094,), (1393772105,), (1393772106,), (1393772107,), (1393772109,), (1393772077,), (1393772078,), (1393772081,), (1393772085,), (1393772090,), (1393772197,), (1393772300,), (1393772325,), (1393772328,), (1393772504,), (1393772506,), (1393772508,), (1393772539,), (1393772586,), (1393772611,), (1393772987,), (1393773021,), (1393773026,), (1393773031,), (1393773363,), (1393773442,), (1393773486,), (1393773518,), (1393773552,), (1393773648,), (1393774094,), (1393774135,), (1393774173,), (1393774192,), (1393774206,), (1393774640,), (1393774673,), (1393774708,), (1393774741,), (1393774752,), (1393774757,), (1393774780,), (1393774783,), (1393774786,), (1393774862,), (1393774871,), (1393774873,), (1393774875,), (1393774880,), (1393774884,), (1393774906,), (1393774908,), (1393774910,), (1393774914,), (1393774921,), (1393774982,), (1393774983,), (1393774984,), (1393774987,), (1393774990,), (1393774993,), (1393775056,), (1393775143,), (1393775159,), (1393775192,), (1393775431,), (1393775463,), (1393775525,), (1393775569,), (1393775601,), (1393776096,), (1393776157,), (1393776216,), (1393776283,), (1393776347,), (1393776857,), (1393776923,), (1393776960,), (1393776980,), (1393776998,), (1393777398,), (1393777443,), (1393777499,), (1393777531,), (1393777752,), (1393777753,), (1393777761,), (1393777766,), (1393787024,), (1393787267,), (1393787269,), (1393787271,), (1393787273,), (1393787275,), (1393787279,), (1393787583,), (1393787586,), (1393787588,), (1393787608,), (1393787751,), (1393787752,), (1393787753,), (1393787754,), (1393787758,), (1393787762,), (1393787783,), (1393787784,), (1393787786,), (1393787789,), (1393787822,), (1393787824,), (1393787826,), (1393787830,), (1393787833,), (1393787836,), (1393787851,), (1393787864,), (1393787870,), (1393787874,), (1393787892,), (1393787893,), (1393787895,), (1393787898,), (1393787922,), (1393787924,), (1393787926,), (1393787930,), (1393787935,), (1393787947,), (1393787963,), (1393787966,), (1393787969,), (1393787974,), (1393787979,), (1393787982,), (1393787992,), (1393787994,), (1393787996,), (1393788026,), (1393788029,), (1393788031,), (1393788033,), (1393788059,), (1393788060,), (1393788061,), (1393788064,), (1393788069,), (1393788089,), (1393788093,), (1393788095,), (1393788124,), (1393788128,), (1393788139,), (1393788147,), (1393788155,), (1393788159,), (1393788300,), (1393788208,), (1393788209,), (1393788248,), (1393788296,), (1393788320,), (1393788323,), (1393788326,), (1393788330,), (1393788358,), (1393788360,), (1393788362,), (1393788363,), (1393788366,), (1393788369,), (1393788391,), (1393788392,), (1393788393,), (1393788395,), (1393788435,), (1393788439,), (1393788442,), (1393788445,), (1393788448,), (1393788451,), (1393788472,), (1393788473,), (1393788474,), (1393788498,), (1393788529,), (1393788566,), (1393788823,), (1393788825,), (1393788828,), (1393788830,), (1393789039,), (1393789041,), (1393789043,), (1393789045,), (1393789048,), (1393789070,), (1393789184,), (1393789187,), (1393789190,), (1393789193,), (1393789217,), (1393789219,), (1393789223,), (1393789224,), (1393789238,), (1393789241,), (1393789286,), (1393789289,), (1393789291,), (1393789293,), (1393789296,), (1393789315,), (1393789316,), (1393789317,), (1393789318,), (1393789321,), (1393789359,), (1393789362,), (1393789364,), (1393789366,), (1393789369,), (1393789386,), (1393789388,), (1393789390,), (1393789395,), (1393789399,), (1393789423,), (1393789426,), (1393789430,), (1393789433,), (1393789487,), (1393789507,), (1393789509,), (1393789538,), (1393789541,), (1393789455,), (1393789456,), (1393789462,), (1393789479,), (1393789485,), (1393789493,), (1393789494,), (1393789497,), (1393789500,), (1393789551,), (1393789553,), (1393789555,), (1393789558,), (1393789563,), (1393789565,), (1393789586,), (1393789589,), (1393789591,), (1393789594,), (1393789832,), (1393789835,), (1393789868,), (1393789879,), (1393789884,), (1393789888,), (1393790124,), (1393790158,), (1393790181,), (1393790317,), (1393790320,), (1393790322,), (1393790324,), (1393790326,), (1393790353,), (1393790354,), (1393790356,), (1393790359,), (1393790377,), (1393790409,), (1393790550,), (1393790574,), (1393790575,), (1393790578,), (1393790636,), (1393790662,), (1393790691,), (1393790694,), (1393790706,), (1393790765,), (1393790769,), (1393790772,), (1393790774,), (1393790799,), (1393790800,), (1393790801,), (1393790805,), (1393790830,), (1393790868,), (1393791079,), (1393791095,), (1393791121,), (1393791130,), (1393791213,), (1393791214,), (1393791215,), (1393791217,), (1393791221,), (1393791259,), (1393791260,), (1393791261,), (1393791263,), (1393791266,), (1393791288,), (1393791291,), (1393791294,), (1393791297,), (1393791336,), (1393791324,), (1393791328,), (1393791331,), (1393791333,), (1393791608,), (1393791638,), (1393791671,), (1393791704,), (1393791736,), (1393792040,), (1393792071,), (1393792102,), (1393792134,), (1393792172,), (1393792205,), (1393792386,), (1393792426,), (1393792464,), (1393792503,), (1393792537,), (1393792707,), (1393792748,), (1393792758,), (1393792772,), (1393792776,), (1393793065,), (1393793094,), (1393793099,), (1393793103,), (1393793134,), (1393793170,), (1393793264,), (1393793266,), (1393793268,), (1393793270,), (1393793274,), (1393793299,), (1393793356,), (1393793359,), (1393793362,), (1393793365,), (1393793449,), (1393793451,), (1393793453,), (1393793457,), (1393793462,), (1393793493,), (1393793495,), (1393793497,), (1393793500,), (1393793528,), (1393793529,), (1393793531,), (1393793535,), (1393793540,), (1393793544,), (1393793577,), (1393793620,), (1393795209,), (1393794133,), (1393795181,), (1393795184,), (1393795194,), (1393795199,), (1393795204,), (1393795331,), (1393795376,), (1393795410,), (1393795636,), (1393795638,), (1393795641,), (1393795645,), (1393795647,), (1393795692,), (1393795693,), (1393795694,), (1393795697,), (1393795701,), (1393795705,), (1393795721,), (1393795723,), (1393795725,), (1393795976,), (1393796009,), (1393796042,), (1393796082,), (1393796120,), (1393796156,), (1393796492,), (1393796528,), (1393796557,), (1393796594,), (1393796766,), (1393796873,), (1393796877,), (1393796889,), (1393796929,), (1393796938,), (1393797003,), (1393797006,), (1393797008,), (1393797010,), (1393797050,), (1393797051,), (1393797052,), (1393797054,), (1393797057,), (1393797126,), (1393797129,), (1393797132,), (1393797135,), (1393797139,), (1393797197,), (1393797198,), (1393797199,), (1393797201,), (1393797205,), (1393797208,), (1393797503,), (1393797544,), (1393797559,), (1393797592,), (1393797634,), (1393797649,), (1393797697,), (1393797690,), (1393797692,), (1393797694,), (1393797791,), (1393797794,), (1393797802,), (1393797809,), (1393797813,), (1393797832,), (1393797870,), (1393797871,), (1393797872,), (1393798174,), (1393798177,), (1393798179,), (1393798182,), (1393798186,), (1393798189,), (1393798202,), (1393798205,), (1393798223,), (1393798224,), (1393798225,), (1393798226,), (1393798227,), (1393798229,), (1393798314,), (1393798329,), (1393798336,), (1393798345,), (1393798349,), (1393798419,), (1393798427,), (1393798430,), (1393798433,), (1393798437,), (1393798471,), (1393798474,), (1393798475,), (1393798476,), (1393798479,), (1393798509,), (1393798511,), (1393798513,), (1393798517,), (1393798521,), (1393798544,), (1393798550,), (1393798563,), (1393798569,), (1393798574,), (1393798577,), (1393798603,), (1393798606,), (1393798608,), (1393798611,), (1393798637,), (1393798638,), (1393798639,), (1393798640,), (1393798644,), (1393798648,), (1393798680,), (1393798683,), (1393798686,), (1393798689,), (1393798693,), (1393798696,), (1393798806,), (1393798825,), (1393798831,), (1393798856,), (1393798859,), (1393798879,), (1393798920,), (1393798923,), (1393798926,), (1393798940,), (1393798941,), (1393798943,), (1393798945,), (1393798947,), (1393798949,), (1393798977,), (1393798981,), (1393798985,), (1393798989,), (1393799008,), (1393799009,), (1393799010,), (1393798971,), (1393798973,), (1393799019,), (1393799023,), (1393799038,), (1393799042,), (1393799043,), (1393799081,), (1393799094,), (1393799096,), (1393799097,), (1393799098,), (1393799100,), (1393799102,), (1393799130,), (1393799133,), (1393799137,), (1393799171,), (1393799173,), (1393799175,), (1393799179,), (1393799185,), (1393799188,), (1393799229,), (1393799232,), (1393799235,), (1393799239,), (1393799266,), (1393799268,), (1393799269,), (1393799271,), (1393799276,), (1393799279,), (1393799314,), (1393799316,), (1393799320,), (1393799326,), (1393799346,), (1393799348,), (1393799350,), (1393799353,), (1393799358,), (1393799362,), (1393799396,), (1393799399,), (1393799401,), (1393799403,), (1393799514,), (1393799515,), (1393799516,), (1393799518,), (1393799521,), (1393799524,), (1393799552,), (1393799557,), (1393799559,), (1393799561,), (1393799569,), (1393799581,), (1393799630,), (1393799632,), (1393799634,), (1393799644,), (1393799697,), (1393799703,), (1393799704,), (1393799707,), (1393799710,), (1393799713,), (1393799731,), (1393799733,), (1393799735,), (1393799737,), (1393799791,), (1393799800,), (1393799803,), (1393799811,), (1393799842,), (1393799779,), (1393799781,), (1393799783,), (1393799786,), (1393799789,), (1393799950,), (1393799969,), (1393799975,), (1393799986,), (1393799990,), (1393800013,), (1393800016,), (1393800019,), (1393800022,), (1393800049,), (1393800055,), (1393800056,), (1393800058,), (1393800061,), (1393800091,), (1393800093,), (1393800095,), (1393800097,), (1393800100,), (1393800134,), (1393800136,), (1393800138,), (1393800140,), (1393800143,), (1393800173,), (1393800175,), (1393800176,), (1393800178,), (1393800180,), (1393800201,), (1393800203,), (1393800205,), (1393800209,), (1393800244,), (1393800253,), (1393800257,), (1393800260,), (1393800263,), (1393800266,), (1393800345,), (1393800355,), (1393800362,), (1393800370,), (1393800450,), (1393800451,), (1393800453,), (1393800456,), (1393800461,), (1393800465,), (1393800482,), (1393800484,), (1393800486,), (1393800489,), (1393800493,), (1393800496,), (1393800514,), (1393800516,), (1393800517,), (1393800518,), (1393801346,), (1393801384,), (1393801421,), (1393801483,), (1393801551,), (1393801616,), (1393801843,), (1393801880,), (1393801898,), (1393802252,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10112025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28406093]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393802252, 1393801898, 1393801880, 1393801843] map_info['map_portfolio_photo'] : {28406093: [1393802252, 1393801898, 1393801880, 1393801843, 1393801616, 1393801551, 1393801483, 1393801421, 1393801384, 1393801346, 1393800518, 1393800517, 1393800516, 1393800514, 1393800496, 1393800493, 1393800489, 1393800486, 1393800484, 1393800482, 1393800465, 1393800461, 1393800456, 1393800453, 1393800451, 1393800450, 1393800370, 1393800362, 1393800355, 1393800345, 1393800266, 1393800263, 1393800260, 1393800257, 1393800253, 1393800244, 1393800209, 1393800205, 1393800203, 1393800201, 1393800180, 1393800178, 1393800176, 1393800175, 1393800173, 1393800143, 1393800140, 1393800138, 1393800136, 1393800134, 1393800100, 1393800097, 1393800095, 1393800093, 1393800091, 1393800061, 1393800058, 1393800056, 1393800055, 1393800049, 1393800022, 1393800019, 1393800016, 1393800013, 1393799990, 1393799986, 1393799975, 1393799969, 1393799950, 1393799789, 1393799786, 1393799783, 1393799781, 1393799779]} final : True mtd_id 4302 list_pids : [1393802252, 1393801898, 1393801880, 1393801843] Looping around the photos to save general results len do output : 1 /28406093Didn'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, '4029011') ('4302', '28406093', '1393802252', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011') ('4302', None, None, None, None, None, None, None, '4029011') ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '28406093', 'None', None, None, None, None, '4029011'), ('4302', '28406093', '1393802252', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801898', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801880', None, None, None, None, None, '4029011'), ('4302', '28406093', '1393801843', None, None, None, None, None, '4029011')] time used for this insertion : 0.015295982360839844 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1716086864471436 time spend to save output : 0.015491962432861328 total time spend for step 5 : 3.187100648880005 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 (4029011) 2.07user 2.54system 0:11.61elapsed 39%CPU (0avgtext+0avgdata 159148maxresident)k 16inputs+11664outputs (3major+63962minor)pagefaults 0swaps