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 : 630796 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 (3796012) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3796012) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363066 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3796012'] with mtr_portfolio_ids : ['27363066'] and first list_photo_ids : [] new path : /proc/630796/ Name: python3 Umask: 0002 State: R (running) Tgid: 630796 Ngid: 0 Pid: 630796 PPid: 630795 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 630796 NSpid: 630796 NSpgid: 629365 NSsid: 629365 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97940 kB VmRSS: 97940 kB RssAnon: 59832 kB RssFile: 38108 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 49 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '630796', 'Ngid': '0', 'Pid': '630796', 'PPid': '630795', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '630796', 'NSpid': '630796', 'NSpgid': '629365', 'NSsid': '629365', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97940 kB', 'VmRSS': '97940 kB', 'RssAnon': '59832 kB', 'RssFile': '38108 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '49', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '630796', '1106856', '0', '1106856', '865608', '97940', b'', 'marlene', '3796012') 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 (27363066) 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 (3796012 ) ) 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 (27363066) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387009429, 'portfolio_id': 27363066}, {'photo_id': 1387009364, 'portfolio_id': 27363066}, {'photo_id': 1387009360, 'portfolio_id': 27363066}, {'photo_id': 1387009358, 'portfolio_id': 27363066}, {'photo_id': 1387009357, 'portfolio_id': 27363066}, {'photo_id': 1387009354, 'portfolio_id': 27363066}, {'photo_id': 1387009317, 'portfolio_id': 27363066}, {'photo_id': 1387009309, 'portfolio_id': 27363066}, {'photo_id': 1387009306, 'portfolio_id': 27363066}, {'photo_id': 1387009302, 'portfolio_id': 27363066}, {'photo_id': 1387009251, 'portfolio_id': 27363066}, {'photo_id': 1387009244, 'portfolio_id': 27363066}, {'photo_id': 1387009235, 'portfolio_id': 27363066}, {'photo_id': 1387009122, 'portfolio_id': 27363066}, {'photo_id': 1387009119, 'portfolio_id': 27363066}, {'photo_id': 1387009117, 'portfolio_id': 27363066}, {'photo_id': 1387009115, 'portfolio_id': 27363066}, {'photo_id': 1387009111, 'portfolio_id': 27363066}, {'photo_id': 1387009089, 'portfolio_id': 27363066}, {'photo_id': 1387009081, 'portfolio_id': 27363066}, {'photo_id': 1387009070, 'portfolio_id': 27363066}, {'photo_id': 1387008952, 'portfolio_id': 27363066}, {'photo_id': 1387008924, 'portfolio_id': 27363066}, {'photo_id': 1387008701, 'portfolio_id': 27363066}, {'photo_id': 1387008697, 'portfolio_id': 27363066}, {'photo_id': 1387008694, 'portfolio_id': 27363066}, {'photo_id': 1387008676, 'portfolio_id': 27363066}, {'photo_id': 1387008670, 'portfolio_id': 27363066}, {'photo_id': 1387008566, 'portfolio_id': 27363066}, {'photo_id': 1387008562, 'portfolio_id': 27363066}, {'photo_id': 1387008558, 'portfolio_id': 27363066}, {'photo_id': 1387008542, 'portfolio_id': 27363066}, {'photo_id': 1387008334, 'portfolio_id': 27363066}, {'photo_id': 1387008329, 'portfolio_id': 27363066}, {'photo_id': 1387008326, 'portfolio_id': 27363066}, {'photo_id': 1387008324, 'portfolio_id': 27363066}, {'photo_id': 1387008322, 'portfolio_id': 27363066}, {'photo_id': 1387008312, 'portfolio_id': 27363066}, {'photo_id': 1387008227, 'portfolio_id': 27363066}, {'photo_id': 1387008223, 'portfolio_id': 27363066}, {'photo_id': 1387008219, 'portfolio_id': 27363066}, {'photo_id': 1387008211, 'portfolio_id': 27363066}, {'photo_id': 1387008196, 'portfolio_id': 27363066}, {'photo_id': 1387008187, 'portfolio_id': 27363066}, {'photo_id': 1387007831, 'portfolio_id': 27363066}, {'photo_id': 1387007828, 'portfolio_id': 27363066}, {'photo_id': 1387007826, 'portfolio_id': 27363066}, {'photo_id': 1387007823, 'portfolio_id': 27363066}, {'photo_id': 1387007812, 'portfolio_id': 27363066}, {'photo_id': 1387007809, 'portfolio_id': 27363066}, {'photo_id': 1387007806, 'portfolio_id': 27363066}, {'photo_id': 1387007803, 'portfolio_id': 27363066}, {'photo_id': 1387007800, 'portfolio_id': 27363066}, {'photo_id': 1387007777, 'portfolio_id': 27363066}, {'photo_id': 1387007774, 'portfolio_id': 27363066}, {'photo_id': 1387007771, 'portfolio_id': 27363066}, {'photo_id': 1387007766, 'portfolio_id': 27363066}, {'photo_id': 1387007687, 'portfolio_id': 27363066}, {'photo_id': 1387007684, 'portfolio_id': 27363066}, {'photo_id': 1387007679, 'portfolio_id': 27363066}, {'photo_id': 1387007677, 'portfolio_id': 27363066}, {'photo_id': 1387007653, 'portfolio_id': 27363066}, {'photo_id': 1387007649, 'portfolio_id': 27363066}, {'photo_id': 1387007645, 'portfolio_id': 27363066}, {'photo_id': 1387007642, 'portfolio_id': 27363066}, {'photo_id': 1387007638, 'portfolio_id': 27363066}, {'photo_id': 1387007455, 'portfolio_id': 27363066}, {'photo_id': 1387007441, 'portfolio_id': 27363066}] map_portfolio_id_photo_id: {27363066: [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354, 1387009317, 1387009309, 1387009306, 1387009302, 1387009251, 1387009244, 1387009235, 1387009122, 1387009119, 1387009117, 1387009115, 1387009111, 1387009089, 1387009081, 1387009070, 1387008952, 1387008924, 1387008701, 1387008697, 1387008694, 1387008676, 1387008670, 1387008566, 1387008562, 1387008558, 1387008542, 1387008334, 1387008329, 1387008326, 1387008324, 1387008322, 1387008312, 1387008227, 1387008223, 1387008219, 1387008211, 1387008196, 1387008187, 1387007831, 1387007828, 1387007826, 1387007823, 1387007812, 1387007809, 1387007806, 1387007803, 1387007800, 1387007777, 1387007774, 1387007771, 1387007766, 1387007687, 1387007684, 1387007679, 1387007677, 1387007653, 1387007649, 1387007645, 1387007642, 1387007638, 1387007455, 1387007441]} ##### 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.0526881217956543 #### 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 Tue Sep 30 19:32: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 (27363066) 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 : 27363066 get user id for portfolio 27363066 get sub ptf for main ptf 27363066, type 3726 and hashtags ['metal', 'environnement', 'Carton_brun', 'kraft', 'autre_refus', 'mal_croppe', 'cartonnette', 'papier', 'Teint_Dans_La_Masse', 'Carton_gris', 'plastique', 'flou'] 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`=27363066 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','kraft','autre_refus','mal_croppe','cartonnette','papier','Teint_Dans_La_Masse','Carton_gris','plastique','flou')) 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`=27363066 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','kraft','autre_refus','mal_croppe','cartonnette','papier','Teint_Dans_La_Masse','Carton_gris','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 27363066, 'sub_port_id': 27363114, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489551, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'papier': {'main_port_id': 27363066, 'sub_port_id': 27363115, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489552, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'kraft': {'main_port_id': 27363066, 'sub_port_id': 27363116, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489553, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'plastique': {'main_port_id': 27363066, 'sub_port_id': 27363117, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489554, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'autre_refus': {'main_port_id': 27363066, 'sub_port_id': 27363118, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489555, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'Carton_brun': {'main_port_id': 27363066, 'sub_port_id': 27363119, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489556, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'environnement': {'main_port_id': 27363066, 'sub_port_id': 27363120, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489557, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'flou': {'main_port_id': 27363066, 'sub_port_id': 27363121, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489558, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'mal_croppe': {'main_port_id': 27363066, 'sub_port_id': 27363122, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489559, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'metal': {'main_port_id': 27363066, 'sub_port_id': 27363123, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489560, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'Carton_gris': {'main_port_id': 27363066, 'sub_port_id': 27363124, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489561, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}, 'Teint_Dans_La_Masse': {'main_port_id': 27363066, 'sub_port_id': 27363125, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489562, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 24)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27363114 , 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=27363066 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 (27363114) result : ((1387008315,), (1387009290,), (1387009427,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363115 , 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=27363066 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 (27363115) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363116 , 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=27363066 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 (27363116) result : ((1387008316,), (1387008317,), (1387009155,), (1387009247,), (1387009248,), (1387009296,), (1387009440,), (1387009441,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363117 , 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=27363066 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 (27363117) result : ((1387008332,), (1387009294,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363118 , 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=27363066 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 (27363118) result : ((1387008310,), (1387009243,), (1387009320,), (1387009424,), (1387009425,), (1387009437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363119 , 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=27363066 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 (27363119) result : ((1387009153,), (1387009245,), (1387009291,), (1387009292,), (1387009439,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363120 , 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=27363066 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 (27363120) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363121 , 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=27363066 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 (27363121) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363122 , 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=27363066 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 (27363122) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363123 , 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=27363066 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 (27363123) result : ((1387008319,), (1387008320,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363124 , 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=27363066 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 (27363124) result : ((1387008313,), (1387009151,), (1387009152,), (1387009286,), (1387009287,), (1387009288,), (1387009289,), (1387009426,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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 27363125 , 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=27363066 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 (27363125) result : ((1387009149,), (1387009239,), (1387009240,), (1387009241,), (1387009242,), (1387009423,), (1387009433,), (1387009434,), (1387009435,), (1387009436,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27363066) result : ((1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) 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 (1387007800) 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`=27363066 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','kraft','autre_refus','mal_croppe','cartonnette','papier','Teint_Dans_La_Masse','Carton_gris','plastique','flou')) 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`=27363066 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','kraft','autre_refus','mal_croppe','cartonnette','papier','Teint_Dans_La_Masse','Carton_gris','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 27363066, 'sub_port_id': 27363126, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489563, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'papier': {'main_port_id': 27363066, 'sub_port_id': 27363127, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489564, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'kraft': {'main_port_id': 27363066, 'sub_port_id': 27363128, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489565, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'plastique': {'main_port_id': 27363066, 'sub_port_id': 27363129, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489566, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'autre_refus': {'main_port_id': 27363066, 'sub_port_id': 27363130, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489567, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'Carton_brun': {'main_port_id': 27363066, 'sub_port_id': 27363131, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489568, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'environnement': {'main_port_id': 27363066, 'sub_port_id': 27363132, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489569, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'flou': {'main_port_id': 27363066, 'sub_port_id': 27363133, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489570, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'mal_croppe': {'main_port_id': 27363066, 'sub_port_id': 27363134, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489571, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'metal': {'main_port_id': 27363066, 'sub_port_id': 27363135, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489572, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'Carton_gris': {'main_port_id': 27363066, 'sub_port_id': 27363136, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489573, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 17, 25), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}, 'Teint_Dans_La_Masse': {'main_port_id': 27363066, 'sub_port_id': 27363137, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18489574, 'last_updated_at': datetime.datetime(2025, 9, 30, 19, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 30, 19, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 30, 19, 17, 25)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27363137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27363125 lien utilise dans velours : https://marlene.fotonower.com/velours/27363126,27363127,27363128,27363129,27363130,27363131,27363132,27363133,27363134,27363135,27363136,27363137?tags=cartonnette,papier,kraft,plastique,autre_refus,Carton_brun,environnement,flou,mal_croppe,metal,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27363066]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] map_info['map_portfolio_photo'] : {27363066: [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354, 1387009317, 1387009309, 1387009306, 1387009302, 1387009251, 1387009244, 1387009235, 1387009122, 1387009119, 1387009117, 1387009115, 1387009111, 1387009089, 1387009081, 1387009070, 1387008952, 1387008924, 1387008701, 1387008697, 1387008694, 1387008676, 1387008670, 1387008566, 1387008562, 1387008558, 1387008542, 1387008334, 1387008329, 1387008326, 1387008324, 1387008322, 1387008312, 1387008227, 1387008223, 1387008219, 1387008211, 1387008196, 1387008187, 1387007831, 1387007828, 1387007826, 1387007823, 1387007812, 1387007809, 1387007806, 1387007803, 1387007800, 1387007777, 1387007774, 1387007771, 1387007766, 1387007687, 1387007684, 1387007679, 1387007677, 1387007653, 1387007649, 1387007645, 1387007642, 1387007638, 1387007455, 1387007441]} final : False mtd_id 4302 list_pids : [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] Looping around the photos to save general results len do output : 1 /27363066. 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, '3796012') ('4302', '27363066', '1387009429', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '27363066', "{'cartonnette': 27363114, 'papier': 27363115, 'kraft': 27363116, 'plastique': 27363117, 'autre_refus': 27363118, 'Carton_brun': 27363119, 'environnement': 27363120, 'flou': 27363121, 'mal_croppe': 27363122, 'metal': 27363123, 'Carton_gris': 27363124, 'Teint_Dans_La_Masse': 27363125}", None, None, None, None, '3796012'), ('4302', '27363066', '1387009429', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012')] time used for this insertion : 0.03732943534851074 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6838781833648682 time spend to save output : 0.037621259689331055 total time spend for step 1 : 1.7214994430541992 step2:final Tue Sep 30 19:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27363066) 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 27363066 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387007455,1387007441,1387007653,1387007649,1387007645,1387007642,1387007638,1387007687,1387007684,1387007679,1387007677,1387007777,1387007774,1387007771,1387007766,1387007812,1387007809,1387007806,1387007803,1387007800,1387007831,1387007828,1387007826,1387007823,1387008227,1387008223,1387008219,1387008211,1387008196,1387008187,1387008334,1387008329,1387008326,1387008324,1387008322,1387008312,1387008566,1387008562,1387008558,1387008542,1387008924,1387008701,1387008697,1387008694,1387008676,1387008670,1387009089,1387009081,1387009070,1387008952,1387009122,1387009119,1387009117,1387009115,1387009111,1387009251,1387009244,1387009235,1387009317,1387009309,1387009306,1387009302,1387009364,1387009360,1387009358,1387009357,1387009354,1387009429); 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([27363066]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} new output for save of step final : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] map_info['map_portfolio_photo'] : {27363066: [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354, 1387009317, 1387009309, 1387009306, 1387009302, 1387009251, 1387009244, 1387009235, 1387009122, 1387009119, 1387009117, 1387009115, 1387009111, 1387009089, 1387009081, 1387009070, 1387008952, 1387008924, 1387008701, 1387008697, 1387008694, 1387008676, 1387008670, 1387008566, 1387008562, 1387008558, 1387008542, 1387008334, 1387008329, 1387008326, 1387008324, 1387008322, 1387008312, 1387008227, 1387008223, 1387008219, 1387008211, 1387008196, 1387008187, 1387007831, 1387007828, 1387007826, 1387007823, 1387007812, 1387007809, 1387007806, 1387007803, 1387007800, 1387007777, 1387007774, 1387007771, 1387007766, 1387007687, 1387007684, 1387007679, 1387007677, 1387007653, 1387007649, 1387007645, 1387007642, 1387007638, 1387007455, 1387007441]} final : False mtd_id 4302 list_pids : [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] Looping around the photos to save general results len do output : 6 /1387009429.Didn't retrieve data . /1387009364.Didn't retrieve data . /1387009360.Didn't retrieve data . /1387009358.Didn't retrieve data . /1387009357.Didn't retrieve data . /1387009354.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, '3796012') ('4302', '27363066', '1387009429', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '27363066', '1387009429', '0.04919134925850653', None, None, None, None, '3796012'), ('4302', '27363066', '1387009364', '0.04919134925850653', None, None, None, None, '3796012'), ('4302', '27363066', '1387009360', '0.04919134925850653', None, None, None, None, '3796012'), ('4302', '27363066', '1387009358', '0.04919134925850653', None, None, None, None, '3796012'), ('4302', '27363066', '1387009357', '0.04919134925850653', None, None, None, None, '3796012'), ('4302', '27363066', '1387009354', '0.04919134925850653', None, None, None, None, '3796012')] time used for this insertion : 0.03672337532043457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2491438388824463 time spend to save output : 0.03716254234313965 total time spend for step 2 : 0.28630638122558594 step3:velours_tree Tue Sep 30 19:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27363066: [{'cartonnette': 27363114, 'papier': 27363115, 'kraft': 27363116, 'plastique': 27363117, 'autre_refus': 27363118, 'Carton_brun': 27363119, 'environnement': 27363120, 'flou': 27363121, 'mal_croppe': 27363122, 'metal': 27363123, 'Carton_gris': 27363124, 'Teint_Dans_La_Masse': 27363125}]} input_args_next_step : {27363066: ()} output_args : {27363066: [{'cartonnette': 27363114, 'papier': 27363115, 'kraft': 27363116, 'plastique': 27363117, 'autre_refus': 27363118, 'Carton_brun': 27363119, 'environnement': 27363120, 'flou': 27363121, 'mal_croppe': 27363122, 'metal': 27363123, 'Carton_gris': 27363124, 'Teint_Dans_La_Masse': 27363125}]} args : 27363066 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 27363114, 'papier': 27363115, 'kraft': 27363116, 'plastique': 27363117, 'autre_refus': 27363118, 'Carton_brun': 27363119, 'environnement': 27363120, 'flou': 27363121, 'mal_croppe': 27363122, 'metal': 27363123, 'Carton_gris': 27363124, 'Teint_Dans_La_Masse': 27363125},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27363066) 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([27363066]) 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.30951642990112305 time spend to save output : 5.1021575927734375e-05 total time spend for step 3 : 0.3095674514770508 step4:send_mail_cod Tue Sep 30 19:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} input_args_next_step : {1387009429: ()} output_args : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} args : 1387009429 depend.output_id : 0 input_args_next_step : {1387009429: ('0.04919134925850653',), 1387009364: ()} output_args : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} args : 1387009364 depend.output_id : 0 input_args_next_step : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ()} output_args : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} args : 1387009360 depend.output_id : 0 input_args_next_step : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ()} output_args : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} args : 1387009358 depend.output_id : 0 input_args_next_step : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ()} output_args : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} args : 1387009357 depend.output_id : 0 input_args_next_step : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ()} output_args : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',)} args : 1387009354 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 : {27363066: [{'cartonnette': 27363114, 'papier': 27363115, 'kraft': 27363116, 'plastique': 27363117, 'autre_refus': 27363118, 'Carton_brun': 27363119, 'environnement': 27363120, 'flou': 27363121, 'mal_croppe': 27363122, 'metal': 27363123, 'Carton_gris': 27363124, 'Teint_Dans_La_Masse': 27363125}]} input_args_next_step : {1387009429: ('0.04919134925850653',), 1387009364: ('0.04919134925850653',), 1387009360: ('0.04919134925850653',), 1387009358: ('0.04919134925850653',), 1387009357: ('0.04919134925850653',), 1387009354: ('0.04919134925850653',), 27363066: ()} output_args : {27363066: [{'cartonnette': 27363114, 'papier': 27363115, 'kraft': 27363116, 'plastique': 27363117, 'autre_refus': 27363118, 'Carton_brun': 27363119, 'environnement': 27363120, 'flou': 27363121, 'mal_croppe': 27363122, 'metal': 27363123, 'Carton_gris': 27363124, 'Teint_Dans_La_Masse': 27363125}]} args : 27363066 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 :7, first value : ('0.04919134925850653',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27363066) 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 (1387009429,1387009364,1387009360,1387009358,1387009357,1387009354) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387009354 begin to download photo : 1387009358 begin to download photo : 1387009364 download finish for photo 1387009358 begin to download photo : 1387009360 download finish for photo 1387009354 begin to download photo : 1387009357 download finish for photo 1387009364 begin to download photo : 1387009429 download finish for photo 1387009360 download finish for photo 1387009357 download finish for photo 1387009429 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P27363066_30-09-2025_19_33_00.pdf 27363114 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=27363114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387008315: '1759252945_3094181_1387007677_5825f78bd430032ed09b7b826141dbab_rle_crop_3981270748_0.png', 1387009290: '1759253305_3112783_1387008697_4b36fce7b0970c755fd393ab5d3b6426_rle_crop_3981276606_0.png', 1387009427: '1759253464_3121485_1387007826_a979e6f5c1a918fb08b25387141650af_rle_crop_3981277765_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f825b5b494bbb65e2cc1eda7a2fb0c39_33653617.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/d1d1cbf995eff7e1236d84c355471f46_40135871.png change filename to text .imagette273631141759253580/ imagette273631141759253580/1759252945_3094181_1387007677_5825f78bd430032ed09b7b826141dbab_rle_crop_3981270748_0.png.png imagette273631141759253580/1759253464_3121485_1387007826_a979e6f5c1a918fb08b25387141650af_rle_crop_3981277765_0.png.png imagette273631141759253580/1759253305_3112783_1387008697_4b36fce7b0970c755fd393ab5d3b6426_rle_crop_3981276606_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/2d93c6414cb5bb851b938cfe8fe6fbc3_77266016.png imagette273631141759253580 27363116 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=27363116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387008316: '1759252945_3094181_1387007684_d9a6c01c7c8e2188efff9531812f317a_rle_crop_3981270726_0.png', 1387008317: '1759252945_3094181_1387007679_88b28d0483c4f87f991ef51937bc7d8d_rle_crop_3981270734_0.png', 1387009155: '1759253226_3107852_1387008326_73955e124a4e9911920a0f156aeb520e_rle_crop_3981274468_0.png', 1387009247: '1759253243_3108330_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276355_0.png', 1387009248: '1759253243_3108330_1387008196_3a8f4926206e5bce698677afd0d1dd31_rle_crop_3981276368_0.png', 1387009296: '1759253305_3112783_1387008701_6b1ea1989c1be196e0854d2889db0780_rle_crop_3981276588_0.png', 1387009440: '1759253484_3122363_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276355_0.png', 1387009441: '1759253484_3122363_1387008196_3a8f4926206e5bce698677afd0d1dd31_rle_crop_3981276368_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/fb442a31a4911c5baaaaa8142d284269_79450981.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/83beb11415c69cff2e8920f53e0f9ad7_98801679.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/3a3514276b6bb4dafec91aa3444c6da8_43081110.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/eb4d293c098b54002e0406f58cf07012_11206410.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/050e45215a59d231de35c389fbe0e8a1_28781275.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/7a7340d444d911fda87a2cda90aba05a_98701698.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/eb4d293c098b54002e0406f58cf07012_46474615.png change filename to text .imagette273631161759253581/ imagette273631161759253581/1759252945_3094181_1387007679_88b28d0483c4f87f991ef51937bc7d8d_rle_crop_3981270734_0.png.png imagette273631161759253581/1759253305_3112783_1387008701_6b1ea1989c1be196e0854d2889db0780_rle_crop_3981276588_0.png.png imagette273631161759253581/1759253484_3122363_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276355_0.png.png imagette273631161759253581/1759253243_3108330_1387008196_3a8f4926206e5bce698677afd0d1dd31_rle_crop_3981276368_0.png.png imagette273631161759253581/1759253484_3122363_1387008196_3a8f4926206e5bce698677afd0d1dd31_rle_crop_3981276368_0.png.png imagette273631161759253581/1759253243_3108330_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276355_0.png.png imagette273631161759253581/1759253226_3107852_1387008326_73955e124a4e9911920a0f156aeb520e_rle_crop_3981274468_0.png.png imagette273631161759253581/1759252945_3094181_1387007684_d9a6c01c7c8e2188efff9531812f317a_rle_crop_3981270726_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/050e45215a59d231de35c389fbe0e8a1_91608408.png imagette273631161759253581 27363117 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=27363117 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387008332: '1759252986_3094950_1387007774_ea6a8669c29ebc4b90b88e57cc7593b2_rle_crop_3981271005_0.png', 1387009294: '1759253305_3112783_1387008694_9999c1ff87d9a4807789fc610294a370_rle_crop_3981276620_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/6e78d17107b252c18cca5bf0badd73c5_47516626.png change filename to text .imagette273631171759253581/ imagette273631171759253581/1759252986_3094950_1387007774_ea6a8669c29ebc4b90b88e57cc7593b2_rle_crop_3981271005_0.png.png imagette273631171759253581/1759253305_3112783_1387008694_9999c1ff87d9a4807789fc610294a370_rle_crop_3981276620_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/a1c7071a6e0df1d9882d41f9061b057e_6312495.png imagette273631171759253581 27363118 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=27363118 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387008310: '1759252945_3094181_1387007677_5825f78bd430032ed09b7b826141dbab_rle_crop_3981270746_0.png', 1387009243: '1759253243_3108330_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276354_0.png', 1387009320: '1759253346_3115426_1387008924_11079514037f8769e3ce5a4a2925806e_rle_crop_3981276707_0.png', 1387009424: '1759253464_3121485_1387007828_9d77fffa67674d56e99157c65a9dfcb8_rle_crop_3981277751_0.png', 1387009425: '1759253464_3121485_1387007826_a979e6f5c1a918fb08b25387141650af_rle_crop_3981277773_0.png', 1387009437: '1759253484_3122363_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276354_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/b80024cb7af327891ce9355f207fccea_81840408.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f85b328e5b315889b29fd48d927f37f1_22007803.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/4a129259a02f48c6a36b48c6a09467ca_19431979.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/055014050ebd8d56760563179eccabf4_98723312.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/b93444b005dc9d5ab10a67e8ee4cc1d8_67230587.png change filename to text .imagette273631181759253582/ imagette273631181759253582/1759252945_3094181_1387007677_5825f78bd430032ed09b7b826141dbab_rle_crop_3981270746_0.png.png imagette273631181759253582/1759253484_3122363_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276354_0.png.png imagette273631181759253582/1759253243_3108330_1387008211_2590d14e339e393b6bc510d26e1ffe5a_rle_crop_3981276354_0.png.png imagette273631181759253582/1759253346_3115426_1387008924_11079514037f8769e3ce5a4a2925806e_rle_crop_3981276707_0.png.png imagette273631181759253582/1759253464_3121485_1387007826_a979e6f5c1a918fb08b25387141650af_rle_crop_3981277773_0.png.png imagette273631181759253582/1759253464_3121485_1387007828_9d77fffa67674d56e99157c65a9dfcb8_rle_crop_3981277751_0.png.png imagette273631211759253582/ imagette273631221759253582/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f85b328e5b315889b29fd48d927f37f1_35400686.png imagette273631181759253582 27363121 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=27363121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273631211759253582 27363122 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=27363122 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273631221759253582 27363123 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=27363123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387008319: '1759252945_3094181_1387007679_88b28d0483c4f87f991ef51937bc7d8d_rle_crop_3981270736_0.png', 1387008320: '1759252945_3094181_1387007677_5825f78bd430032ed09b7b826141dbab_rle_crop_3981270747_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/0bf7052d45023e71c041e774ecb40782_62990040.png change filename to text .imagette273631231759253582/ imagette273631231759253582/1759252945_3094181_1387007679_88b28d0483c4f87f991ef51937bc7d8d_rle_crop_3981270736_0.png.png imagette273631231759253582/1759252945_3094181_1387007677_5825f78bd430032ed09b7b826141dbab_rle_crop_3981270747_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/649abceeab6d9e37fb13447387e875e4_84320755.png imagette273631231759253582 27363119 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=27363119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387009153: '1759253226_3107852_1387008329_f0736508cfdb85370fbebcafe0b27c5e_rle_crop_3981274462_0.png', 1387009245: '1759253243_3108330_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276248_0.png', 1387009291: '1759253305_3112783_1387008701_6b1ea1989c1be196e0854d2889db0780_rle_crop_3981276593_0.png', 1387009292: '1759253305_3112783_1387008697_4b36fce7b0970c755fd393ab5d3b6426_rle_crop_3981276607_0.png', 1387009439: '1759253484_3122363_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/1abb8c976a2c68341ecabffcd0c5c107_71661999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/29dfa2a0651e16d93eaaed60c9324e93_79217259.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/fb1c7590dfda319ea1aa4c421fd969ea_99438784.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/5556673877ffebb6399e5580e3f44716_16437887.png change filename to text .imagette273631191759253582/ imagette273631191759253582/1759253226_3107852_1387008329_f0736508cfdb85370fbebcafe0b27c5e_rle_crop_3981274462_0.png.png imagette273631191759253582/1759253305_3112783_1387008701_6b1ea1989c1be196e0854d2889db0780_rle_crop_3981276593_0.png.png imagette273631191759253582/1759253243_3108330_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276248_0.png.png imagette273631191759253582/1759253305_3112783_1387008697_4b36fce7b0970c755fd393ab5d3b6426_rle_crop_3981276607_0.png.png imagette273631191759253582/1759253484_3122363_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276248_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/29dfa2a0651e16d93eaaed60c9324e93_47045756.png imagette273631191759253582 27363124 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=27363124 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387008313: '1759252945_3094181_1387007679_88b28d0483c4f87f991ef51937bc7d8d_rle_crop_3981270739_0.png', 1387009151: '1759253226_3107852_1387008324_6172641827dfcbb0b30d49fbd1d6b3ad_rle_crop_3981274483_0.png', 1387009152: '1759253226_3107852_1387008312_2321710ce45f276ce85459a6795c7c77_rle_crop_3981274518_0.png', 1387009286: '1759253305_3112783_1387008697_4b36fce7b0970c755fd393ab5d3b6426_rle_crop_3981276608_0.png', 1387009287: '1759253305_3112783_1387008670_858a98b89af0950bd1de24fd4e67bad3_rle_crop_3981276646_0.png', 1387009288: '1759253305_3112783_1387008670_858a98b89af0950bd1de24fd4e67bad3_rle_crop_3981276642_0.png', 1387009289: '1759253305_3112783_1387008670_858a98b89af0950bd1de24fd4e67bad3_rle_crop_3981276651_0.png', 1387009426: '1759253464_3121485_1387007828_9d77fffa67674d56e99157c65a9dfcb8_rle_crop_3981277752_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/6370771c6dc907980e2b646d66798f50_96718116.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/e0e9b1a41c1e48e6371339602cb44553_99426832.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/590762fe82c90c0309cb3bf97480ccdc_94041074.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/aa549785219a4f211ab79fdb3c1c5945_38433709.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/6c3db2ff9c126cd16903a56b7079ec67_1559646.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/3e62a84dbdd8752adbf9582a996f0e90_414972.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/d9fd1e0e5214fb074997bab2efc43d16_33408121.png change filename to text .imagette273631241759253583/ imagette273631241759253583/1759253305_3112783_1387008670_858a98b89af0950bd1de24fd4e67bad3_rle_crop_3981276646_0.png.png imagette273631241759253583/1759253305_3112783_1387008670_858a98b89af0950bd1de24fd4e67bad3_rle_crop_3981276642_0.png.png imagette273631241759253583/1759252945_3094181_1387007679_88b28d0483c4f87f991ef51937bc7d8d_rle_crop_3981270739_0.png.png imagette273631241759253583/1759253305_3112783_1387008670_858a98b89af0950bd1de24fd4e67bad3_rle_crop_3981276651_0.png.png imagette273631241759253583/1759253464_3121485_1387007828_9d77fffa67674d56e99157c65a9dfcb8_rle_crop_3981277752_0.png.png imagette273631241759253583/1759253226_3107852_1387008324_6172641827dfcbb0b30d49fbd1d6b3ad_rle_crop_3981274483_0.png.png imagette273631241759253583/1759253305_3112783_1387008697_4b36fce7b0970c755fd393ab5d3b6426_rle_crop_3981276608_0.png.png imagette273631241759253583/1759253226_3107852_1387008312_2321710ce45f276ce85459a6795c7c77_rle_crop_3981274518_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/9db4f521e43d1f27477cfbe72927780c_25764243.png imagette273631241759253583 27363125 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=27363125 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387009149: '1759253226_3107852_1387008322_468f628f7e215cf2fa6ab43512051518_rle_crop_3981274501_0.png', 1387009239: '1759253243_3108330_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276247_0.png', 1387009240: '1759253243_3108330_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276249_0.png', 1387009241: '1759253243_3108330_1387008219_d14e839be4adc2a500a9cf657f35b15e_rle_crop_3981276265_0.png', 1387009242: '1759253243_3108330_1387008187_19f63281c380a819b096efb6ab64277d_rle_crop_3981276385_0.png', 1387009423: '1759253464_3121485_1387007826_a979e6f5c1a918fb08b25387141650af_rle_crop_3981277774_0.png', 1387009433: '1759253484_3122363_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276247_0.png', 1387009434: '1759253484_3122363_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276249_0.png', 1387009435: '1759253484_3122363_1387008219_d14e839be4adc2a500a9cf657f35b15e_rle_crop_3981276265_0.png', 1387009436: '1759253484_3122363_1387008187_19f63281c380a819b096efb6ab64277d_rle_crop_3981276385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f001acd5b16d1ff980a6c1aac42cb763_36914338.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/a1a841bba07f6be66513f3fed39fc115_15919874.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/1655f9ecea259245d1d9a62e51634366_26131905.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f6e499c37794a1d7be7e48f75dc800a9_24285305.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/e0fff4bbfab47bcd6f12de875ee72b92_8330920.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/b0c614cf73cbbc49bff6bf8792bbec3a_10779640.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/a1a841bba07f6be66513f3fed39fc115_78638936.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/1655f9ecea259245d1d9a62e51634366_51859782.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/f6e499c37794a1d7be7e48f75dc800a9_62617764.png change filename to text .imagette273631251759253584/ imagette273631251759253584/1759253484_3122363_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276247_0.png.png imagette273631251759253584/1759253243_3108330_1387008219_d14e839be4adc2a500a9cf657f35b15e_rle_crop_3981276265_0.png.png imagette273631251759253584/1759253484_3122363_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276249_0.png.png imagette273631251759253584/1759253484_3122363_1387008187_19f63281c380a819b096efb6ab64277d_rle_crop_3981276385_0.png.png imagette273631251759253584/1759253243_3108330_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276249_0.png.png imagette273631251759253584/1759253464_3121485_1387007826_a979e6f5c1a918fb08b25387141650af_rle_crop_3981277774_0.png.png imagette273631251759253584/1759253243_3108330_1387008187_19f63281c380a819b096efb6ab64277d_rle_crop_3981276385_0.png.png imagette273631251759253584/1759253484_3122363_1387008219_d14e839be4adc2a500a9cf657f35b15e_rle_crop_3981276265_0.png.png imagette273631251759253584/1759253226_3107852_1387008322_468f628f7e215cf2fa6ab43512051518_rle_crop_3981274501_0.png.png imagette273631251759253584/1759253243_3108330_1387008334_2ef5fa93d9dea5f607fdd9c97f709e1e_rle_crop_3981276247_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/e0fff4bbfab47bcd6f12de875ee72b92_72913840.png imagette273631251759253584 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27363066 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27363126,27363127,27363128,27363129,27363130,27363131,27363132,27363133,27363134,27363135,27363136,27363137?tags=cartonnette,papier,kraft,plastique,autre_refus,Carton_brun,environnement,flou,mal_croppe,metal,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1387009429] : ('0.04919134925850653',) no score found for photo 1387009429 We are sending mail with results at report@fotonower.com args[1387009364] : ('0.04919134925850653',) no score found for photo 1387009364 We are sending mail with results at report@fotonower.com args[1387009360] : ('0.04919134925850653',) no score found for photo 1387009360 We are sending mail with results at report@fotonower.com args[1387009358] : ('0.04919134925850653',) no score found for photo 1387009358 We are sending mail with results at report@fotonower.com args[1387009357] : ('0.04919134925850653',) no score found for photo 1387009357 We are sending mail with results at report@fotonower.com args[1387009354] : ('0.04919134925850653',) no score found for photo 1387009354 We are sending mail with results at report@fotonower.com refus_total : 0.04919134925850653 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=27363066 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_P27363066_30-09-2025_19_33_00.pdf results_Auto_P27363066_30-09-2025_19_33_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.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','27363066','results_Auto_P27363066_30-09-2025_19_33_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf','pdf','','0.18','0.04919134925850653') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27363066]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] map_info['map_portfolio_photo'] : {27363066: [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354, 1387009317, 1387009309, 1387009306, 1387009302, 1387009251, 1387009244, 1387009235, 1387009122, 1387009119, 1387009117, 1387009115, 1387009111, 1387009089, 1387009081, 1387009070, 1387008952, 1387008924, 1387008701, 1387008697, 1387008694, 1387008676, 1387008670, 1387008566, 1387008562, 1387008558, 1387008542, 1387008334, 1387008329, 1387008326, 1387008324, 1387008322, 1387008312, 1387008227, 1387008223, 1387008219, 1387008211, 1387008196, 1387008187, 1387007831, 1387007828, 1387007826, 1387007823, 1387007812, 1387007809, 1387007806, 1387007803, 1387007800, 1387007777, 1387007774, 1387007771, 1387007766, 1387007687, 1387007684, 1387007679, 1387007677, 1387007653, 1387007649, 1387007645, 1387007642, 1387007638, 1387007455, 1387007441]} final : False mtd_id 4302 list_pids : [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] 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, '3796012') ('4302', '27363066', '1387009429', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '27363066', '1387009429', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012')] time used for this insertion : 0.03804135322570801 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.610315322875977 time spend to save output : 0.03830599784851074 total time spend for step 4 : 6.648621320724487 step5:split_time_score Tue Sep 30 19:33:07 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 : ['27363066'] 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 : [('27363066',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27363066) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387009358: {'path': 'temp/1759253580_630796_1387009358_8d7f9d6610743c0f86a7f7e2d9a40622.jpg', 'extension': 'jpg'}, 1387009360: {'path': 'temp/1759253580_630796_1387009360_736b31d7f20dc220ac089e7dd353b98e.jpg', 'extension': 'jpg'}, 1387009354: {'path': 'temp/1759253580_630796_1387009354_6fa477b0f019c831f94eee5c81c483f6.jpg', 'extension': 'jpg'}, 1387009357: {'path': 'temp/1759253580_630796_1387009357_c4954dd7b3a36e4c5350b83a8089968e.jpg', 'extension': 'jpg'}, 1387009364: {'path': 'temp/1759253580_630796_1387009364_67fb815da01e5ff9aef805dfa059b010.jpg', 'extension': 'jpg'}, 1387009429: {'path': 'temp/1759253580_630796_1387009429_df5a84976abdb041745318d6da5b3931.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 = 27363066; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27363066 group by h (('19', 68),) 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=27363066 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 (27363066) 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 (27363066) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30092025 27363066 Nombre de photos uploadées : 68 / 23040 (0%) 30092025 27363066 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 30092025 27363066 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1387007455, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/80444abf0153a2445a3fc2e39575b221.jpg', 'username': None, 'uploaded_at': 1759252567, 'text': 'image_30092025_19_15_14_10134.jpg'}, {'photo_id': 1387007441, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/0c832aba4d8181bdfe14098871360c60.jpg', 'username': None, 'uploaded_at': 1759252567, 'text': 'image_30092025_19_15_24_10135.jpg'}, {'photo_id': 1387007653, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/4c7f6cc11ed9a75bb2a0d1b1088317c0.jpg', 'username': None, 'uploaded_at': 1759252628, 'text': 'image_30092025_19_15_45_10138.jpg'}, {'photo_id': 1387007649, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/30/2783a621785a62187c4c04f406679f14.jpg', 'username': None, 'uploaded_at': 1759252628, 'text': 'image_30092025_19_16_04_10158.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002969503402709961 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27363066, '2025-09-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2363251,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6709010601043701 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= 2363251 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27335682, 'dashboard_result_id': 15816497, '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_P27335682_30-09-2025_16_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27335814, 'dashboard_result_id': 15816498, '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_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27335961, 'dashboard_result_id': 15816499, '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_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27336428, 'dashboard_result_id': 15816500, '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_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27337055, 'dashboard_result_id': 15816501, '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_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27337483, 'dashboard_result_id': 15816502, '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_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27338516, 'dashboard_result_id': 15816503, '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_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27338908, 'dashboard_result_id': 15816504, '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_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27339780, 'dashboard_result_id': 15816505, '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_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27339914, 'dashboard_result_id': 15816506, '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_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27346603, 'dashboard_result_id': 15816507, '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_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27346604, 'dashboard_result_id': 15816508, '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_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27346605, 'dashboard_result_id': 15816509, '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_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27343961, 'dashboard_result_id': 15816510, '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_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27343964, 'dashboard_result_id': 15816511, '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_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27346606, 'dashboard_result_id': 15816512, '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_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27346607, 'dashboard_result_id': 15816513, '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_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27343995, 'dashboard_result_id': 15816514, '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_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27341302, 'dashboard_result_id': 15816515, '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_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27343998, 'dashboard_result_id': 15816516, '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_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27344000, 'dashboard_result_id': 15816517, '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_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27341336, 'dashboard_result_id': 15816518, '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_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27344002, 'dashboard_result_id': 15816519, '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_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27340889, 'dashboard_result_id': 15816520, '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_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27342266, 'dashboard_result_id': 15816521, '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_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27343199, 'dashboard_result_id': 15816522, '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_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27342690, 'dashboard_result_id': 15816523, '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_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27343836, 'dashboard_result_id': 15816524, '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_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27344539, 'dashboard_result_id': 15816525, '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_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27348083, 'dashboard_result_id': 15816526, '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_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27348699, 'dashboard_result_id': 15816527, '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_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27349371, 'dashboard_result_id': 15816528, '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_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27350226, 'dashboard_result_id': 15816529, '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_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27350819, 'dashboard_result_id': 15816530, '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_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27351603, 'dashboard_result_id': 15816531, '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_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27351983, 'dashboard_result_id': 15816532, '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_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27352576, 'dashboard_result_id': 15816533, '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_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27353601, 'dashboard_result_id': 15816534, '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_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27354235, 'dashboard_result_id': 15816535, '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_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27355020, 'dashboard_result_id': 15816536, '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_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27355733, 'dashboard_result_id': 15816537, '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_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27356323, 'dashboard_result_id': 15816538, '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_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27356877, 'dashboard_result_id': 15816539, '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_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27357789, 'dashboard_result_id': 15816540, '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_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27359942, 'dashboard_result_id': 15816541, '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_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27360591, 'dashboard_result_id': 15816542, '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_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27361214, 'dashboard_result_id': 15816543, '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_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27361733, 'dashboard_result_id': 15816544, '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_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27362389, 'dashboard_result_id': 15816545, '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_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}"}, {'dashboat_entry_day': 2363251, 'dashboard_run_id': 2374893, 'mtr_portfolio_id': 27363066, 'dashboard_result_id': 15816546, '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_P27363066_30-09-2025_19_29_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, '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 = 27335682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27335682 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27335682 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335682_30-09-2025_16_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335682 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_P27335682_30-09-2025_16_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27335683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335687, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335694, 'pht': 3726}}" where mtr_portfolio_id = 27335682 and dashboard_run_id = 2374893 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 = 27335814 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': 3792806, 'mtr_portfolio_id': 27335814, 'created_at': datetime.datetime(2025, 9, 30, 15, 51, 5), 'result': '0.12942168143363605', 'result_long': None, 'result_double': None}] Qualite : 0.12942168143363605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335814 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_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, 'pht': 3726}}" where mtr_portfolio_id = 27335814 and dashboard_run_id = 2374893 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`=27335814 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816498, 0.12942168143363605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335814_30-09-2025_15_51_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27335815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27335816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27335817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27335818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27335819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27335820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27335821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27335822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27335823, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27335824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27335825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27335826, '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 = 27335961 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': 3792807, 'mtr_portfolio_id': 27335961, 'created_at': datetime.datetime(2025, 9, 30, 15, 31, 5), 'result': '0.05682456087437678', 'result_long': None, 'result_double': None}] Qualite : 0.05682456087437678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27335961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27335961 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_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, 'pht': 3726}}" where mtr_portfolio_id = 27335961 and dashboard_run_id = 2374893 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`=27335961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816499, 0.05682456087437678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27335961_30-09-2025_15_31_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336059, '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 = 27336428 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': 3792808, 'mtr_portfolio_id': 27336428, 'created_at': datetime.datetime(2025, 9, 30, 14, 56, 6), 'result': '0.03513037243292421', 'result_long': None, 'result_double': None}] Qualite : 0.03513037243292421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27336428 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_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, 'pht': 3726}}" where mtr_portfolio_id = 27336428 and dashboard_run_id = 2374893 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`=27336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816500, 0.03513037243292421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27336428_30-09-2025_14_56_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27336465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27336466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27336467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27336468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27336469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27336470, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27336471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27336472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27336473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27336474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27336475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27336476, '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 = 27337055 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': 3792809, 'mtr_portfolio_id': 27337055, 'created_at': datetime.datetime(2025, 9, 30, 14, 41, 6), 'result': '0.11175540744958323', 'result_long': None, 'result_double': None}] Qualite : 0.11175540744958323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337055 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_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, 'pht': 3726}}" where mtr_portfolio_id = 27337055 and dashboard_run_id = 2374893 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`=27337055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816501, 0.11175540744958323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337055_30-09-2025_14_41_07.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27337056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337067, '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 = 27337483 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': 3792810, 'mtr_portfolio_id': 27337483, 'created_at': datetime.datetime(2025, 9, 30, 14, 31, 6), 'result': '0.13236143831560637', 'result_long': None, 'result_double': None}] Qualite : 0.13236143831560637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27337483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27337483 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_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, 'pht': 3726}}" where mtr_portfolio_id = 27337483 and dashboard_run_id = 2374893 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`=27337483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816502, 0.13236143831560637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27337483_30-09-2025_14_31_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27337621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27337622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27337623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27337624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27337625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27337626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27337627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27337628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27337629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27337630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27337631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27337632, '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 = 27338516 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': 3792811, 'mtr_portfolio_id': 27338516, 'created_at': datetime.datetime(2025, 9, 30, 13, 46, 5), 'result': '0.08477776823286796', 'result_long': None, 'result_double': None}] Qualite : 0.08477776823286796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338516 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_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, 'pht': 3726}}" where mtr_portfolio_id = 27338516 and dashboard_run_id = 2374893 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`=27338516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816503, 0.08477776823286796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338516_30-09-2025_13_46_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338542, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338545, '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 = 27338908 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': 3792733, 'mtr_portfolio_id': 27338908, 'created_at': datetime.datetime(2025, 9, 30, 16, 48, 32), 'result': '0.018743900037648104', 'result_long': None, 'result_double': None}] Qualite : 0.018743900037648104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27338908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27338908 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_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, 'pht': 3726}}" where mtr_portfolio_id = 27338908 and dashboard_run_id = 2374893 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`=27338908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816504, 0.018743900037648104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27338908_30-09-2025_16_48_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27338909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27338910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27338911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27338912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27338913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27338914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27338915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27338916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27338917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27338918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27338919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27338920, '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 = 27339780 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': 3792882, 'mtr_portfolio_id': 27339780, 'created_at': datetime.datetime(2025, 9, 30, 6, 51, 25), 'result': '0.027011637195848395', 'result_long': None, 'result_double': None}] Qualite : 0.027011637195848395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339780 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_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, 'pht': 3726}}" where mtr_portfolio_id = 27339780 and dashboard_run_id = 2374893 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`=27339780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816505, 0.027011637195848395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339780_30-09-2025_06_51_25.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339794, '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 = 27339914 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': 3792899, 'mtr_portfolio_id': 27339914, 'created_at': datetime.datetime(2025, 9, 30, 13, 26, 5), 'result': '0.03242617448801075', 'result_long': None, 'result_double': None}] Qualite : 0.03242617448801075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27339914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27339914 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_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, 'pht': 3726}}" where mtr_portfolio_id = 27339914 and dashboard_run_id = 2374893 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`=27339914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816506, 0.03242617448801075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27339914_30-09-2025_13_26_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27339915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27339916, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27339917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27339918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27339919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27339920, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27339921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27339922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27339923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27339924, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27339925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27339926, '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 = 27346603 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346603 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346603 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346603_30-09-2025_13_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346603 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_P27346603_30-09-2025_13_21_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27347383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347394, 'pht': 3726}}" where mtr_portfolio_id = 27346603 and dashboard_run_id = 2374893 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 = 27346604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346604 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346604 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346604_30-09-2025_13_01_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346604 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_P27346604_30-09-2025_13_01_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346637, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346643, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346645, 'pht': 3726}}" where mtr_portfolio_id = 27346604 and dashboard_run_id = 2374893 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 = 27346605 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346605 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346605 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346605_30-09-2025_13_06_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346605 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_P27346605_30-09-2025_13_06_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27346880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346891, 'pht': 3726}}" where mtr_portfolio_id = 27346605 and dashboard_run_id = 2374893 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 = 27343961 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343961 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343961 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343961_30-09-2025_12_51_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343961 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_P27343961_30-09-2025_12_51_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346337, 'pht': 3726}}" where mtr_portfolio_id = 27343961 and dashboard_run_id = 2374893 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 = 27343964 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343964 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343964 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343964_30-09-2025_12_56_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343964 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_P27343964_30-09-2025_12_56_10.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346496, 'pht': 3726}}" where mtr_portfolio_id = 27343964 and dashboard_run_id = 2374893 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 = 27346606 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346606 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346606 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346606_30-09-2025_13_11_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346606 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_P27346606_30-09-2025_13_11_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347109, 'pht': 3726}}" where mtr_portfolio_id = 27346606 and dashboard_run_id = 2374893 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 = 27346607 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27346607 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27346607 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27346607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27346607_30-09-2025_13_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27346607 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_P27346607_30-09-2025_13_16_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27347236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27347237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27347238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27347239, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27347240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27347241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27347242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27347243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27347244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27347245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27347246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27347247, 'pht': 3726}}" where mtr_portfolio_id = 27346607 and dashboard_run_id = 2374893 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 = 27343995 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343995 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343995 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343995_30-09-2025_12_46_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343995 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_P27343995_30-09-2025_12_46_09.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346266, 'pht': 3726}}" where mtr_portfolio_id = 27343995 and dashboard_run_id = 2374893 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 = 27341302 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341302 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341302 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341302_30-09-2025_11_26_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341302 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_P27341302_30-09-2025_11_26_08.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27341840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341841, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341851, 'pht': 3726}}" where mtr_portfolio_id = 27341302 and dashboard_run_id = 2374893 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 = 27343998 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27343998 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27343998 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343998_30-09-2025_12_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343998 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_P27343998_30-09-2025_12_41_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27346083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27346084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27346085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27346086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27346087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27346088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27346089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27346090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27346091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27346092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27346093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27346094, 'pht': 3726}}" where mtr_portfolio_id = 27343998 and dashboard_run_id = 2374893 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 = 27344000 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344000 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344000 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344000_30-09-2025_12_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344000 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_P27344000_30-09-2025_12_36_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345894, 'pht': 3726}}" where mtr_portfolio_id = 27344000 and dashboard_run_id = 2374893 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 = 27341336 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27341336 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27341336 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27341336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27341336_30-09-2025_11_31_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27341336 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_P27341336_30-09-2025_11_31_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342067, 'pht': 3726}}" where mtr_portfolio_id = 27341336 and dashboard_run_id = 2374893 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 = 27344002 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27344002 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27344002 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344002_30-09-2025_12_26_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344002 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_P27344002_30-09-2025_12_26_10.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27345305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27345306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27345307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27345308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27345309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27345310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27345311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27345312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27345313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27345314, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27345315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27345316, 'pht': 3726}}" where mtr_portfolio_id = 27344002 and dashboard_run_id = 2374893 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 = 27340889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27340889 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27340889 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27340889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27340889_30-09-2025_11_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27340889 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_P27340889_30-09-2025_11_21_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27341272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27341273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27341274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27341275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27341276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27341277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27341278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27341279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27341280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27341281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27341282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27341283, 'pht': 3726}}" where mtr_portfolio_id = 27340889 and dashboard_run_id = 2374893 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 = 27342266 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': 3793369, 'mtr_portfolio_id': 27342266, 'created_at': datetime.datetime(2025, 9, 30, 11, 36, 6), 'result': '0.032037475049841224', 'result_long': None, 'result_double': None}] Qualite : 0.032037475049841224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342266 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_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, 'pht': 3726}}" where mtr_portfolio_id = 27342266 and dashboard_run_id = 2374893 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`=27342266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816521, 0.032037475049841224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342266_30-09-2025_11_36_11.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342453, '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 = 27343199 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': 3793694, 'mtr_portfolio_id': 27343199, 'created_at': datetime.datetime(2025, 9, 30, 11, 56, 5), 'result': '0.031162266974524126', 'result_long': None, 'result_double': None}] Qualite : 0.031162266974524126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343199 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_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, 'pht': 3726}}" where mtr_portfolio_id = 27343199 and dashboard_run_id = 2374893 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`=27343199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816522, 0.031162266974524126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343199_30-09-2025_11_56_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343729, '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 = 27342690 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': 3793447, 'mtr_portfolio_id': 27342690, 'created_at': datetime.datetime(2025, 9, 30, 11, 51, 7), 'result': '0.08112103612526256', 'result_long': None, 'result_double': None}] Qualite : 0.08112103612526256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27342690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27342690 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_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, 'pht': 3726}}" where mtr_portfolio_id = 27342690 and dashboard_run_id = 2374893 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`=27342690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816523, 0.08112103612526256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27342690_30-09-2025_11_51_08.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27342735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27342736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27342737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27342738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27342739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27342740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27342741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27342742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27342743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27342744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27342745, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27342746, '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 = 27343836 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': 3793803, 'mtr_portfolio_id': 27343836, 'created_at': datetime.datetime(2025, 9, 30, 12, 21, 4), 'result': '0.06402936172566988', 'result_long': None, 'result_double': None}] Qualite : 0.06402936172566988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27343836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27343836 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_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, 'pht': 3726}}" where mtr_portfolio_id = 27343836 and dashboard_run_id = 2374893 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`=27343836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816524, 0.06402936172566988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27343836_30-09-2025_12_21_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27343967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27343968, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27343969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27343970, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27343971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27343972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27343973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27343974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27343975, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27343976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27343977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27343978, '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 = 27344539 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': 3793931, 'mtr_portfolio_id': 27344539, 'created_at': datetime.datetime(2025, 9, 30, 12, 39, 24), 'result': '0.06871672178279924', 'result_long': None, 'result_double': None}] Qualite : 0.06871672178279924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27344539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27344539 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_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, 'pht': 3726}}" where mtr_portfolio_id = 27344539 and dashboard_run_id = 2374893 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`=27344539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816525, 0.06871672178279924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27344539_30-09-2025_12_39_24.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27344546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27344547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27344548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27344549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27344550, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27344551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27344552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27344553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27344554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27344555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27344556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27344557, '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 = 27348083 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': 3794214, 'mtr_portfolio_id': 27348083, 'created_at': datetime.datetime(2025, 9, 30, 14, 11, 6), 'result': '0.05605132116591798', 'result_long': None, 'result_double': None}] Qualite : 0.05605132116591798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348083 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_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, 'pht': 3726}}" where mtr_portfolio_id = 27348083 and dashboard_run_id = 2374893 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`=27348083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816526, 0.05605132116591798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348083_30-09-2025_14_11_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27348140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27348141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27348142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27348143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27348144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27348145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27348146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27348147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27348148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27348149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27348150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27348151, '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 = 27348699 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': 3794256, 'mtr_portfolio_id': 27348699, 'created_at': datetime.datetime(2025, 9, 30, 14, 21, 4), 'result': '0.04381904414100635', 'result_long': None, 'result_double': None}] Qualite : 0.04381904414100635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27348699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27348699 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_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, 'pht': 3726}}" where mtr_portfolio_id = 27348699 and dashboard_run_id = 2374893 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`=27348699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816527, 0.04381904414100635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27348699_30-09-2025_14_21_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349167, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349172, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349178, '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 = 27349371 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': 3794299, 'mtr_portfolio_id': 27349371, 'created_at': datetime.datetime(2025, 9, 30, 14, 36, 5), 'result': '0.03183588031159431', 'result_long': None, 'result_double': None}] Qualite : 0.03183588031159431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27349371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27349371 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_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, 'pht': 3726}}" where mtr_portfolio_id = 27349371 and dashboard_run_id = 2374893 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`=27349371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816528, 0.03183588031159431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27349371_30-09-2025_14_36_07.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27349639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27349640, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27349641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27349642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27349643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27349644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27349645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27349646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27349647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27349648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27349649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27349650, '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 = 27350226 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': 3794387, 'mtr_portfolio_id': 27350226, 'created_at': datetime.datetime(2025, 9, 30, 14, 51, 5), 'result': '0.06751035463601696', 'result_long': None, 'result_double': None}] Qualite : 0.06751035463601696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350226 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350226 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_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, 'pht': 3726}}" where mtr_portfolio_id = 27350226 and dashboard_run_id = 2374893 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`=27350226 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816529, 0.06751035463601696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350226_30-09-2025_14_51_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27350227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27350233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350238, '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 = 27350819 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': 3794478, 'mtr_portfolio_id': 27350819, 'created_at': datetime.datetime(2025, 9, 30, 15, 6, 5), 'result': '0.06836435408594851', 'result_long': None, 'result_double': None}] Qualite : 0.06836435408594851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27350819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27350819 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_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, 'pht': 3726}}" where mtr_portfolio_id = 27350819 and dashboard_run_id = 2374893 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`=27350819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816530, 0.06836435408594851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27350819_30-09-2025_15_06_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27350827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27350828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27350829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27350830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27350831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27350832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27350833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27350834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27350835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27350836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27350837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27350838, '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 = 27351603 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': 3794570, 'mtr_portfolio_id': 27351603, 'created_at': datetime.datetime(2025, 9, 30, 15, 26, 4), 'result': '0.060426941062765714', 'result_long': None, 'result_double': None}] Qualite : 0.060426941062765714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351603 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_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, 'pht': 3726}}" where mtr_portfolio_id = 27351603 and dashboard_run_id = 2374893 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`=27351603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816531, 0.060426941062765714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351603_30-09-2025_15_26_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27351611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27351612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27351613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27351614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27351615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27351616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27351617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27351618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27351619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27351620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27351621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27351622, '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 = 27351983 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': 3794606, 'mtr_portfolio_id': 27351983, 'created_at': datetime.datetime(2025, 9, 30, 15, 36, 5), 'result': '0.03756418339818615', 'result_long': None, 'result_double': None}] Qualite : 0.03756418339818615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27351983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27351983 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_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, 'pht': 3726}}" where mtr_portfolio_id = 27351983 and dashboard_run_id = 2374893 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`=27351983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816532, 0.03756418339818615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27351983_30-09-2025_15_36_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27352046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352057, '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 = 27352576 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': 3794664, 'mtr_portfolio_id': 27352576, 'created_at': datetime.datetime(2025, 9, 30, 15, 53, 25), 'result': '0.056827191337181726', 'result_long': None, 'result_double': None}] Qualite : 0.056827191337181726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27352576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27352576 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_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, 'pht': 3726}}" where mtr_portfolio_id = 27352576 and dashboard_run_id = 2374893 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`=27352576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816533, 0.056827191337181726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27352576_30-09-2025_15_53_26.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27352682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27352683, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27352684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27352685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27352686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27352687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27352688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27352689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27352690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27352691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27352692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27352693, '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 = 27353601 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': 3794801, 'mtr_portfolio_id': 27353601, 'created_at': datetime.datetime(2025, 9, 30, 16, 11, 6), 'result': '0.06005432698009597', 'result_long': None, 'result_double': None}] Qualite : 0.06005432698009597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27353601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27353601 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_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, 'pht': 3726}}" where mtr_portfolio_id = 27353601 and dashboard_run_id = 2374893 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`=27353601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816534, 0.06005432698009597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27353601_30-09-2025_16_11_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27353690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27353691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27353692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27353693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27353694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27353695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27353696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27353697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27353698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27353699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27353700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27353701, '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 = 27354235 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': 3794868, 'mtr_portfolio_id': 27354235, 'created_at': datetime.datetime(2025, 9, 30, 16, 21, 7), 'result': '0.052175548624391554', 'result_long': None, 'result_double': None}] Qualite : 0.052175548624391554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27354235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27354235 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_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, 'pht': 3726}}" where mtr_portfolio_id = 27354235 and dashboard_run_id = 2374893 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`=27354235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816535, 0.052175548624391554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27354235_30-09-2025_16_21_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27354629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27354630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27354631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27354632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27354633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27354634, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27354635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27354636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27354637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27354638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27354639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27354640, '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 = 27355020 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': 3794930, 'mtr_portfolio_id': 27355020, 'created_at': datetime.datetime(2025, 9, 30, 16, 41, 7), 'result': '0.03992816911486089', 'result_long': None, 'result_double': None}] Qualite : 0.03992816911486089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355020 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_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, 'pht': 3726}}" where mtr_portfolio_id = 27355020 and dashboard_run_id = 2374893 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`=27355020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816536, 0.03992816911486089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355020_30-09-2025_16_41_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27355031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355042, '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 = 27355733 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': 3795055, 'mtr_portfolio_id': 27355733, 'created_at': datetime.datetime(2025, 9, 30, 16, 51, 26), 'result': '0.03956578148142965', 'result_long': None, 'result_double': None}] Qualite : 0.03956578148142965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27355733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27355733 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_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, 'pht': 3726}}" where mtr_portfolio_id = 27355733 and dashboard_run_id = 2374893 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`=27355733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816537, 0.03956578148142965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27355733_30-09-2025_16_51_27.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27355744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27355745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27355746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27355747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27355748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27355749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27355750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27355751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27355752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27355753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27355754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27355755, '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 = 27356323 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': 3795120, 'mtr_portfolio_id': 27356323, 'created_at': datetime.datetime(2025, 9, 30, 17, 4, 59), 'result': '0.03351866036357782', 'result_long': None, 'result_double': None}] Qualite : 0.03351866036357782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356323 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_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, 'pht': 3726}}" where mtr_portfolio_id = 27356323 and dashboard_run_id = 2374893 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`=27356323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816538, 0.03351866036357782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356323_30-09-2025_17_05_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27356338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356349, '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 = 27356877 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': 3795212, 'mtr_portfolio_id': 27356877, 'created_at': datetime.datetime(2025, 9, 30, 17, 19, 23), 'result': '0.04055982741025997', 'result_long': None, 'result_double': None}] Qualite : 0.04055982741025997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27356877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27356877 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_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, 'pht': 3726}}" where mtr_portfolio_id = 27356877 and dashboard_run_id = 2374893 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`=27356877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816539, 0.04055982741025997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27356877_30-09-2025_17_19_24.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27356939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27356940, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27356941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27356942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27356943, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27356944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27356945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27356946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27356947, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27356948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27356949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27356950, '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 = 27357789 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': 3795311, 'mtr_portfolio_id': 27357789, 'created_at': datetime.datetime(2025, 9, 30, 18, 5, 4), 'result': '0.04134207455672641', 'result_long': None, 'result_double': None}] Qualite : 0.04134207455672641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27357789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27357789 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_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, 'pht': 3726}}" where mtr_portfolio_id = 27357789 and dashboard_run_id = 2374893 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`=27357789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816540, 0.04134207455672641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27357789_30-09-2025_18_05_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27357807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27357808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27357809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27357810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27357811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27357812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27357813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27357814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27357815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27357816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27357817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27357818, '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 = 27359942 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': 3795575, 'mtr_portfolio_id': 27359942, 'created_at': datetime.datetime(2025, 9, 30, 18, 17, 3), 'result': '0.04682273514079712', 'result_long': None, 'result_double': None}] Qualite : 0.04682273514079712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27359942 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27359942 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_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, 'pht': 3726}}" where mtr_portfolio_id = 27359942 and dashboard_run_id = 2374893 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`=27359942 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816541, 0.04682273514079712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27359942_30-09-2025_18_17_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27359986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27359987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27359988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27359989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27359990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27359991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27359992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27359993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27359994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27359995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27359996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27359997, '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 = 27360591 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': 3795626, 'mtr_portfolio_id': 27360591, 'created_at': datetime.datetime(2025, 9, 30, 18, 35, 6), 'result': '0.06108782636962525', 'result_long': None, 'result_double': None}] Qualite : 0.06108782636962525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27360591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27360591 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_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, 'pht': 3726}}" where mtr_portfolio_id = 27360591 and dashboard_run_id = 2374893 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`=27360591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816542, 0.06108782636962525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27360591_30-09-2025_18_35_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27360602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27360603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27360604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27360605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27360606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27360607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27360608, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27360609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27360610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27360611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27360612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27360613, '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 = 27361214 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': 3795704, 'mtr_portfolio_id': 27361214, 'created_at': datetime.datetime(2025, 9, 30, 18, 49, 3), 'result': '0.040197135565628296', 'result_long': None, 'result_double': None}] Qualite : 0.040197135565628296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27361214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27361214 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_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, 'pht': 3726}}" where mtr_portfolio_id = 27361214 and dashboard_run_id = 2374893 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`=27361214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816543, 0.040197135565628296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361214_30-09-2025_18_49_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27361278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361289, '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 = 27361733 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': 3795798, 'mtr_portfolio_id': 27361733, 'created_at': datetime.datetime(2025, 9, 30, 19, 5, 25), 'result': '0.08001342542891669', 'result_long': None, 'result_double': None}] Qualite : 0.08001342542891669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27361733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27361733 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_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, 'pht': 3726}}" where mtr_portfolio_id = 27361733 and dashboard_run_id = 2374892 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`=27361733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816544, 0.08001342542891669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27361733_30-09-2025_19_05_26.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27361750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27361751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27361752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27361753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27361754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27361755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27361757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27361758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27361759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27361760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27361761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27361762, '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 = 27362389 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': 3795916, 'mtr_portfolio_id': 27362389, 'created_at': datetime.datetime(2025, 9, 30, 19, 17, 1), 'result': '0.03990075924470431', 'result_long': None, 'result_double': None}] Qualite : 0.03990075924470431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27362389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27362389 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_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, 'pht': 3726}}" where mtr_portfolio_id = 27362389 and dashboard_run_id = 2374892 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`=27362389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816545, 0.03990075924470431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27362389_30-09-2025_19_17_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27362402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27362403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27362404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27362405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27362406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27362407, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27362408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27362409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27362410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27362411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27362412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27362413, '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 = 27363066 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': 3796012, 'mtr_portfolio_id': 27363066, 'created_at': datetime.datetime(2025, 9, 30, 19, 33), 'result': '0.04919134925850653', 'result_long': None, 'result_double': None}] Qualite : 0.04919134925850653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27363066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27363066 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_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, 'pht': 3726}}" where mtr_portfolio_id = 27363066 and dashboard_run_id = 2374892 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`=27363066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15816546, 0.04919134925850653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27363066_30-09-2025_19_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27363114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27363115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27363116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27363117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27363118, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27363119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27363120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27363121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27363122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27363123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27363124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27363125, '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 (27335682,27335814,27335961,27336428,27337055,27337483,27338516,27338908,27339780,27339914,27346603,27346604,27346605,27343961,27343964,27346606,27346607,27343995,27341302,27343998,27344000,27341336,27344002,27340889,27342266,27343199,27342690,27343836,27344539,27348083,27348699,27349371,27350226,27350819,27351603,27351983,27352576,27353601,27354235,27355020,27355733,27356323,27356877,27357789,27359942,27360591,27361214,27361733,27362389,27363066) result : ((1386830906,), (1386831058,), (1386831149,), (1386831559,), (1386831560,), (1386831612,), (1386831630,), (1386831953,), (1386834594,), (1386834611,), (1386834722,), (1386834745,), (1386834749,), (1386835358,), (1386835525,), (1386835526,), (1386835555,), (1386835577,), (1386835578,), (1386835580,), (1386835617,), (1386836087,), (1386836114,), (1386836146,), (1386836150,), (1386836173,), (1386836773,), (1386837033,), (1386837163,), (1386837614,), (1386837618,), (1386837640,), (1386838514,), (1386838480,), (1386838598,), (1386838757,), (1386838762,), (1386838817,), (1386838821,), (1386838873,), (1386839202,), (1386839206,), (1386839236,), (1386840158,), (1386840162,), (1386840829,), (1386845116,), (1386845150,), (1386845154,), (1386846111,), (1386847812,), (1386847816,), (1386849278,), (1386849306,), (1386849361,), (1386849364,), (1386849384,), (1386849388,), (1386850015,), (1386850930,), (1386850944,), (1386851321,), (1386864607,), (1386864599,), (1386864603,), (1386865238,), (1386866133,), (1386866142,), (1386866326,), (1386866337,), (1386866524,), (1386866820,), (1386866863,), (1386866867,), (1386867039,), (1386867095,), (1386867134,), (1386867139,), (1386867143,), (1386867298,), (1386867302,), (1386867341,), (1386867364,), (1386867367,), (1386867371,), (1386867403,), (1386867505,), (1386867561,), (1386867683,), (1386867703,), (1386867914,), (1386868130,), (1386868156,), (1386868534,), (1386868833,), (1386868840,), (1386868973,), (1386868977,), (1386868979,), (1386868980,), (1386868983,), (1386869000,), (1386869003,), (1386869005,), (1386869175,), (1386869179,), (1386869337,), (1386869444,), (1386884239,), (1386884236,), (1386884259,), (1386884264,), (1386884266,), (1386884270,), (1386884273,), (1386884276,), (1386884285,), (1386884288,), (1386884495,), (1386884499,), (1386884505,), (1386884523,), (1386884526,), (1386884551,), (1386884603,), (1386884580,), (1386884592,), (1386884597,), (1386884600,), (1386884620,), (1386884624,), (1386884626,), (1386884627,), (1386884629,), (1386884647,), (1386884651,), (1386884743,), (1386884746,), (1386884748,), (1386884750,), (1386884753,), (1386884771,), (1386884775,), (1386884777,), (1386884780,), (1386884803,), (1386884807,), (1386884809,), (1386884811,), (1386884814,), (1386885703,), (1386885707,), (1386885710,), (1386885713,), (1386885733,), (1386885736,), (1386885739,), (1386885742,), (1386885746,), (1386885751,), (1386886102,), (1386886187,), (1386886190,), (1386886212,), (1386886215,), (1386886218,), (1386886222,), (1386886226,), (1386886537,), (1386886542,), (1386886548,), (1386886554,), (1386886557,), (1386886561,), (1386886565,), (1386886567,), (1386886570,), (1386886598,), (1386893352,), (1386893355,), (1386893357,), (1386893360,), (1386893363,), (1386893367,), (1386893383,), (1386893386,), (1386893400,), (1386893403,), (1386893407,), (1386893420,), (1386893423,), (1386893425,), (1386893429,), (1386893433,), (1386893453,), (1386893454,), (1386893456,), (1386893459,), (1386893462,), (1386893466,), (1386893471,), (1386893473,), (1386893475,), (1386893477,), (1386893482,), (1386893484,), (1386893487,), (1386893491,), (1386893493,), (1386893509,), (1386893513,), (1386893538,), (1386893542,), (1386893547,), (1386893550,), (1386893572,), (1386893575,), (1386893577,), (1386893580,), (1386893583,), (1386893598,), (1386893603,), (1386893607,), (1386893612,), (1386893616,), (1386893632,), (1386893637,), (1386893640,), (1386893671,), (1386893674,), (1386893678,), (1386893683,), (1386893687,), (1386893691,), (1386893704,), (1386893709,), (1386893715,), (1386893720,), (1386893726,), (1386893780,), (1386893782,), (1386893787,), (1386893789,), (1386893792,), (1386893795,), (1386893797,), (1386893799,), (1386893816,), (1386893819,), (1386891495,), (1386891526,), (1386891528,), (1386891530,), (1386891533,), (1386891536,), (1386891539,), (1386891570,), (1386891719,), (1386892445,), (1386892539,), (1386892559,), (1386892560,), (1386892561,), (1386892584,), (1386892588,), (1386892591,), (1386892623,), (1386892628,), (1386892631,), (1386892653,), (1386892657,), (1386892660,), (1386892661,), (1386892664,), (1386892668,), (1386892685,), (1386892689,), (1386892691,), (1386892713,), (1386892717,), (1386892720,), (1386892723,), (1386892727,), (1386892731,), (1386892747,), (1386892750,), (1386892751,), (1386892752,), (1386892755,), (1386892774,), (1386892776,), (1386892778,), (1386892783,), (1386892790,), (1386892792,), (1386892808,), (1386892811,), (1386892813,), (1386892815,), (1386892817,), (1386892820,), (1386892826,), (1386892828,), (1386892831,), (1386892833,), (1386892838,), (1386892842,), (1386892856,), (1386893766,), (1386893769,), (1386893773,), (1386893777,), (1386893802,), (1386893804,), (1386893807,), (1386893810,), (1386893813,), (1386893826,), (1386893829,), (1386893832,), (1386893836,), (1386893840,), (1386893841,), (1386893853,), (1386893856,), (1386893857,), (1386893859,), (1386893882,), (1386893885,), (1386893888,), (1386893892,), (1386893896,), (1386893899,), (1386893911,), (1386893915,), (1386893918,), (1386893922,), (1386893927,), (1386893953,), (1386893957,), (1386893959,), (1386893961,), (1386893965,), (1386893981,), (1386893983,), (1386893985,), (1386893988,), (1386893992,), (1386893996,), (1386894015,), (1386894018,), (1386894020,), (1386894022,), (1386894066,), (1386894079,), (1386894097,), (1386894113,), (1386894119,), (1386894134,), (1386894152,), (1386894160,), (1386894164,), (1386894167,), (1386894173,), (1386894178,), (1386894209,), (1386894211,), (1386894215,), (1386894217,), (1386894222,), (1386894230,), (1386894232,), (1386894236,), (1386894239,), (1386894246,), (1386894253,), (1386894836,), (1386894850,), (1386894854,), (1386894915,), (1386895141,), (1386895144,), (1386895146,), (1386895148,), (1386895156,), (1386895162,), (1386895299,), (1386895309,), (1386895342,), (1386895723,), (1386895735,), (1386895926,), (1386900156,), (1386900188,), (1386900194,), (1386900201,), (1386900206,), (1386900412,), (1386900446,), (1386900448,), (1386900505,), (1386900545,), (1386900548,), (1386900550,), (1386900552,), (1386900555,), (1386900716,), (1386900720,), (1386900723,), (1386900726,), (1386900730,), (1386900760,), (1386900826,), (1386900955,), (1386900985,), (1386900990,), (1386901085,), (1386901090,), (1386901093,), (1386901118,), (1386901123,), (1386901126,), (1386901152,), (1386901161,), (1386901166,), (1386901170,), (1386901188,), (1386901328,), (1386901335,), (1386901337,), (1386901338,), (1386901354,), (1386901357,), (1386901359,), (1386901362,), (1386901366,), (1386901484,), (1386901487,), (1386901532,), (1386901535,), (1386901538,), (1386902218,), (1386902222,), (1386902224,), (1386902226,), (1386902853,), (1386902907,), (1386902909,), (1386902911,), (1386902914,), (1386903185,), (1386903190,), (1386903209,), (1386903606,), (1386903609,), (1386903610,), (1386903648,), (1386903701,), (1386903705,), (1386903707,), (1386903711,), (1386903719,), (1386903723,), (1386903810,), (1386895910,), (1386895914,), (1386895922,), (1386895924,), (1386895925,), (1386896032,), (1386896038,), (1386896051,), (1386896054,), (1386896057,), (1386896131,), (1386896134,), (1386896138,), (1386896142,), (1386896147,), (1386896151,), (1386896618,), (1386896624,), (1386896637,), (1386896638,), (1386897098,), (1386897100,), (1386897103,), (1386897108,), (1386897576,), (1386897585,), (1386897599,), (1386897603,), (1386897608,), (1386897618,), (1386897874,), (1386897977,), (1386897990,), (1386898003,), (1386898005,), (1386898032,), (1386898038,), (1386898179,), (1386898183,), (1386898217,), (1386898233,), (1386898363,), (1386898368,), (1386898400,), (1386898410,), (1386898441,), (1386898481,), (1386898486,), (1386898489,), (1386898492,), (1386898534,), (1386898599,), (1386898601,), (1386898604,), (1386898606,), (1386898609,), (1386898641,), (1386898924,), (1386898950,), (1386898952,), (1386898956,), (1386899097,), (1386899210,), (1386899213,), (1386899223,), (1386899237,), (1386899240,), (1386899406,), (1386899410,), (1386899411,), (1386899417,), (1386899623,), (1386899835,), (1386899935,), (1386899942,), (1386899953,), (1386899978,), (1386900214,), (1386903798,), (1386903803,), (1386903807,), (1386903828,), (1386903832,), (1386903833,), (1386903835,), (1386903840,), (1386903925,), (1386903939,), (1386903942,), (1386903981,), (1386904001,), (1386904006,), (1386904033,), (1386904036,), (1386904173,), (1386904825,), (1386905049,), (1386905099,), (1386905224,), (1386905287,), (1386905328,), (1386905701,), (1386905704,), (1386905706,), (1386905709,), (1386905712,), (1386905900,), (1386905917,), (1386905934,), (1386905939,), (1386905944,), (1386905947,), (1386906360,), (1386906370,), (1386906479,), (1386906481,), (1386906520,), (1386906617,), (1386906644,), (1386906654,), (1386906658,), (1386906662,), (1386906665,), (1386906709,), (1386906713,), (1386906739,), (1386906744,), (1386906768,), (1386906771,), (1386906773,), (1386906971,), (1386906973,), (1386907263,), (1386907267,), (1386907270,), (1386907274,), (1386907284,), (1386907349,), (1386907352,), (1386907356,), (1386907360,), (1386908221,), (1386908290,), (1386908385,), (1386908388,), (1386908393,), (1386908444,), (1386908474,), (1386908484,), (1386908517,), (1386908556,), (1386887862,), (1386887869,), (1386887949,), (1386888130,), (1386888160,), (1386888165,), (1386888201,), (1386888232,), (1386888221,), (1386888225,), (1386888229,), (1386888256,), (1386888259,), (1386888262,), (1386888264,), (1386888265,), (1386888267,), (1386888284,), (1386888285,), (1386888305,), (1386888307,), (1386888310,), (1386888312,), (1386888314,), (1386888316,), (1386888328,), (1386888334,), (1386888338,), (1386888341,), (1386888343,), (1386888361,), (1386888365,), (1386888368,), (1386888372,), (1386888377,), (1386888380,), (1386888396,), (1386888399,), (1386888402,), (1386888405,), (1386888408,), (1386888424,), (1386888426,), (1386888430,), (1386888432,), (1386888433,), (1386888447,), (1386888451,), (1386888454,), (1386888457,), (1386888461,), (1386888464,), (1386888479,), (1386888481,), (1386888483,), (1386888486,), (1386888489,), (1386888491,), (1386888494,), (1386888497,), (1386888499,), (1386888501,), (1386888511,), (1386888514,), (1386888517,), (1386888521,), (1386888525,), (1386888544,), (1386888546,), (1386888548,), (1386888551,), (1386888556,), (1386888580,), (1386888584,), (1386888591,), (1386888594,), (1386888606,), (1386888612,), (1386888616,), (1386888620,), (1386888623,), (1386888626,), (1386888638,), (1386888641,), (1386888644,), (1386888648,), (1386888653,), (1386888656,), (1386888678,), (1386889632,), (1386889660,), (1386889691,), (1386889695,), (1386889699,), (1386889735,), (1386889739,), (1386889743,), (1386889744,), (1386889747,), (1386889772,), (1386889774,), (1386889777,), (1386889781,), (1386889785,), (1386889789,), (1386889815,), (1386889819,), (1386889825,), (1386889828,), (1386889846,), (1386889850,), (1386889854,), (1386889859,), (1386889864,), (1386889868,), (1386889888,), (1386889890,), (1386889891,), (1386889893,), (1386889895,), (1386889899,), (1386889918,), (1386889922,), (1386889925,), (1386889928,), (1386889956,), (1386889960,), (1386889963,), (1386889967,), (1386889971,), (1386889975,), (1386889992,), (1386890028,), (1386890032,), (1386890037,), (1386890039,), (1386890044,), (1386890070,), (1386890076,), (1386890080,), (1386890085,), (1386890118,), (1386890124,), (1386890130,), (1386890136,), (1386890140,), (1386890145,), (1386890169,), (1386891885,), (1386891919,), (1386891924,), (1386891926,), (1386891928,), (1386891931,), (1386891945,), (1386891947,), (1386892029,), (1386892034,), (1386892037,), (1386892065,), (1386892061,), (1386892128,), (1386892276,), (1386892279,), (1386892281,), (1386892285,), (1386892305,), (1386892307,), (1386892310,), (1386892313,), (1386892316,), (1386892330,), (1386892337,), (1386892338,), (1386892340,), (1386892342,), (1386892345,), (1386892356,), (1386892358,), (1386892449,), (1386892849,), (1386892851,), (1386892853,), (1386892871,), (1386892872,), (1386892874,), (1386892876,), (1386892882,), (1386892885,), (1386892907,), (1386892911,), (1386892914,), (1386892917,), (1386892936,), (1386892938,), (1386892940,), (1386892942,), (1386892945,), (1386892962,), (1386892965,), (1386892968,), (1386892971,), (1386892973,), (1386892988,), (1386892989,), (1386892990,), (1386892992,), (1386893010,), (1386893014,), (1386893017,), (1386893021,), (1386893025,), (1386893029,), (1386893045,), (1386893047,), (1386893049,), (1386893050,), (1386893053,), (1386893074,), (1386893079,), (1386893082,), (1386893086,), (1386893091,), (1386893111,), (1386893115,), (1386893119,), (1386893122,), (1386893138,), (1386893144,), (1386893146,), (1386893148,), (1386893151,), (1386893154,), (1386893167,), (1386893169,), (1386893172,), (1386893176,), (1386893178,), (1386893182,), (1386893198,), (1386893206,), (1386893211,), (1386893214,), (1386893217,), (1386893232,), (1386893236,), (1386893238,), (1386893241,), (1386893245,), (1386893248,), (1386893273,), (1386893276,), (1386893325,), (1386908539,), (1386908544,), (1386908549,), (1386908552,), (1386908553,), (1386909801,), (1386909836,), (1386909842,), (1386910212,), (1386910274,), (1386910277,), (1386910280,), (1386910282,), (1386910462,), (1386910465,), (1386910468,), (1386910469,), (1386910505,), (1386910507,), (1386910509,), (1386910511,), (1386910515,), (1386910522,), (1386910539,), (1386910545,), (1386910550,), (1386910946,), (1386910950,), (1386911121,), (1386911141,), (1386911143,), (1386911145,), (1386911147,), (1386911285,), (1386911288,), (1386911301,), (1386911306,), (1386911486,), (1386911566,), (1386911815,), (1386911888,), (1386911911,), (1386911915,), (1386912114,), (1386912117,), (1386912119,), (1386912122,), (1386912243,), (1386912306,), (1386912310,), (1386912346,), (1386912354,), (1386920013,), (1386886587,), (1386886592,), (1386886594,), (1386886596,), (1386886613,), (1386886616,), (1386886620,), (1386886626,), (1386886631,), (1386886635,), (1386886646,), (1386886650,), (1386886653,), (1386886657,), (1386886678,), (1386886682,), (1386886686,), (1386886690,), (1386886694,), (1386886696,), (1386886703,), (1386886705,), (1386886707,), (1386886710,), (1386886713,), (1386886734,), (1386886735,), (1386886738,), (1386886764,), (1386886769,), (1386886772,), (1386886775,), (1386886780,), (1386886793,), (1386886796,), (1386886798,), (1386886804,), (1386886815,), (1386886817,), (1386886819,), (1386886822,), (1386886838,), (1386886845,), (1386886848,), (1386886852,), (1386886855,), (1386886864,), (1386886867,), (1386886870,), (1386886872,), (1386886875,), (1386886877,), (1386886895,), (1386886899,), (1386886900,), (1386886901,), (1386886924,), (1386886927,), (1386886930,), (1386886933,), (1386886935,), (1386886938,), (1386886947,), (1386886950,), (1386886953,), (1386886957,), (1386886979,), (1386886982,), (1386886985,), (1386886986,), (1386886988,), (1386887024,), (1386887009,), (1386887013,), (1386887015,), (1386887018,), (1386887021,), (1386887037,), (1386887040,), (1386887042,), (1386887044,), (1386887047,), (1386887065,), (1386887070,), (1386887074,), (1386887076,), (1386887094,), (1386887095,), (1386887096,), (1386887098,), (1386887101,), (1386887104,), (1386887121,), (1386887124,), (1386887129,), (1386887134,), (1386887137,), (1386887140,), (1386887145,), (1386887147,), (1386887148,), (1386887150,), (1386887153,), (1386887158,), (1386887167,), (1386887170,), (1386887174,), (1386887175,), (1386887183,), (1386887187,), (1386887190,), (1386887192,), (1386887194,), (1386887197,), (1386887211,), (1386887213,), (1386887217,), (1386887220,), (1386887237,), (1386887241,), (1386887244,), (1386887248,), (1386887252,), (1386887256,), (1386887280,), (1386887284,), (1386887286,), (1386887287,), (1386887289,), (1386887305,), (1386887308,), (1386887310,), (1386887315,), (1386887319,), (1386887336,), (1386887338,), (1386887340,), (1386887342,), (1386887345,), (1386887348,), (1386887362,), (1386887371,), (1386887374,), (1386887377,), (1386887380,), (1386887397,), (1386887398,), (1386887400,), (1386887403,), (1386887406,), (1386887407,), (1386887423,), (1386887426,), (1386887429,), (1386887431,), (1386887433,), (1386887434,), (1386887456,), (1386887453,), (1386887455,), (1386887477,), (1386887481,), (1386887484,), (1386887488,), (1386887492,), (1386887495,), (1386887509,), (1386887514,), (1386887518,), (1386887522,), (1386887527,), (1386887531,), (1386887541,), (1386887543,), (1386887545,), (1386887548,), (1386887552,), (1386887564,), (1386887571,), (1386887573,), (1386887575,), (1386887578,), (1386887579,), (1386887592,), (1386887596,), (1386887598,), (1386887618,), (1386887623,), (1386887627,), (1386887629,), (1386887631,), (1386887633,), (1386887644,), (1386887648,), (1386887651,), (1386887654,), (1386887658,), (1386887662,), (1386887686,), (1386887687,), (1386887688,), (1386887713,), (1386887717,), (1386887721,), (1386887726,), (1386887749,), (1386887752,), (1386887755,), (1386887759,), (1386887775,), (1386887776,), (1386887871,), (1386888668,), (1386888671,), (1386888675,), (1386888695,), (1386888697,), (1386888698,), (1386888700,), (1386888703,), (1386888718,), (1386888723,), (1386888727,), (1386888761,), (1386888765,), (1386888767,), (1386888768,), (1386888772,), (1386888776,), (1386888789,), (1386888790,), (1386888793,), (1386888797,), (1386888800,), (1386888803,), (1386888808,), (1386888809,), (1386888810,), (1386888811,), (1386888815,), (1386888823,), (1386888828,), (1386888832,), (1386888834,), (1386888844,), (1386888846,), (1386888847,), (1386888849,), (1386888852,), (1386888869,), (1386888872,), (1386888875,), (1386888877,), (1386888889,), (1386888892,), (1386888895,), (1386888899,), (1386888903,), (1386888932,), (1386888936,), (1386888939,), (1386888944,), (1386888967,), (1386889014,), (1386889047,), (1386889051,), (1386889053,), (1386889056,), (1386889060,), (1386889076,), (1386889078,), (1386889081,), (1386889084,), (1386889087,), (1386889088,), (1386889109,), (1386889102,), (1386889105,), (1386889107,), (1386889134,), (1386889137,), (1386889141,), (1386889165,), (1386889168,), (1386889170,), (1386889172,), (1386889175,), (1386889177,), (1386889193,), (1386889196,), (1386889199,), (1386889203,), (1386889224,), (1386889228,), (1386889230,), (1386889233,), (1386889238,), (1386889266,), (1386889270,), (1386889273,), (1386889276,), (1386889280,), (1386889284,), (1386889307,), (1386889312,), (1386889315,), (1386889317,), (1386889320,), (1386889347,), (1386889352,), (1386889357,), (1386889362,), (1386889366,), (1386889449,), (1386889454,), (1386889484,), (1386889488,), (1386889491,), (1386889493,), (1386889497,), (1386889501,), (1386889528,), (1386889532,), (1386889535,), (1386889537,), (1386889539,), (1386889566,), (1386889569,), (1386889572,), (1386889600,), (1386889604,), (1386889606,), (1386889636,), (1386934434,), (1386934714,), (1386934768,), (1386934771,), (1386934773,), (1386934774,), (1386934777,), (1386934942,), (1386934972,), (1386934996,), (1386935001,), (1386935076,), (1386935080,), (1386935295,), (1386935299,), (1386935334,), (1386935337,), (1386935341,), (1386935344,), (1386935357,), (1386935361,), (1386935365,), (1386935369,), (1386935373,), (1386935420,), (1386935426,), (1386935429,), (1386935431,), (1386935434,), (1386935437,), (1386935461,), (1386935464,), (1386935646,), (1386935856,), (1386935871,), (1386935873,), (1386935876,), (1386935880,), (1386935890,), (1386935929,), (1386935933,), (1386935935,), (1386935937,), (1386935939,), (1386935940,), (1386937204,), (1386937530,), (1386937581,), (1386937830,), (1386937834,), (1386937842,), (1386937844,), (1386937814,), (1386937817,), (1386937819,), (1386937823,), (1386937868,), (1386937872,), (1386937875,), (1386937879,), (1386937896,), (1386937899,), (1386937901,), (1386937903,), (1386937906,), (1386937913,), (1386937947,), (1386937951,), (1386937953,), (1386937963,), (1386937970,), (1386938005,), (1386938008,), (1386938011,), (1386938373,), (1386938405,), (1386938427,), (1386938433,), (1386938437,), (1386938747,), (1386939573,), (1386939578,), (1386939590,), (1386939591,), (1386939593,), (1386939596,), (1386939974,), (1386939983,), (1386940099,), (1386940241,), (1386940364,), (1386940368,), (1386940373,), (1386940441,), (1386940444,), (1386940446,), (1386940478,), (1386940481,), (1386940482,), (1386940483,), (1386940504,), (1386940547,), (1386940550,), (1386940553,), (1386940556,), (1386940961,), (1386940992,), (1386941007,), (1386941010,), (1386941012,), (1386941197,), (1386941200,), (1386941203,), (1386941207,), (1386941215,), (1386941217,), (1386941235,), (1386941238,), (1386941239,), (1386941241,), (1386941245,), (1386941248,), (1386941260,), (1386941264,), (1386941614,), (1386941873,), (1386941847,), (1386941866,), (1386941870,), (1386941937,), (1386941950,), (1386941951,), (1386941952,), (1386941954,), (1386942276,), (1386942279,), (1386942282,), (1386942370,), (1386942477,), (1386942480,), (1386942483,), (1386942487,), (1386942511,), (1386942825,), (1386942827,), (1386942829,), (1386942831,), (1386942933,), (1386943012,), (1386943054,), (1386943441,), (1386943445,), (1386943447,), (1386943482,), (1386943484,), (1386943486,), (1386943489,), (1386943512,), (1386943516,), (1386943517,), (1386943519,), (1386943521,), (1386943523,), (1386943909,), (1386943919,), (1386943921,), (1386943923,), (1386943925,), (1386943939,), (1386943943,), (1386943946,), (1386943949,), (1386943951,), (1386943953,), (1386943964,), (1386943965,), (1386943966,), (1386944327,), (1386944330,), (1386944380,), (1386944408,), (1386944411,), (1386944900,), (1386944904,), (1386944921,), (1386945254,), (1386945291,), (1386945293,), (1386945295,), (1386945297,), (1386945347,), (1386945351,), (1386945353,), (1386945356,), (1386945359,), (1386945368,), (1386945404,), (1386945412,), (1386945415,), (1386945418,), (1386945422,), (1386945780,), (1386945782,), (1386945783,), (1386945784,), (1386945807,), (1386945810,), (1386945812,), (1386945814,), (1386945829,), (1386945831,), (1386945832,), (1386945834,), (1386945838,), (1386945841,), (1386945877,), (1386945880,), (1386945882,), (1386945904,), (1386945907,), (1386945910,), (1386946010,), (1386946588,), (1386946621,), (1386946625,), (1386946627,), (1386946771,), (1386946864,), (1386946953,), (1386946954,), (1386946977,), (1386946979,), (1386947350,), (1386947708,), (1386947636,), (1386947678,), (1386947681,), (1386947748,), (1386947754,), (1386947755,), (1386947756,), (1386947758,), (1386948084,), (1386948087,), (1386948089,), (1386948180,), (1386948212,), (1386948291,), (1386948329,), (1386948330,), (1386948355,), (1386948360,), (1386948362,), (1386948364,), (1386948366,), (1386948692,), (1386948695,), (1386948698,), (1386948826,), (1386948902,), (1386948913,), (1386948934,), (1386948937,), (1386948939,), (1386948941,), (1386948951,), (1386948954,), (1386948958,), (1386948968,), (1386948972,), (1386949023,), (1386949026,), (1386949330,), (1386949332,), (1386949497,), (1386949502,), (1386949504,), (1386949525,), (1386949527,), (1386949539,), (1386949586,), (1386949597,), (1386949608,), (1386949653,), (1386949669,), (1386949671,), (1386949673,), (1386950288,), (1386950292,), (1386950295,), (1386950577,), (1386950584,), (1386950586,), (1386950700,), (1386950702,), (1386950704,), (1386951421,), (1386952364,), (1386952409,), (1386952411,), (1386950694,), (1386950697,), (1386950699,), (1386952421,), (1386952423,), (1386953378,), (1386953396,), (1386953407,), (1386953413,), (1386953418,), (1386953479,), (1386953483,), (1386953485,), (1386953487,), (1386953489,), (1386953513,), (1386953518,), (1386953521,), (1386953522,), (1386953602,), (1386953608,), (1386953611,), (1386953614,), (1386953617,), (1386953650,), (1386953655,), (1386953670,), (1386953673,), (1386953676,), (1386953710,), (1386953714,), (1386953718,), (1386953720,), (1386953744,), (1386953747,), (1386953750,), (1386953824,), (1386953828,), (1386953830,), (1386954463,), (1386954647,), (1386954648,), (1386954769,), (1386955025,), (1386955039,), (1386955100,), (1386955104,), (1386955106,), (1386955133,), (1386955136,), (1386955571,), (1386955769,), (1386955759,), (1386955762,), (1386955765,), (1386955791,), (1386955802,), (1386955813,), (1386955822,), (1386955825,), (1386955835,), (1386955839,), (1386955843,), (1386955845,), (1386955872,), (1386955876,), (1386955880,), (1386955900,), (1386955904,), (1386955908,), (1386955926,), (1386955930,), (1386955933,), (1386956050,), (1386956059,), (1386956122,), (1386956674,), (1386956678,), (1386956820,), (1386956826,), (1386956829,), (1386956832,), (1386957209,), (1386957230,), (1386957232,), (1386957297,), (1386957477,), (1386957950,), (1386958259,), (1386958390,), (1386958393,), (1386958394,), (1386958396,), (1386958399,), (1386958913,), (1386958916,), (1386958919,), (1386958922,), (1386959242,), (1386959246,), (1386959248,), (1386959251,), (1386959253,), (1386959255,), (1386959261,), (1386959281,), (1386959282,), (1386959307,), (1386959297,), (1386959301,), (1386959303,), (1386959476,), (1386959493,), (1386959496,), (1386959560,), (1386959596,), (1386959638,), (1386959641,), (1386959644,), (1386959655,), (1386959694,), (1386959697,), (1386959700,), (1386959703,), (1386959706,), (1386960601,), (1386960605,), (1386960645,), (1386960664,), (1386961011,), (1386961015,), (1386961201,), (1386961205,), (1386961207,), (1386961441,), (1386961445,), (1386961448,), (1386961451,), (1386961885,), (1386961899,), (1386961902,), (1386961904,), (1386962002,), (1386962075,), (1386962078,), (1386962080,), (1386962110,), (1386962113,), (1386962115,), (1386962773,), (1386962802,), (1386962808,), (1386962810,), (1386962912,), (1386962903,), (1386962906,), (1386962908,), (1386962967,), (1386962982,), (1386963142,), (1386963146,), (1386963196,), (1386963323,), (1386963328,), (1386963377,), (1386963461,), (1386963468,), (1386963479,), (1386963520,), (1386963521,), (1386963522,), (1386963524,), (1386963881,), (1386963886,), (1386963889,), (1386963893,), (1386963896,), (1386964068,), (1386964071,), (1386964073,), (1386964075,), (1386964094,), (1386964097,), (1386964099,), (1386964103,), (1386964130,), (1386964134,), (1386964137,), (1386964140,), (1386964144,), (1386964659,), (1386964682,), (1386964701,), (1386964703,), (1386964874,), (1386964925,), (1386964941,), (1386964950,), (1386964990,), (1386965002,), (1386965058,), (1386965061,), (1386965785,), (1386965791,), (1386965797,), (1386965802,), (1386965883,), (1386965888,), (1386965891,), (1386965902,), (1386965920,), (1386965926,), (1386965931,), (1386965964,), (1386965973,), (1386966900,), (1386965867,), (1386965873,), (1386965877,), (1386966845,), (1386966894,), (1386966897,), (1386967080,), (1386967268,), (1386967270,), (1386967273,), (1386967548,), (1386967933,), (1386967937,), (1386967941,), (1386968009,), (1386968014,), (1386968017,), (1386968018,), (1386968021,), (1386968045,), (1386968049,), (1386968647,), (1386968656,), (1386968804,), (1386968812,), (1386968844,), (1386968874,), (1386968904,), (1386968908,), (1386968911,), (1386968913,), (1386968917,), (1386968935,), (1386968937,), (1386968939,), (1386968942,), (1386969529,), (1386969532,), (1386969534,), (1386969759,), (1386969812,), (1386969844,), (1386969849,), (1386970340,), (1386970352,), (1386970354,), (1386970358,), (1386970362,), (1386970379,), (1386970451,), (1386970459,), (1386970470,), (1386970489,), (1386970491,), (1386970492,), (1386970494,), (1386970496,), (1386970512,), (1386970517,), (1386970519,), (1386970522,), (1386970526,), (1386971320,), (1386971192,), (1386971316,), (1386971709,), (1386971712,), (1386971829,), (1386971832,), (1386971923,), (1386971926,), (1386972462,), (1386972621,), (1386972645,), (1386972672,), (1386972677,), (1386972856,), (1386972857,), (1386972866,), (1386972935,), (1386972957,), (1386972960,), (1386972966,), (1386972967,), (1386972968,), (1386972996,), (1386973094,), (1386973107,), (1386973113,), (1386973132,), (1386973149,), (1386973157,), (1386973158,), (1386973160,), (1386973161,), (1386973163,), (1386973165,), (1386973167,), (1386973168,), (1386973172,), (1386973173,), (1386973185,), (1386973189,), (1386973191,), (1386973193,), (1386973543,), (1386973546,), (1386973648,), (1386973704,), (1386973709,), (1386973724,), (1386973728,), (1386973735,), (1386973755,), (1386973900,), (1386973903,), (1386973906,), (1386973966,), (1386973983,), (1386974016,), (1386974037,), (1386974077,), (1386974081,), (1386974084,), (1386974086,), (1386974089,), (1386974091,), (1386974203,), (1386974206,), (1386974209,), (1386976025,), (1386976009,), (1386976019,), (1386976339,), (1386976343,), (1386976386,), (1386976388,), (1386976432,), (1386976435,), (1386976479,), (1386976481,), (1386976502,), (1386976506,), (1386976509,), (1386977428,), (1386977344,), (1386977370,), (1386977410,), (1386977412,), (1386977424,), (1386977590,), (1386977593,), (1386977604,), (1386977868,), (1386977966,), (1386978090,), (1386978095,), (1386978104,), (1386978125,), (1386978128,), (1386978150,), (1386978152,), (1386978154,), (1386978525,), (1386978528,), (1386978532,), (1386978646,), (1386978711,), (1386978743,), (1386978754,), (1386978758,), (1386978923,), (1386978953,), (1386978957,), (1386978959,), (1386979087,), (1386979225,), (1386979226,), (1386979227,), (1386979229,), (1386979280,), (1386979289,), (1386979293,), (1386979297,), (1386979300,), (1386979302,), (1386979367,), (1386979369,), (1386979371,), (1386979373,), (1386979375,), (1386979580,), (1386979592,), (1386979598,), (1386979794,), (1386979798,), (1386979800,), (1386979803,), (1386979806,), (1386979845,), (1386980044,), (1386980607,), (1386980723,), (1386980728,), (1386980755,), (1386982809,), (1386982878,), (1386982917,), (1386982918,), (1386982919,), (1386982939,), (1386982963,), (1386983256,), (1386983257,), (1386981628,), (1386981856,), (1386981933,), (1386982578,), (1386982803,), (1386983011,), (1386983254,), (1386983393,), (1386983397,), (1386983401,), (1386983403,), (1386983415,), (1386983499,), (1386983500,), (1386983506,), (1386983511,), (1386983516,), (1386983589,), (1386983593,), (1386983597,), (1386983622,), (1386983681,), (1386983686,), (1386983688,), (1386983690,), (1386983822,), (1386983835,), (1386983867,), (1386983875,), (1386983878,), (1386983890,), (1386984087,), (1386984114,), (1386984166,), (1386984393,), (1386984398,), (1386984400,), (1386984456,), (1386984461,), (1386984730,), (1386984731,), (1386984835,), (1386984837,), (1386984866,), (1386984883,), (1386984889,), (1386984992,), (1386985012,), (1386985040,), (1386985052,), (1386985072,), (1386985095,), (1386985097,), (1386985098,), (1386985100,), (1386985122,), (1386985126,), (1386985130,), (1386985135,), (1386985140,), (1386985155,), (1386985158,), (1386985162,), (1386985367,), (1386985229,), (1386985297,), (1386985310,), (1386985328,), (1386985353,), (1386985609,), (1386985613,), (1386985645,), (1386985960,), (1386985964,), (1386985983,), (1386986102,), (1386986110,), (1386986301,), (1386986306,), (1386986348,), (1386986353,), (1386986472,), (1386986489,), (1386986518,), (1386986533,), (1386986631,), (1386986678,), (1386986689,), (1386986743,), (1386986745,), (1386986762,), (1386987384,), (1386987389,), (1386987412,), (1386987428,), (1386987437,), (1386987526,), (1386987530,), (1386987559,), (1386987634,), (1386987636,), (1386987637,), (1386987836,), (1386987851,), (1386987854,), (1386988036,), (1386988045,), (1386988050,), (1386988121,), (1386988124,), (1386996060,), (1386995771,), (1386996039,), (1386996059,), (1386996310,), (1386996325,), (1386997088,), (1386997091,), (1386997215,), (1386997233,), (1386997238,), (1386997242,), (1386997248,), (1386997253,), (1386997264,), (1386997268,), (1386997272,), (1386997276,), (1386997451,), (1386997463,), (1386997491,), (1386997497,), (1386997502,), (1386997554,), (1386997559,), (1386997560,), (1386997562,), (1386997565,), (1386997606,), (1386997610,), (1386997614,), (1386997619,), (1386997653,), (1386997663,), (1386997672,), (1386997678,), (1386997689,), (1386997696,), (1386997721,), (1386997736,), (1386997743,), (1386997757,), (1386997851,), (1386997862,), (1386997866,), (1386997892,), (1386997895,), (1386997933,), (1386997970,), (1386997982,), (1386997996,), (1386998141,), (1386998246,), (1386998270,), (1386998273,), (1386998274,), (1386998277,), (1386998383,), (1386998396,), (1386998401,), (1386998405,), (1386998409,), (1386998415,), (1386998619,), (1386998670,), (1386998661,), (1386998665,), (1386998669,), (1386998734,), (1386998765,), (1386998769,), (1386998771,), (1386998773,), (1386999138,), (1386999142,), (1386999144,), (1386999146,), (1386999148,), (1386999150,), (1386999171,), (1386999180,), (1386999182,), (1386999184,), (1386999260,), (1386999263,), (1386999265,), (1386999268,), (1386999272,), (1386999275,), (1386999305,), (1386999308,), (1386999320,), (1386999324,), (1386999398,), (1386999696,), (1386999702,), (1386999706,), (1386999709,), (1386999712,), (1386999722,), (1386999725,), (1386999728,), (1386999731,), (1386999734,), (1386999760,), (1386999763,), (1386999764,), (1386999767,), (1386999788,), (1386999791,), (1386999797,), (1386999801,), (1386999823,), (1386999826,), (1386999851,), (1386999855,), (1386999858,), (1386999861,), (1386999863,), (1386999865,), (1386999927,), (1386999929,), (1386999930,), (1386999985,), (1386999990,), (1387000001,), (1387000005,), (1387000009,), (1387000013,), (1387000036,), (1387000073,), (1387000083,), (1387000085,), (1387000133,), (1387000138,), (1387000140,), (1387000142,), (1387000147,), (1387000149,), (1387000311,), (1387000263,), (1387000273,), (1387000282,), (1387000347,), (1387000348,), (1387000350,), (1387000352,), (1387000355,), (1387000358,), (1387000367,), (1387000370,), (1387000372,), (1387000669,), (1387000705,), (1387000741,), (1387000745,), (1387000759,), (1387000763,), (1387000832,), (1387000835,), (1387000838,), (1387000841,), (1387000867,), (1387000869,), (1387000871,), (1387000875,), (1387000878,), (1387000882,), (1387000977,), (1387001031,), (1387001039,), (1387001067,), (1387001115,), (1387001119,), (1387001120,), (1387001121,), (1387001158,), (1387001160,), (1387001162,), (1387001192,), (1387001196,), (1387001198,), (1387001201,), (1387001205,), (1387001217,), (1387001220,), (1387001222,), (1387001242,), (1387001263,), (1387001364,), (1387001378,), (1387001381,), (1387001437,), (1387001456,), (1387001464,), (1387001469,), (1387001473,), (1387001476,), (1387001480,), (1387001525,), (1387001513,), (1387001516,), (1387001518,), (1387001521,), (1387001545,), (1387001559,), (1387001562,), (1387001564,), (1387001592,), (1387001597,), (1387001600,), (1387001603,), (1387001645,), (1387001651,), (1387001667,), (1387001670,), (1387001674,), (1387001681,), (1387001698,), (1387001703,), (1387001707,), (1387001711,), (1387001751,), (1387002225,), (1387002278,), (1387002288,), (1387002290,), (1387002300,), (1387002323,), (1387002375,), (1387002527,), (1387002599,), (1387002604,), (1387002631,), (1387002633,), (1387002636,), (1387002694,), (1387002707,), (1387002737,), (1387002740,), (1387002743,), (1387003117,), (1387003121,), (1387003146,), (1387003148,), (1387003151,), (1387003499,), (1387003502,), (1387003505,), (1387003509,), (1387003512,), (1387003613,), (1387003712,), (1387003715,), (1387004246,), (1387004565,), (1387004567,), (1387004569,), (1387004572,), (1387003696,), (1387003699,), (1387003703,), (1387004590,), (1387004729,), (1387004796,), (1387004850,), (1387004858,), (1387004922,), (1387004925,), (1387004928,), (1387004931,), (1387004934,), (1387004955,), (1387004976,), (1387004983,), (1387004987,), (1387004995,), (1387005020,), (1387005430,), (1387005834,), (1387005836,), (1387005838,), (1387006180,), (1387006281,), (1387006331,), (1387006559,), (1387006578,), (1387006584,), (1387006586,), (1387006589,), (1387006592,), (1387006619,), (1387006621,), (1387006630,), (1387006660,), (1387006673,), (1387006749,), (1387006796,), (1387006799,), (1387006827,), (1387006836,), (1387006837,), (1387006911,), (1387006912,), (1387006914,), (1387006916,), (1387006919,), (1387006922,), (1387006980,), (1387006986,), (1387006987,), (1387006989,), (1387006991,), (1387007051,), (1387007059,), (1387007072,), (1387007086,), (1387007095,), (1387007113,), (1387007175,), (1387007178,), (1387007219,), (1387007221,), (1387007225,), (1387007242,), (1387007257,), (1387007268,), (1387007278,), (1387007298,), (1387007300,), (1387007303,), (1387007313,), (1387007325,), (1387007329,), (1387007332,), (1387007337,), (1387007341,), (1387007343,), (1387007346,), (1387007350,), (1387007355,), (1387007363,), (1387007465,), (1387007441,), (1387007455,), (1387007638,), (1387007642,), (1387007645,), (1387007649,), (1387007653,), (1387007677,), (1387007679,), (1387007684,), (1387007687,), (1387007766,), (1387007771,), (1387007774,), (1387007777,), (1387007800,), (1387007803,), (1387007806,), (1387007809,), (1387007812,), (1387007823,), (1387007826,), (1387007828,), (1387007831,), (1387008187,), (1387008196,), (1387008211,), (1387008219,), (1387008223,), (1387008227,), (1387008312,), (1387008322,), (1387008324,), (1387008326,), (1387008329,), (1387008334,), (1387008542,), (1387008558,), (1387008562,), (1387008566,), (1387008670,), (1387008676,), (1387008694,), (1387008697,), (1387008701,), (1387008924,), (1387008952,), (1387009070,), (1387009081,), (1387009089,), (1387009111,), (1387009115,), (1387009117,), (1387009119,), (1387009122,), (1387009235,), (1387009244,), (1387009251,), (1387009302,), (1387009306,), (1387009309,), (1387009317,), (1387009354,), (1387009357,), (1387009358,), (1387009360,), (1387009364,), (1387009429,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30092025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27363066]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] map_info['map_portfolio_photo'] : {27363066: [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354, 1387009317, 1387009309, 1387009306, 1387009302, 1387009251, 1387009244, 1387009235, 1387009122, 1387009119, 1387009117, 1387009115, 1387009111, 1387009089, 1387009081, 1387009070, 1387008952, 1387008924, 1387008701, 1387008697, 1387008694, 1387008676, 1387008670, 1387008566, 1387008562, 1387008558, 1387008542, 1387008334, 1387008329, 1387008326, 1387008324, 1387008322, 1387008312, 1387008227, 1387008223, 1387008219, 1387008211, 1387008196, 1387008187, 1387007831, 1387007828, 1387007826, 1387007823, 1387007812, 1387007809, 1387007806, 1387007803, 1387007800, 1387007777, 1387007774, 1387007771, 1387007766, 1387007687, 1387007684, 1387007679, 1387007677, 1387007653, 1387007649, 1387007645, 1387007642, 1387007638, 1387007455, 1387007441]} final : True mtd_id 4302 list_pids : [1387009429, 1387009364, 1387009360, 1387009358, 1387009357, 1387009354] Looping around the photos to save general results len do output : 1 /27363066Didn'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, '3796012') ('4302', '27363066', '1387009429', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012') ('4302', None, None, None, None, None, None, None, '3796012') ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '27363066', 'None', None, None, None, None, '3796012'), ('4302', '27363066', '1387009429', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009364', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009360', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009358', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009357', None, None, None, None, None, '3796012'), ('4302', '27363066', '1387009354', None, None, None, None, None, '3796012')] time used for this insertion : 0.03647947311401367 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.096860647201538 time spend to save output : 0.03678727149963379 total time spend for step 5 : 10.133647918701172 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 (3796012) 2.02user 2.48system 0:22.74elapsed 19%CPU (0avgtext+0avgdata 157836maxresident)k 488inputs+11424outputs (9major+63874minor)pagefaults 0swaps