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 : 1790695 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 (4319012) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4319012) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997723 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4319012'] with mtr_portfolio_ids : ['29997723'] and first list_photo_ids : [] new path : /proc/1790695/ Name: python3 Umask: 0002 State: R (running) Tgid: 1790695 Ngid: 0 Pid: 1790695 PPid: 1790694 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1790695 NSpid: 1790695 NSpgid: 1787451 NSsid: 1787451 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104272 kB VmRSS: 104272 kB RssAnon: 66296 kB RssFile: 37976 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 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: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1790695', 'Ngid': '0', 'Pid': '1790695', 'PPid': '1790694', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1790695', 'NSpid': '1790695', 'NSpgid': '1787451', 'NSsid': '1787451', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104272 kB', 'VmRSS': '104272 kB', 'RssAnon': '66296 kB', 'RssFile': '37976 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 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': '103'} ('datou_batch_current', '1790695', '1113360', '0', '1113360', '872088', '104272', b'', 'marlene', '4319012') 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 (29997723) 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 (4319012 ) ) 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 (29997723) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402722520, 'portfolio_id': 29997723}, {'photo_id': 1402722519, 'portfolio_id': 29997723}, {'photo_id': 1402722518, 'portfolio_id': 29997723}, {'photo_id': 1402722506, 'portfolio_id': 29997723}, {'photo_id': 1402722503, 'portfolio_id': 29997723}, {'photo_id': 1402722501, 'portfolio_id': 29997723}, {'photo_id': 1402722500, 'portfolio_id': 29997723}, {'photo_id': 1402722499, 'portfolio_id': 29997723}, {'photo_id': 1402722467, 'portfolio_id': 29997723}, {'photo_id': 1402722464, 'portfolio_id': 29997723}, {'photo_id': 1402722462, 'portfolio_id': 29997723}, {'photo_id': 1402722461, 'portfolio_id': 29997723}, {'photo_id': 1402722450, 'portfolio_id': 29997723}, {'photo_id': 1402722448, 'portfolio_id': 29997723}, {'photo_id': 1402722447, 'portfolio_id': 29997723}, {'photo_id': 1402722446, 'portfolio_id': 29997723}, {'photo_id': 1402722420, 'portfolio_id': 29997723}, {'photo_id': 1402722418, 'portfolio_id': 29997723}, {'photo_id': 1402722417, 'portfolio_id': 29997723}, {'photo_id': 1402722416, 'portfolio_id': 29997723}, {'photo_id': 1402722395, 'portfolio_id': 29997723}, {'photo_id': 1402722391, 'portfolio_id': 29997723}, {'photo_id': 1402722390, 'portfolio_id': 29997723}, {'photo_id': 1402722388, 'portfolio_id': 29997723}, {'photo_id': 1402722387, 'portfolio_id': 29997723}, {'photo_id': 1402722366, 'portfolio_id': 29997723}, {'photo_id': 1402722362, 'portfolio_id': 29997723}, {'photo_id': 1402722361, 'portfolio_id': 29997723}, {'photo_id': 1402722359, 'portfolio_id': 29997723}, {'photo_id': 1402722356, 'portfolio_id': 29997723}, {'photo_id': 1402722189, 'portfolio_id': 29997723}, {'photo_id': 1402722172, 'portfolio_id': 29997723}, {'photo_id': 1402722162, 'portfolio_id': 29997723}, {'photo_id': 1402721550, 'portfolio_id': 29997723}, {'photo_id': 1402721544, 'portfolio_id': 29997723}, {'photo_id': 1402721542, 'portfolio_id': 29997723}, {'photo_id': 1402721233, 'portfolio_id': 29997723}, {'photo_id': 1402721198, 'portfolio_id': 29997723}, {'photo_id': 1402721160, 'portfolio_id': 29997723}, {'photo_id': 1402721125, 'portfolio_id': 29997723}, {'photo_id': 1402720800, 'portfolio_id': 29997723}, {'photo_id': 1402720766, 'portfolio_id': 29997723}, {'photo_id': 1402720736, 'portfolio_id': 29997723}, {'photo_id': 1402720734, 'portfolio_id': 29997723}, {'photo_id': 1402720732, 'portfolio_id': 29997723}, {'photo_id': 1402720709, 'portfolio_id': 29997723}, {'photo_id': 1402720387, 'portfolio_id': 29997723}, {'photo_id': 1402720295, 'portfolio_id': 29997723}, {'photo_id': 1402720210, 'portfolio_id': 29997723}, {'photo_id': 1402720157, 'portfolio_id': 29997723}, {'photo_id': 1402720156, 'portfolio_id': 29997723}, {'photo_id': 1402720119, 'portfolio_id': 29997723}, {'photo_id': 1402720089, 'portfolio_id': 29997723}, {'photo_id': 1402720058, 'portfolio_id': 29997723}, {'photo_id': 1402720028, 'portfolio_id': 29997723}, {'photo_id': 1402720009, 'portfolio_id': 29997723}, {'photo_id': 1402719983, 'portfolio_id': 29997723}, {'photo_id': 1402719949, 'portfolio_id': 29997723}, {'photo_id': 1402719914, 'portfolio_id': 29997723}, {'photo_id': 1402719878, 'portfolio_id': 29997723}, {'photo_id': 1402719876, 'portfolio_id': 29997723}, {'photo_id': 1402719521, 'portfolio_id': 29997723}, {'photo_id': 1402719440, 'portfolio_id': 29997723}, {'photo_id': 1402719386, 'portfolio_id': 29997723}, {'photo_id': 1402719342, 'portfolio_id': 29997723}] map_portfolio_id_photo_id: {29997723: [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499, 1402722467, 1402722464, 1402722462, 1402722461, 1402722450, 1402722448, 1402722447, 1402722446, 1402722420, 1402722418, 1402722417, 1402722416, 1402722395, 1402722391, 1402722390, 1402722388, 1402722387, 1402722366, 1402722362, 1402722361, 1402722359, 1402722356, 1402722189, 1402722172, 1402722162, 1402721550, 1402721544, 1402721542, 1402721233, 1402721198, 1402721160, 1402721125, 1402720800, 1402720766, 1402720736, 1402720734, 1402720732, 1402720709, 1402720387, 1402720295, 1402720210, 1402720157, 1402720156, 1402720119, 1402720089, 1402720058, 1402720028, 1402720009, 1402719983, 1402719949, 1402719914, 1402719878, 1402719876, 1402719521, 1402719440, 1402719386, 1402719342]} ##### 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.020444631576538086 #### 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 Jan 6 23:30:59 2026 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 (29997723) 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 : 29997723 get user id for portfolio 29997723 get sub ptf for main ptf 29997723, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'Carton_gris', 'metal', 'papier', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'plastique', 'flou', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29997723 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_gris','metal','papier','cartonnette','Teint_Dans_La_Masse','environnement','kraft','plastique','flou','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29997723 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_gris','metal','papier','cartonnette','Teint_Dans_La_Masse','environnement','kraft','plastique','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29997723, 'sub_port_id': 29997748, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529195, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'mal_croppe': {'main_port_id': 29997723, 'sub_port_id': 29997749, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529196, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'environnement': {'main_port_id': 29997723, 'sub_port_id': 29997750, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529197, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'flou': {'main_port_id': 29997723, 'sub_port_id': 29997751, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529198, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'Carton_gris': {'main_port_id': 29997723, 'sub_port_id': 29997752, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529199, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'kraft': {'main_port_id': 29997723, 'sub_port_id': 29997753, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529200, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'papier': {'main_port_id': 29997723, 'sub_port_id': 29997754, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529201, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'autre_refus': {'main_port_id': 29997723, 'sub_port_id': 29997755, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529202, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'Carton_brun': {'main_port_id': 29997723, 'sub_port_id': 29997756, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529203, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'cartonnette': {'main_port_id': 29997723, 'sub_port_id': 29997757, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529204, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29997723, 'sub_port_id': 29997758, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529205, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}, 'metal': {'main_port_id': 29997723, 'sub_port_id': 29997759, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529206, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29997748 , 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=29997723 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 (29997748) result : ((1402722377,), (1402722378,), (1402722386,), (1402722438,), (1402722439,), (1402722569,), (1402722570,), (1402722571,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997749 , 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=29997723 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 (29997749) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997750 , 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=29997723 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 (29997750) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997751 , 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=29997723 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 (29997751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997752 , 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=29997723 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 (29997752) result : ((1402722373,), (1402722431,), (1402722432,), (1402722478,), (1402722531,), (1402722533,), (1402722534,), (1402722556,), (1402722557,), (1402722558,), (1402722559,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997753 , 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=29997723 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 (29997753) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997754 , 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=29997723 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 (29997754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997755 , 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=29997723 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 (29997755) result : ((1402722372,), (1402722428,), (1402722429,), (1402722430,), (1402722476,), (1402722477,), (1402722552,), (1402722553,), (1402722554,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997756 , 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=29997723 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 (29997756) result : ((1402722375,), (1402722437,), (1402722481,), (1402722482,), (1402722483,), (1402722498,), (1402722542,), (1402722543,), (1402722544,), (1402722545,), (1402722546,), (1402722564,), (1402722565,), (1402722566,), (1402722567,), (1402722568,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997757 , 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=29997723 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 (29997757) result : ((1402722374,), (1402722433,), (1402722434,), (1402722479,), (1402722535,), (1402722536,), (1402722537,), (1402722538,), (1402722539,), (1402722561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997758 , 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=29997723 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 (29997758) result : ((1402722369,), (1402722384,), (1402722385,), (1402722530,), (1402722547,), (1402722548,), (1402722549,), (1402722550,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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 29997759 , 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=29997723 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 (29997759) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29997723) result : ((1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) 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 (1402720800,1402722500) 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`=29997723 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_gris','metal','papier','cartonnette','Teint_Dans_La_Masse','environnement','kraft','plastique','flou','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29997723 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','Carton_gris','metal','papier','cartonnette','Teint_Dans_La_Masse','environnement','kraft','plastique','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 29997723, 'sub_port_id': 29997778, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529225, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'mal_croppe': {'main_port_id': 29997723, 'sub_port_id': 29997779, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529226, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'environnement': {'main_port_id': 29997723, 'sub_port_id': 29997780, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529227, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'flou': {'main_port_id': 29997723, 'sub_port_id': 29997781, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529228, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'Carton_gris': {'main_port_id': 29997723, 'sub_port_id': 29997782, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529229, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'kraft': {'main_port_id': 29997723, 'sub_port_id': 29997783, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529230, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'papier': {'main_port_id': 29997723, 'sub_port_id': 29997784, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529231, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'autre_refus': {'main_port_id': 29997723, 'sub_port_id': 29997785, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529232, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'Carton_brun': {'main_port_id': 29997723, 'sub_port_id': 29997786, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529233, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'cartonnette': {'main_port_id': 29997723, 'sub_port_id': 29997787, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529234, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29997723, 'sub_port_id': 29997788, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529235, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 19, 34), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}, 'metal': {'main_port_id': 29997723, 'sub_port_id': 29997789, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529236, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 28, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 19, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997778,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997779,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997780,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997781,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997782,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997783,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29997789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29997759 lien utilise dans velours : https://marlene.fotonower.com/velours/29997778,29997779,29997780,29997781,29997782,29997783,29997784,29997785,29997786,29997787,29997788,29997789?tags=plastique,mal_croppe,environnement,flou,Carton_gris,kraft,papier,autre_refus,Carton_brun,cartonnette,Teint_Dans_La_Masse,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29997723]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] map_info['map_portfolio_photo'] : {29997723: [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499, 1402722467, 1402722464, 1402722462, 1402722461, 1402722450, 1402722448, 1402722447, 1402722446, 1402722420, 1402722418, 1402722417, 1402722416, 1402722395, 1402722391, 1402722390, 1402722388, 1402722387, 1402722366, 1402722362, 1402722361, 1402722359, 1402722356, 1402722189, 1402722172, 1402722162, 1402721550, 1402721544, 1402721542, 1402721233, 1402721198, 1402721160, 1402721125, 1402720800, 1402720766, 1402720736, 1402720734, 1402720732, 1402720709, 1402720387, 1402720295, 1402720210, 1402720157, 1402720156, 1402720119, 1402720089, 1402720058, 1402720028, 1402720009, 1402719983, 1402719949, 1402719914, 1402719878, 1402719876, 1402719521, 1402719440, 1402719386, 1402719342]} final : False mtd_id 4302 list_pids : [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] Looping around the photos to save general results len do output : 1 /29997723. 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, '4319012') ('4302', '29997723', '1402722520', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '29997723', "{'plastique': 29997748, 'mal_croppe': 29997749, 'environnement': 29997750, 'flou': 29997751, 'Carton_gris': 29997752, 'kraft': 29997753, 'papier': 29997754, 'autre_refus': 29997755, 'Carton_brun': 29997756, 'cartonnette': 29997757, 'Teint_Dans_La_Masse': 29997758, 'metal': 29997759}", None, None, None, None, '4319012'), ('4302', '29997723', '1402722520', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012')] time used for this insertion : 0.01870417594909668 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5960586071014404 time spend to save output : 0.019055604934692383 total time spend for step 1 : 0.6151142120361328 step2:final Tue Jan 6 23:30:59 2026 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 (29997723) 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 29997723 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402719521,1402720119,1402719440,1402720089,1402719386,1402720058,1402720028,1402719342,1402720009,1402719983,1402719949,1402719914,1402719878,1402719876,1402720387,1402720295,1402720210,1402720157,1402720156,1402720800,1402720766,1402720736,1402720734,1402720732,1402720709,1402721233,1402721198,1402721160,1402721125,1402721550,1402721544,1402721542,1402722189,1402722172,1402722162,1402722366,1402722362,1402722361,1402722359,1402722356,1402722395,1402722391,1402722390,1402722388,1402722387,1402722420,1402722418,1402722417,1402722416,1402722450,1402722448,1402722447,1402722446,1402722467,1402722464,1402722461,1402722462,1402722506,1402722503,1402722501,1402722500,1402722499,1402722520,1402722519,1402722518); 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([29997723]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} new output for save of step final : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] map_info['map_portfolio_photo'] : {29997723: [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499, 1402722467, 1402722464, 1402722462, 1402722461, 1402722450, 1402722448, 1402722447, 1402722446, 1402722420, 1402722418, 1402722417, 1402722416, 1402722395, 1402722391, 1402722390, 1402722388, 1402722387, 1402722366, 1402722362, 1402722361, 1402722359, 1402722356, 1402722189, 1402722172, 1402722162, 1402721550, 1402721544, 1402721542, 1402721233, 1402721198, 1402721160, 1402721125, 1402720800, 1402720766, 1402720736, 1402720734, 1402720732, 1402720709, 1402720387, 1402720295, 1402720210, 1402720157, 1402720156, 1402720119, 1402720089, 1402720058, 1402720028, 1402720009, 1402719983, 1402719949, 1402719914, 1402719878, 1402719876, 1402719521, 1402719440, 1402719386, 1402719342]} final : False mtd_id 4302 list_pids : [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] Looping around the photos to save general results len do output : 8 /1402722520.Didn't retrieve data . /1402722519.Didn't retrieve data . /1402722518.Didn't retrieve data . /1402722506.Didn't retrieve data . /1402722503.Didn't retrieve data . /1402722501.Didn't retrieve data . /1402722500.Didn't retrieve data . /1402722499.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, '4319012') ('4302', '29997723', '1402722520', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '29997723', '1402722520', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722519', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722518', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722506', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722503', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722501', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722500', '0.04702920990106966', None, None, None, None, '4319012'), ('4302', '29997723', '1402722499', '0.04702920990106966', None, None, None, None, '4319012')] time used for this insertion : 0.01851820945739746 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08408737182617188 time spend to save output : 0.019110441207885742 total time spend for step 2 : 0.10319781303405762 step3:velours_tree Tue Jan 6 23:30:59 2026 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 : {29997723: [{'plastique': 29997748, 'mal_croppe': 29997749, 'environnement': 29997750, 'flou': 29997751, 'Carton_gris': 29997752, 'kraft': 29997753, 'papier': 29997754, 'autre_refus': 29997755, 'Carton_brun': 29997756, 'cartonnette': 29997757, 'Teint_Dans_La_Masse': 29997758, 'metal': 29997759}]} input_args_next_step : {29997723: ()} output_args : {29997723: [{'plastique': 29997748, 'mal_croppe': 29997749, 'environnement': 29997750, 'flou': 29997751, 'Carton_gris': 29997752, 'kraft': 29997753, 'papier': 29997754, 'autre_refus': 29997755, 'Carton_brun': 29997756, 'cartonnette': 29997757, 'Teint_Dans_La_Masse': 29997758, 'metal': 29997759}]} args : 29997723 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 : ({'plastique': 29997748, 'mal_croppe': 29997749, 'environnement': 29997750, 'flou': 29997751, 'Carton_gris': 29997752, 'kraft': 29997753, 'papier': 29997754, 'autre_refus': 29997755, 'Carton_brun': 29997756, 'cartonnette': 29997757, 'Teint_Dans_La_Masse': 29997758, 'metal': 29997759},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29997723) 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([29997723]) 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.3191239833831787 time spend to save output : 5.650520324707031e-05 total time spend for step 3 : 0.3191804885864258 step4:send_mail_cod Tue Jan 6 23:31:00 2026 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 : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} input_args_next_step : {1402722520: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722520 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722519 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722518 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722506 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722503 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722501 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722500 depend.output_id : 0 input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ()} output_args : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',)} args : 1402722499 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 : {29997723: [{'plastique': 29997748, 'mal_croppe': 29997749, 'environnement': 29997750, 'flou': 29997751, 'Carton_gris': 29997752, 'kraft': 29997753, 'papier': 29997754, 'autre_refus': 29997755, 'Carton_brun': 29997756, 'cartonnette': 29997757, 'Teint_Dans_La_Masse': 29997758, 'metal': 29997759}]} input_args_next_step : {1402722520: ('0.04702920990106966',), 1402722519: ('0.04702920990106966',), 1402722518: ('0.04702920990106966',), 1402722506: ('0.04702920990106966',), 1402722503: ('0.04702920990106966',), 1402722501: ('0.04702920990106966',), 1402722500: ('0.04702920990106966',), 1402722499: ('0.04702920990106966',), 29997723: ()} output_args : {29997723: [{'plastique': 29997748, 'mal_croppe': 29997749, 'environnement': 29997750, 'flou': 29997751, 'Carton_gris': 29997752, 'kraft': 29997753, 'papier': 29997754, 'autre_refus': 29997755, 'Carton_brun': 29997756, 'cartonnette': 29997757, 'Teint_Dans_La_Masse': 29997758, 'metal': 29997759}]} args : 29997723 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 :9, first value : ('0.04702920990106966',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29997723) 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 (1402722520,1402722519,1402722518,1402722506,1402722503,1402722501,1402722500,1402722499) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402722499 begin to download photo : 1402722501 begin to download photo : 1402722506 begin to download photo : 1402722519 download finish for photo 1402722501 begin to download photo : 1402722503 download finish for photo 1402722519 begin to download photo : 1402722520 download finish for photo 1402722506 begin to download photo : 1402722518 download finish for photo 1402722499 begin to download photo : 1402722500 download finish for photo 1402722503 download finish for photo 1402722520 download finish for photo 1402722500 download finish for photo 1402722518 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 : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P29997723_06-01-2026_23_31_00.pdf 29997748 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=29997748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722377: '1767738185_1266714_1402721198_e450f71c010d56ec7bc4d24f5dae75ed_rle_crop_4092195784_0.png', 1402722378: '1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195808_0.png', 1402722386: '1767738206_1267830_1402720210_5ea5596fa6928a1b57bb8b28ce83cd4f_rle_crop_4092195882_0.png', 1402722438: '1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196012_0.png', 1402722439: '1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196023_0.png', 1402722569: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196810_0.png', 1402722570: '1767738566_1286173_1402719878_1f2efaf7362cdcb21fb46529a826e658_rle_crop_4092196825_0.png', 1402722571: '1767738566_1286173_1402719876_60b7d1518326c47fa03bca5d3c07ec2a_rle_crop_4092196837_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6196931a64ba1cf4108b78e5cf703a9f_90064841.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d68c6f8d5cfab48e844e4db4baf3edcd_24359514.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/62cd8a56e60eb1f0c81a77de01a6c167_11840621.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/43dc178ef29d26ca022898b1fb3ffedd_81530874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d0709cfed2a24ea373febfcb25647721_22458228.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e109940268cfcc0018edcf579841f5a7_85344473.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/53c5b370c4f6ed44283ec6f7acf1cb09_35828420.png change filename to text .imagette299977481767738660/ imagette299977481767738660/1767738566_1286173_1402719878_1f2efaf7362cdcb21fb46529a826e658_rle_crop_4092196825_0.png.png imagette299977481767738660/1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196023_0.png.png imagette299977481767738660/1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196012_0.png.png imagette299977481767738660/1767738566_1286173_1402719876_60b7d1518326c47fa03bca5d3c07ec2a_rle_crop_4092196837_0.png.png imagette299977481767738660/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196810_0.png.png imagette299977481767738660/1767738185_1266714_1402721198_e450f71c010d56ec7bc4d24f5dae75ed_rle_crop_4092195784_0.png.png imagette299977481767738660/1767738206_1267830_1402720210_5ea5596fa6928a1b57bb8b28ce83cd4f_rle_crop_4092195882_0.png.png imagette299977481767738660/1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195808_0.png.png imagette299977491767738661/ imagette299977511767738661/ imagette299977531767738661/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/988434d0e1fdb9f6b9d0533cca76ebf4_24456249.png imagette299977481767738660 29997749 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=29997749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299977491767738661 29997751 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=29997751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299977511767738661 29997753 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=29997753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299977531767738661 29997755 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=29997755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722372: '1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195802_0.png', 1402722428: '1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196010_0.png', 1402722429: '1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196024_0.png', 1402722430: '1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196033_0.png', 1402722476: '1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196245_0.png', 1402722477: '1767738426_1280223_1402722359_b211008e5a6af9ff60df167f659c8d9a_rle_crop_4092196277_0.png', 1402722552: '1767738566_1286173_1402719983_3507ad101d9081e28c8eccdba9d83d44_rle_crop_4092196774_0.png', 1402722553: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196796_0.png', 1402722554: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196804_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f08a7ed717182350f14195b2b7116b41_58158117.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9c908b717fede06a6248c60e6852dcc5_13700562.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3e9c44cb79029b25246ef128daf7e650_78447572.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3f688af5d7dbdb353212913ef11b8213_13305454.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/fdd9b91785df223d3df36b930d947995_76354881.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/61eb8bdd4d0dfdd31f6490cabf66fd0c_24910971.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/00969b098d5d723b551ceb1a5b822763_77980159.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/835f5a7f9c246aae44abfcbfeb2b284a_68348965.png change filename to text .imagette299977551767738661/ imagette299977551767738661/1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195802_0.png.png imagette299977551767738661/1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196010_0.png.png imagette299977551767738661/1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196024_0.png.png imagette299977551767738661/1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196245_0.png.png imagette299977551767738661/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196796_0.png.png imagette299977551767738661/1767738566_1286173_1402719983_3507ad101d9081e28c8eccdba9d83d44_rle_crop_4092196774_0.png.png imagette299977551767738661/1767738426_1280223_1402722359_b211008e5a6af9ff60df167f659c8d9a_rle_crop_4092196277_0.png.png imagette299977551767738661/1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196033_0.png.png imagette299977551767738661/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196804_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5eed72305141778189364d45658d4d6f_14667703.png imagette299977551767738661 29997757 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=29997757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722374: '1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195800_0.png', 1402722433: '1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196011_0.png', 1402722434: '1767738306_1273379_1402721542_2f229e4daf7a82dffdbce12ace9c05c9_rle_crop_4092196039_0.png', 1402722479: '1767738426_1280223_1402722359_b211008e5a6af9ff60df167f659c8d9a_rle_crop_4092196279_0.png', 1402722535: '1767738547_1285833_1402720766_0b30a8c2b939e0de5964fd2688cbeca2_rle_crop_4092196506_0.png', 1402722536: '1767738547_1285833_1402720736_bd5ca5ec650c2740f0446b542da261fd_rle_crop_4092196524_0.png', 1402722537: '1767738547_1285833_1402720736_bd5ca5ec650c2740f0446b542da261fd_rle_crop_4092196515_0.png', 1402722538: '1767738547_1285833_1402720734_759bb2af652f0e8606a048cbdefda88f_rle_crop_4092196530_0.png', 1402722539: '1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196561_0.png', 1402722561: '1767738566_1286173_1402720387_136d0d9ad55b73357b69c9f724033cfc_rle_crop_4092196759_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/eef10c5deb3e0fda737c53657649ac48_82236824.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3afcb3cc6a3c965125a5cae1641e606a_54973620.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ecc25882a0061a137729a99c45f3498a_78547255.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/14d9c0952666abff41fb8ab6bec306b3_78080669.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2360a8449fab378f53675f45c80ec981_65633115.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/cf1332432666bf9b24bcafa8541cccd4_52075968.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8b8d01a03ff67ac4af72a9ca3e8d55cc_76109081.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b65fd14173b8c606dde919bc9dbac0d3_87548909.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/54ea63bebc69267c4a4569c8134eb917_83292934.png change filename to text .imagette299977571767738662/ imagette299977571767738662/1767738547_1285833_1402720736_bd5ca5ec650c2740f0446b542da261fd_rle_crop_4092196524_0.png.png imagette299977571767738662/1767738547_1285833_1402720736_bd5ca5ec650c2740f0446b542da261fd_rle_crop_4092196515_0.png.png imagette299977571767738662/1767738566_1286173_1402720387_136d0d9ad55b73357b69c9f724033cfc_rle_crop_4092196759_0.png.png imagette299977571767738662/1767738426_1280223_1402722359_b211008e5a6af9ff60df167f659c8d9a_rle_crop_4092196279_0.png.png imagette299977571767738662/1767738306_1273379_1402721542_2f229e4daf7a82dffdbce12ace9c05c9_rle_crop_4092196039_0.png.png imagette299977571767738662/1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195800_0.png.png imagette299977571767738662/1767738547_1285833_1402720734_759bb2af652f0e8606a048cbdefda88f_rle_crop_4092196530_0.png.png imagette299977571767738662/1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196011_0.png.png imagette299977571767738662/1767738547_1285833_1402720766_0b30a8c2b939e0de5964fd2688cbeca2_rle_crop_4092196506_0.png.png imagette299977571767738662/1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196561_0.png.png imagette299977591767738662/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a1b851fe8a18b3b9adc02e3d22191552_93487455.png imagette299977571767738662 29997759 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=29997759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299977591767738662 29997752 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=29997752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722373: '1767738185_1266714_1402721198_e450f71c010d56ec7bc4d24f5dae75ed_rle_crop_4092195783_0.png', 1402722431: '1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196009_0.png', 1402722432: '1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196021_0.png', 1402722478: '1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196247_0.png', 1402722531: '1767738547_1285833_1402720732_fce8e52f4288b451f8945d2be7b95649_rle_crop_4092196547_0.png', 1402722533: '1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196560_0.png', 1402722534: '1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196562_0.png', 1402722556: '1767738566_1286173_1402720387_136d0d9ad55b73357b69c9f724033cfc_rle_crop_4092196761_0.png', 1402722557: '1767738566_1286173_1402720387_136d0d9ad55b73357b69c9f724033cfc_rle_crop_4092196755_0.png', 1402722558: '1767738566_1286173_1402719949_3307907e3f13c7e0ee47b9ea9c1fe73e_rle_crop_4092196782_0.png', 1402722559: '1767738566_1286173_1402719949_3307907e3f13c7e0ee47b9ea9c1fe73e_rle_crop_4092196788_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/afec7de9c93ce3dc58453f5c6bdb5960_93914632.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/40e2b3b1095855ef6a0d59334b81cab7_18393833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/467545e2c7347eb4da721704d7501943_44003377.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c4f3c443ae2d35d77127e640807719dd_72034748.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2775bea33afa61d3a8647ed53156b6db_27511035.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f5b9e64c87cf839100d21f4f26c4133c_53288095.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/35abda77653764098068f2620199f3a1_73146664.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8e8b0e73402582abc30fa3a828550559_49676516.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ceb3b4f81c51c46f7a76926e796359cf_79484301.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5cad5d3bca535dfbb7a55c1d62ea8f7f_12906352.png change filename to text .imagette299977521767738662/ imagette299977521767738662/1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196560_0.png.png imagette299977521767738662/1767738306_1273379_1402721544_e514f2395772cef7e8cbd89fd9c4b50d_rle_crop_4092196021_0.png.png imagette299977521767738662/1767738306_1273379_1402722189_392649d1bd40fdab4fff3ed219b3325a_rle_crop_4092196009_0.png.png imagette299977521767738662/1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196247_0.png.png imagette299977521767738662/1767738566_1286173_1402719949_3307907e3f13c7e0ee47b9ea9c1fe73e_rle_crop_4092196782_0.png.png imagette299977521767738662/1767738547_1285833_1402720732_fce8e52f4288b451f8945d2be7b95649_rle_crop_4092196547_0.png.png imagette299977521767738662/1767738566_1286173_1402720387_136d0d9ad55b73357b69c9f724033cfc_rle_crop_4092196761_0.png.png imagette299977521767738662/1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196562_0.png.png imagette299977521767738662/1767738566_1286173_1402720387_136d0d9ad55b73357b69c9f724033cfc_rle_crop_4092196755_0.png.png imagette299977521767738662/1767738566_1286173_1402719949_3307907e3f13c7e0ee47b9ea9c1fe73e_rle_crop_4092196788_0.png.png imagette299977521767738662/1767738185_1266714_1402721198_e450f71c010d56ec7bc4d24f5dae75ed_rle_crop_4092195783_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/63c9ac43ce56a44e18f35c5f2517fecd_51825075.png imagette299977521767738662 29997756 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=29997756 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722375: '1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195810_0.png', 1402722437: '1767738306_1273379_1402721542_2f229e4daf7a82dffdbce12ace9c05c9_rle_crop_4092196041_0.png', 1402722481: '1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196251_0.png', 1402722482: '1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196253_0.png', 1402722483: '1767738426_1280223_1402722361_f2601c306290005fc754561eb4053049_rle_crop_4092196268_0.png', 1402722498: '1767738447_1280579_1402722366_70efc14d795bea84d67d1cd273ff602f_rle_crop_4092196336_0.png', 1402722542: '1767738547_1285833_1402721233_c6792084c7197fdb2b41edd43bbeae90_rle_crop_4092196501_0.png', 1402722543: '1767738547_1285833_1402720736_bd5ca5ec650c2740f0446b542da261fd_rle_crop_4092196523_0.png', 1402722544: '1767738547_1285833_1402720734_759bb2af652f0e8606a048cbdefda88f_rle_crop_4092196534_0.png', 1402722545: '1767738547_1285833_1402720734_759bb2af652f0e8606a048cbdefda88f_rle_crop_4092196539_0.png', 1402722546: '1767738547_1285833_1402720732_fce8e52f4288b451f8945d2be7b95649_rle_crop_4092196551_0.png', 1402722564: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196801_0.png', 1402722565: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196805_0.png', 1402722566: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196798_0.png', 1402722567: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196799_0.png', 1402722568: '1767738566_1286173_1402719878_1f2efaf7362cdcb21fb46529a826e658_rle_crop_4092196819_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/687b13947b891a5a28dcddfc3791ba4d_73671908.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2b972fe04d138d02ea099738ca00c0ea_19139812.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a5fd5166ac714889d61b1a183c39b770_11709147.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/73e709777abe325c08e3c52d92ee8a99_81567809.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c7c1b527d68602f6c15daf1a8cbba2b8_10432824.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7f3e4a07b860d8d587ded98ee08ea7be_55495130.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c5779bde603e6e390e9a9693399d8030_69546137.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d2cae46aa5d21bbc91503226474deae0_52315495.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3a62407378cd115e7c0174c6d4fef66a_66635126.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/979b2aaff7443dcd0222b4c03e1e4cef_11033656.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2430fc285a7c24eff6222d04029250ab_49485111.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5afec2d7068d2acb31b9ad1077a47ae4_80721217.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a990ff6790f47040478694170bce99b2_95625267.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/679653b87426b9f04bd807b3add1bf41_67483966.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6af150ff7d52d6a53e9fb3763ee396cc_59531113.png change filename to text .imagette299977561767738663/ imagette299977561767738663/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196801_0.png.png imagette299977561767738663/1767738547_1285833_1402721233_c6792084c7197fdb2b41edd43bbeae90_rle_crop_4092196501_0.png.png imagette299977561767738663/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196798_0.png.png imagette299977561767738663/1767738426_1280223_1402722361_f2601c306290005fc754561eb4053049_rle_crop_4092196268_0.png.png imagette299977561767738663/1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196251_0.png.png imagette299977561767738663/1767738426_1280223_1402722362_984e385642f54ae873aa5e97896e5251_rle_crop_4092196253_0.png.png imagette299977561767738663/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196805_0.png.png imagette299977561767738663/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196799_0.png.png imagette299977561767738663/1767738547_1285833_1402720734_759bb2af652f0e8606a048cbdefda88f_rle_crop_4092196539_0.png.png imagette299977561767738663/1767738447_1280579_1402722366_70efc14d795bea84d67d1cd273ff602f_rle_crop_4092196336_0.png.png imagette299977561767738663/1767738547_1285833_1402720736_bd5ca5ec650c2740f0446b542da261fd_rle_crop_4092196523_0.png.png imagette299977561767738663/1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195810_0.png.png imagette299977561767738663/1767738547_1285833_1402720732_fce8e52f4288b451f8945d2be7b95649_rle_crop_4092196551_0.png.png imagette299977561767738663/1767738306_1273379_1402721542_2f229e4daf7a82dffdbce12ace9c05c9_rle_crop_4092196041_0.png.png imagette299977561767738663/1767738566_1286173_1402719878_1f2efaf7362cdcb21fb46529a826e658_rle_crop_4092196819_0.png.png imagette299977561767738663/1767738547_1285833_1402720734_759bb2af652f0e8606a048cbdefda88f_rle_crop_4092196534_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/48dbbbf59e17063074ee50aa98727fbb_28888569.png imagette299977561767738663 29997758 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=29997758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722369: '1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195807_0.png', 1402722384: '1767738206_1267830_1402720295_a883a7313e56f4f152627ce5592c9181_rle_crop_4092195878_0.png', 1402722385: '1767738206_1267830_1402720210_5ea5596fa6928a1b57bb8b28ce83cd4f_rle_crop_4092195885_0.png', 1402722530: '1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196563_0.png', 1402722547: '1767738566_1286173_1402719983_3507ad101d9081e28c8eccdba9d83d44_rle_crop_4092196777_0.png', 1402722548: '1767738566_1286173_1402719949_3307907e3f13c7e0ee47b9ea9c1fe73e_rle_crop_4092196789_0.png', 1402722549: '1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196806_0.png', 1402722550: '1767738566_1286173_1402719876_60b7d1518326c47fa03bca5d3c07ec2a_rle_crop_4092196834_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/14665470ee04c2b070b8d93c2a63234c_75045514.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8c50f4205609628c4e27266e11baec8d_4586687.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/caa7f456c3656d70ee962167a06ef2ca_43707060.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/047b4a8b77fea6d0d11134374cc12f2b_31271966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5cc46c44ed790a9c8e8fe7ac09323781_3470945.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/4e1677f09a660186f50448d7b4e5dd86_87282063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/cdda33ace753806f20688ec1334cfb4b_68081753.png change filename to text .imagette299977581767738664/ imagette299977581767738664/1767738547_1285833_1402720709_c941de3ea81d860d2edb795de6be70ce_rle_crop_4092196563_0.png.png imagette299977581767738664/1767738566_1286173_1402719949_3307907e3f13c7e0ee47b9ea9c1fe73e_rle_crop_4092196789_0.png.png imagette299977581767738664/1767738566_1286173_1402719876_60b7d1518326c47fa03bca5d3c07ec2a_rle_crop_4092196834_0.png.png imagette299977581767738664/1767738206_1267830_1402720295_a883a7313e56f4f152627ce5592c9181_rle_crop_4092195878_0.png.png imagette299977581767738664/1767738566_1286173_1402719983_3507ad101d9081e28c8eccdba9d83d44_rle_crop_4092196777_0.png.png imagette299977581767738664/1767738185_1266714_1402721125_d866c62a5569ec92ebe3d7cc0aca1add_rle_crop_4092195807_0.png.png imagette299977581767738664/1767738206_1267830_1402720210_5ea5596fa6928a1b57bb8b28ce83cd4f_rle_crop_4092195885_0.png.png imagette299977581767738664/1767738566_1286173_1402719914_2b840f972bc6caec639d9eead69fe842_rle_crop_4092196806_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5f1f2f96b7b8646bbaaab0b6034ae23a_30121120.png imagette299977581767738664 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29997723 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29997778,29997779,29997780,29997781,29997782,29997783,29997784,29997785,29997786,29997787,29997788,29997789?tags=plastique,mal_croppe,environnement,flou,Carton_gris,kraft,papier,autre_refus,Carton_brun,cartonnette,Teint_Dans_La_Masse,metal your option no_mail is active, we will not send the real mail to your client args[1402722520] : ('0.04702920990106966',) no score found for photo 1402722520 We are sending mail with results at report@fotonower.com args[1402722519] : ('0.04702920990106966',) no score found for photo 1402722519 We are sending mail with results at report@fotonower.com args[1402722518] : ('0.04702920990106966',) no score found for photo 1402722518 We are sending mail with results at report@fotonower.com args[1402722506] : ('0.04702920990106966',) no score found for photo 1402722506 We are sending mail with results at report@fotonower.com args[1402722503] : ('0.04702920990106966',) no score found for photo 1402722503 We are sending mail with results at report@fotonower.com args[1402722501] : ('0.04702920990106966',) no score found for photo 1402722501 We are sending mail with results at report@fotonower.com args[1402722500] : ('0.04702920990106966',) no score found for photo 1402722500 We are sending mail with results at report@fotonower.com args[1402722499] : ('0.04702920990106966',) no score found for photo 1402722499 We are sending mail with results at report@fotonower.com refus_total : 0.04702920990106966 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=29997723 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_P29997723_06-01-2026_23_31_00.pdf results_Auto_P29997723_06-01-2026_23_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_31_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','29997723','results_Auto_P29997723_06-01-2026_23_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_31_00.pdf','pdf','','0.26','0.04702920990106966') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29997723]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] map_info['map_portfolio_photo'] : {29997723: [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499, 1402722467, 1402722464, 1402722462, 1402722461, 1402722450, 1402722448, 1402722447, 1402722446, 1402722420, 1402722418, 1402722417, 1402722416, 1402722395, 1402722391, 1402722390, 1402722388, 1402722387, 1402722366, 1402722362, 1402722361, 1402722359, 1402722356, 1402722189, 1402722172, 1402722162, 1402721550, 1402721544, 1402721542, 1402721233, 1402721198, 1402721160, 1402721125, 1402720800, 1402720766, 1402720736, 1402720734, 1402720732, 1402720709, 1402720387, 1402720295, 1402720210, 1402720157, 1402720156, 1402720119, 1402720089, 1402720058, 1402720028, 1402720009, 1402719983, 1402719949, 1402719914, 1402719878, 1402719876, 1402719521, 1402719440, 1402719386, 1402719342]} final : False mtd_id 4302 list_pids : [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] 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, '4319012') ('4302', '29997723', '1402722520', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '29997723', '1402722520', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012')] time used for this insertion : 0.016800642013549805 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.480235815048218 time spend to save output : 0.017006397247314453 total time spend for step 4 : 6.497242212295532 step5:split_time_score Tue Jan 6 23:31:06 2026 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 : ['29997723'] 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 : [('29997723',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29997723) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402722501: {'path': 'temp/1767738660_1790695_1402722501_379f6bc6efc15d28821cd17956efbef1.jpg', 'extension': 'jpg'}, 1402722503: {'path': 'temp/1767738660_1790695_1402722503_ee74007344e186878f0bda032c43549b.jpg', 'extension': 'jpg'}, 1402722519: {'path': 'temp/1767738660_1790695_1402722519_ff55b7c552a7ccac03f1071a06a836a1.jpg', 'extension': 'jpg'}, 1402722520: {'path': 'temp/1767738660_1790695_1402722520_d6da362b1ee0240539fa8c3e38254678.jpg', 'extension': 'jpg'}, 1402722499: {'path': 'temp/1767738660_1790695_1402722499_14060f69966cd9f0ab29380ec2391fc2.jpg', 'extension': 'jpg'}, 1402722500: {'path': 'temp/1767738660_1790695_1402722500_8b3fc632c097624e03b26c8f87b7ad6d.jpg', 'extension': 'jpg'}, 1402722506: {'path': 'temp/1767738660_1790695_1402722506_f8b53f72d470638cbbf9a013c1111801.jpg', 'extension': 'jpg'}, 1402722518: {'path': 'temp/1767738660_1790695_1402722518_caea3dfa22b9d8d17033a80199de5cff.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 = 29997723; (('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 = 29997723 group by h (('23', 65),) 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=29997723 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 (29997723) 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 (29997723) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06012026 29997723 Nombre de photos uploadées : 65 / 23040 (0%) 06012026 29997723 Nombre de photos taguées (types de déchets): 0 / 65 (0%) 06012026 29997723 Nombre de photos taguées (volume) : 0 / 65 (0%) [{'photo_id': 1402719521, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3b714d9282cc65608cf91c1ebf54b50b.jpg', 'username': None, 'uploaded_at': 1767737767, 'text': 'image_06012026_23_15_04_9149.jpg'}, {'photo_id': 1402720119, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/554b9b4fd62570984cb4ba615aec8d38.jpg', 'username': None, 'uploaded_at': 1767737872, 'text': 'image_06012026_23_15_04_9149.jpg'}, {'photo_id': 1402719440, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8426115f23a1c1fee5d9299e2f494608.jpg', 'username': None, 'uploaded_at': 1767737767, 'text': 'image_06012026_23_15_14_10141.jpg'}, {'photo_id': 1402720089, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1afb30718c45750132164639ad1eec1f.jpg', 'username': None, 'uploaded_at': 1767737872, 'text': 'image_06012026_23_15_14_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 3.5762786865234375e-06 ????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017704963684082031 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29997723, '2026-01-06' ) 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 = '2026-01-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2847576,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2617824077606201 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= 2847576 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29983702, 'dashboard_result_id': 19083471, '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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29983871, 'dashboard_result_id': 19083472, '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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29984338, 'dashboard_result_id': 19083473, '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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29984604, 'dashboard_result_id': 19083474, '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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29985208, 'dashboard_result_id': 19083475, '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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29985695, 'dashboard_result_id': 19083476, '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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29986175, 'dashboard_result_id': 19083477, '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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29986341, 'dashboard_result_id': 19083478, '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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29986616, 'dashboard_result_id': 19083479, '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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29986912, 'dashboard_result_id': 19083480, '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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29987128, 'dashboard_result_id': 19083481, '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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29988197, 'dashboard_result_id': 19083482, '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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29988950, 'dashboard_result_id': 19083483, '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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29989109, 'dashboard_result_id': 19083484, '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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29989579, 'dashboard_result_id': 19083485, '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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29990042, 'dashboard_result_id': 19083486, '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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29990281, 'dashboard_result_id': 19083487, '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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29990561, 'dashboard_result_id': 19083488, '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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29990904, 'dashboard_result_id': 19083489, '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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29992020, 'dashboard_result_id': 19083490, '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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29992183, 'dashboard_result_id': 19083491, '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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29992563, 'dashboard_result_id': 19083492, '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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29993031, 'dashboard_result_id': 19083493, '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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29993483, 'dashboard_result_id': 19083494, '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_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29994356, 'dashboard_result_id': 19083495, '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_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29995259, 'dashboard_result_id': 19083496, '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_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29996022, 'dashboard_result_id': 19083497, '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_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29996868, 'dashboard_result_id': 19083498, '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_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860710, 'mtr_portfolio_id': 29997723, 'dashboard_result_id': 19083499, '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_P29997723_06-01-2026_23_26_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, '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 = 29983702 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': 4317127, 'mtr_portfolio_id': 29983702, 'created_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'result': '0.022296639149872198', 'result_long': None, 'result_double': None}] Qualite : 0.022296639149872198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983702 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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}" where mtr_portfolio_id = 29983702 and dashboard_run_id = 2860710 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`=29983702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083471, 0.022296639149872198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, '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 = 29983871 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': 4317187, 'mtr_portfolio_id': 29983871, 'created_at': datetime.datetime(2026, 1, 6, 14, 19), 'result': '0.017274851096533806', 'result_long': None, 'result_double': None}] Qualite : 0.017274851096533806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983871 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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}" where mtr_portfolio_id = 29983871 and dashboard_run_id = 2860710 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`=29983871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083472, 0.017274851096533806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, '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 = 29984338 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': 4317247, 'mtr_portfolio_id': 29984338, 'created_at': datetime.datetime(2026, 1, 6, 14, 35), 'result': '0.04421720492812946', 'result_long': None, 'result_double': None}] Qualite : 0.04421720492812946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984338 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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}" where mtr_portfolio_id = 29984338 and dashboard_run_id = 2860710 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`=29984338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083473, 0.04421720492812946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, '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 = 29984604 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': 4317301, 'mtr_portfolio_id': 29984604, 'created_at': datetime.datetime(2026, 1, 6, 14, 48, 56), 'result': '0.04795347821360475', 'result_long': None, 'result_double': None}] Qualite : 0.04795347821360475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984604 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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}" where mtr_portfolio_id = 29984604 and dashboard_run_id = 2860710 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`=29984604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083474, 0.04795347821360475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, '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 = 29985208 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': 4317391, 'mtr_portfolio_id': 29985208, 'created_at': datetime.datetime(2026, 1, 6, 15, 3), 'result': '0.06037429492965243', 'result_long': None, 'result_double': None}] Qualite : 0.06037429492965243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985208 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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}" where mtr_portfolio_id = 29985208 and dashboard_run_id = 2860710 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`=29985208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083475, 0.06037429492965243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, '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 = 29985695 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': 4317466, 'mtr_portfolio_id': 29985695, 'created_at': datetime.datetime(2026, 1, 6, 15, 18, 59), 'result': '0.030739318521380846', 'result_long': None, 'result_double': None}] Qualite : 0.030739318521380846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985695 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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}" where mtr_portfolio_id = 29985695 and dashboard_run_id = 2860710 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`=29985695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083476, 0.030739318521380846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, '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 = 29986175 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': 4317511, 'mtr_portfolio_id': 29986175, 'created_at': datetime.datetime(2026, 1, 6, 15, 32, 58), 'result': '0.02568770202023262', 'result_long': None, 'result_double': None}] Qualite : 0.02568770202023262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986175 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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}" where mtr_portfolio_id = 29986175 and dashboard_run_id = 2860710 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`=29986175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083477, 0.02568770202023262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, '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 = 29986341 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': 4317539, 'mtr_portfolio_id': 29986341, 'created_at': datetime.datetime(2026, 1, 6, 15, 49, 1), 'result': '0.026397140536285345', 'result_long': None, 'result_double': None}] Qualite : 0.026397140536285345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986341 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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}" where mtr_portfolio_id = 29986341 and dashboard_run_id = 2860710 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`=29986341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083478, 0.026397140536285345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, '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 = 29986616 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': 4317584, 'mtr_portfolio_id': 29986616, 'created_at': datetime.datetime(2026, 1, 6, 16, 2, 58), 'result': '0.04873517687602566', 'result_long': None, 'result_double': None}] Qualite : 0.04873517687602566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986616 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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}" where mtr_portfolio_id = 29986616 and dashboard_run_id = 2860710 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`=29986616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083479, 0.04873517687602566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, '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 = 29986912 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': 4317626, 'mtr_portfolio_id': 29986912, 'created_at': datetime.datetime(2026, 1, 6, 16, 20, 58), 'result': '0.03471252440187812', 'result_long': None, 'result_double': None}] Qualite : 0.03471252440187812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986912 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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}" where mtr_portfolio_id = 29986912 and dashboard_run_id = 2860710 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`=29986912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083480, 0.03471252440187812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, '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 = 29987128 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': 4317656, 'mtr_portfolio_id': 29987128, 'created_at': datetime.datetime(2026, 1, 6, 16, 38, 58), 'result': '0.029989250279964', 'result_long': None, 'result_double': None}] Qualite : 0.029989250279964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29987128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29987128 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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}" where mtr_portfolio_id = 29987128 and dashboard_run_id = 2860710 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`=29987128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083481, 0.029989250279964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, '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 = 29988197 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': 4317808, 'mtr_portfolio_id': 29988197, 'created_at': datetime.datetime(2026, 1, 6, 18, 13), 'result': '0.2352042110746693', 'result_long': None, 'result_double': None}] Qualite : 0.2352042110746693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988197 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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}" where mtr_portfolio_id = 29988197 and dashboard_run_id = 2860710 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`=29988197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083482, 0.2352042110746693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, '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 = 29988950 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': 4317940, 'mtr_portfolio_id': 29988950, 'created_at': datetime.datetime(2026, 1, 6, 18, 32, 58), 'result': '0.11963051026203138', 'result_long': None, 'result_double': None}] Qualite : 0.11963051026203138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988950 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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}" where mtr_portfolio_id = 29988950 and dashboard_run_id = 2860710 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`=29988950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083483, 0.11963051026203138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, '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 = 29989109 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': 4317977, 'mtr_portfolio_id': 29989109, 'created_at': datetime.datetime(2026, 1, 6, 18, 47, 1), 'result': '0.02513504881480487', 'result_long': None, 'result_double': None}] Qualite : 0.02513504881480487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989109 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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}" where mtr_portfolio_id = 29989109 and dashboard_run_id = 2860710 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`=29989109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083484, 0.02513504881480487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, '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 = 29989579 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': 4318051, 'mtr_portfolio_id': 29989579, 'created_at': datetime.datetime(2026, 1, 6, 19, 18, 31), 'result': '0.025601462006281817', 'result_long': None, 'result_double': None}] Qualite : 0.025601462006281817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989579 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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}" where mtr_portfolio_id = 29989579 and dashboard_run_id = 2860710 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`=29989579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083485, 0.025601462006281817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, '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 = 29990042 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': 4318092, 'mtr_portfolio_id': 29990042, 'created_at': datetime.datetime(2026, 1, 6, 19, 34, 30), 'result': '0.05281345252904674', 'result_long': None, 'result_double': None}] Qualite : 0.05281345252904674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990042 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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}" where mtr_portfolio_id = 29990042 and dashboard_run_id = 2860710 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`=29990042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083486, 0.05281345252904674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, '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 = 29990281 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': 4318126, 'mtr_portfolio_id': 29990281, 'created_at': datetime.datetime(2026, 1, 6, 19, 46, 59), 'result': '0.031446307287372216', 'result_long': None, 'result_double': None}] Qualite : 0.031446307287372216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990281 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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}" where mtr_portfolio_id = 29990281 and dashboard_run_id = 2860710 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`=29990281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083487, 0.031446307287372216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, '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 = 29990561 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': 4318162, 'mtr_portfolio_id': 29990561, 'created_at': datetime.datetime(2026, 1, 6, 20, 5), 'result': '0.11225773860733029', 'result_long': None, 'result_double': None}] Qualite : 0.11225773860733029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990561 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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}" where mtr_portfolio_id = 29990561 and dashboard_run_id = 2860710 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`=29990561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083488, 0.11225773860733029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, '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 = 29990904 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': 4318212, 'mtr_portfolio_id': 29990904, 'created_at': datetime.datetime(2026, 1, 6, 20, 17), 'result': '0.15519283692203367', 'result_long': None, 'result_double': None}] Qualite : 0.15519283692203367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990904 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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}" where mtr_portfolio_id = 29990904 and dashboard_run_id = 2860710 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`=29990904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083489, 0.15519283692203367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, '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 = 29992020 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': 4318367, 'mtr_portfolio_id': 29992020, 'created_at': datetime.datetime(2026, 1, 6, 21, 21, 13), 'result': '0.07044894118906095', 'result_long': None, 'result_double': None}] Qualite : 0.07044894118906095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992020 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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}" where mtr_portfolio_id = 29992020 and dashboard_run_id = 2860710 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`=29992020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083490, 0.07044894118906095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, '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 = 29992183 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': 4318380, 'mtr_portfolio_id': 29992183, 'created_at': datetime.datetime(2026, 1, 6, 21, 35), 'result': '0.07215581131758142', 'result_long': None, 'result_double': None}] Qualite : 0.07215581131758142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992183 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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}" where mtr_portfolio_id = 29992183 and dashboard_run_id = 2860710 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`=29992183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083491, 0.07215581131758142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, '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 = 29992563 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': 4318420, 'mtr_portfolio_id': 29992563, 'created_at': datetime.datetime(2026, 1, 6, 21, 49), 'result': '0.040228862385956514', 'result_long': None, 'result_double': None}] Qualite : 0.040228862385956514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992563 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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}" where mtr_portfolio_id = 29992563 and dashboard_run_id = 2860710 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`=29992563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083492, 0.040228862385956514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, '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 = 29993031 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': 4318477, 'mtr_portfolio_id': 29993031, 'created_at': datetime.datetime(2026, 1, 6, 22, 2, 59), 'result': '0.05395314798042522', 'result_long': None, 'result_double': None}] Qualite : 0.05395314798042522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993031 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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}" where mtr_portfolio_id = 29993031 and dashboard_run_id = 2860710 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`=29993031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083493, 0.05395314798042522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, '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 = 29993483 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': 4318586, 'mtr_portfolio_id': 29993483, 'created_at': datetime.datetime(2026, 1, 6, 22, 16, 59), 'result': '0.04906287081713248', 'result_long': None, 'result_double': None}] Qualite : 0.04906287081713248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993483 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_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}" where mtr_portfolio_id = 29993483 and dashboard_run_id = 2860710 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`=29993483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083494, 0.04906287081713248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, '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 = 29994356 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': 4318668, 'mtr_portfolio_id': 29994356, 'created_at': datetime.datetime(2026, 1, 6, 22, 32, 59), 'result': '0.06192785817322462', 'result_long': None, 'result_double': None}] Qualite : 0.06192785817322462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29994356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29994356 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_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}" where mtr_portfolio_id = 29994356 and dashboard_run_id = 2860710 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`=29994356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083495, 0.06192785817322462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, '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 = 29995259 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': 4318750, 'mtr_portfolio_id': 29995259, 'created_at': datetime.datetime(2026, 1, 6, 22, 47), 'result': '0.04972142154858078', 'result_long': None, 'result_double': None}] Qualite : 0.04972142154858078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29995259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29995259 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_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}" where mtr_portfolio_id = 29995259 and dashboard_run_id = 2860710 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`=29995259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083496, 0.04972142154858078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, '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 = 29996022 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': 4318844, 'mtr_portfolio_id': 29996022, 'created_at': datetime.datetime(2026, 1, 6, 23, 2, 58), 'result': '0.0635783938331082', 'result_long': None, 'result_double': None}] Qualite : 0.0635783938331082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996022 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_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}" where mtr_portfolio_id = 29996022 and dashboard_run_id = 2860714 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`=29996022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083497, 0.0635783938331082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, '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 = 29996868 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': 4318942, 'mtr_portfolio_id': 29996868, 'created_at': datetime.datetime(2026, 1, 6, 23, 18, 56), 'result': '0.06693331572094002', 'result_long': None, 'result_double': None}] Qualite : 0.06693331572094002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996868 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_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}" where mtr_portfolio_id = 29996868 and dashboard_run_id = 2860714 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`=29996868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083498, 0.06693331572094002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, '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 = 29997723 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': 4319012, 'mtr_portfolio_id': 29997723, 'created_at': datetime.datetime(2026, 1, 6, 23, 30, 59), 'result': '0.04702920990106966', 'result_long': None, 'result_double': None}] Qualite : 0.04702920990106966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29997723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29997723 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_P29997723_06-01-2026_23_31_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, 'pht': 3726}}" where mtr_portfolio_id = 29997723 and dashboard_run_id = 2860714 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`=29997723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083499, 0.04702920990106966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_31_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, '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 (29983702,29983871,29984338,29984604,29985208,29985695,29986175,29986341,29986616,29986912,29987128,29988197,29988950,29989109,29989579,29990042,29990281,29990561,29990904,29992020,29992183,29992563,29993031,29993483,29994356,29995259,29996022,29996868,29997723) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,), (1402655652,), (1402655715,), (1402656130,), (1402656154,), (1402656188,), (1402656225,), (1402656257,), (1402656355,), (1402657555,), (1402657557,), (1402658485,), (1402658620,), (1402658691,), (1402658746,), (1402658742,), (1402658744,), (1402658766,), (1402658768,), (1402658788,), (1402658790,), (1402658791,), (1402658808,), (1402658810,), (1402658835,), (1402658836,), (1402658837,), (1402658838,), (1402658841,), (1402658855,), (1402658856,), (1402658883,), (1402658884,), (1402658885,), (1402658887,), (1402658890,), (1402658909,), (1402658912,), (1402658915,), (1402658919,), (1402658924,), (1402658931,), (1402658950,), (1402658951,), (1402658953,), (1402658954,), (1402658969,), (1402658970,), (1402658971,), (1402658972,), (1402658977,), (1402658979,), (1402659005,), (1402659006,), (1402659008,), (1402659009,), (1402659013,), (1402659026,), (1402659027,), (1402659028,), (1402659029,), (1402659057,), (1402659068,), (1402659070,), (1402659071,), (1402659073,), (1402659095,), (1402659141,), (1402659091,), (1402659092,), (1402659094,), (1402659116,), (1402659119,), (1402659120,), (1402659124,), (1402659126,), (1402659129,), (1402659138,), (1402659139,), (1402659142,), (1402659143,), (1402659144,), (1402659148,), (1402659151,), (1402659202,), (1402659203,), (1402659204,), (1402659206,), (1402659219,), (1402659220,), (1402659222,), (1402659224,), (1402659228,), (1402659230,), (1402659249,), (1402659253,), (1402659254,), (1402659256,), (1402659277,), (1402659278,), (1402659279,), (1402659285,), (1402659291,), (1402659308,), (1402659402,), (1402659403,), (1402659404,), (1402659408,), (1402659413,), (1402659422,), (1402659459,), (1402659460,), (1402659461,), (1402659505,), (1402659506,), (1402659507,), (1402659509,), (1402659512,), (1402659515,), (1402659525,), (1402659526,), (1402659528,), (1402659530,), (1402659556,), (1402659557,), (1402659558,), (1402659561,), (1402659564,), (1402659565,), (1402659572,), (1402659574,), (1402659575,), (1402659576,), (1402659577,), (1402659677,), (1402659700,), (1402659781,), (1402659784,), (1402659921,), (1402660263,), (1402660284,), (1402660314,), (1402660552,), (1402660553,), (1402660577,), (1402660578,), (1402660580,), (1402660584,), (1402660729,), (1402660782,), (1402660785,), (1402660788,), (1402661137,), (1402661073,), (1402661105,), (1402661853,), (1402662604,), (1402662642,), (1402662777,), (1402662837,), (1402662889,), (1402662910,), (1402662984,), (1402663040,), (1402663042,), (1402663056,), (1402663069,), (1402663090,), (1402663091,), (1402663103,), (1402663118,), (1402663120,), (1402663158,), (1402663198,), (1402663230,), (1402663250,), (1402663276,), (1402663277,), (1402663312,), (1402663314,), (1402663329,), (1402663379,), (1402663457,), (1402663586,), (1402663621,), (1402663641,), (1402663682,), (1402663761,), (1402663759,), (1402663925,), (1402663933,), (1402664100,), (1402664202,), (1402664324,), (1402664328,), (1402664347,), (1402664381,), (1402664547,), (1402664596,), (1402664604,), (1402664605,), (1402664618,), (1402664619,), (1402665095,), (1402665551,), (1402665397,), (1402665694,), (1402666145,), (1402666164,), (1402666183,), (1402666184,), (1402666268,), (1402666278,), (1402666348,), (1402666350,), (1402666368,), (1402666604,), (1402671093,), (1402671095,), (1402671097,), (1402671254,), (1402671278,), (1402671626,), (1402671627,), (1402671795,), (1402673627,), (1402673736,), (1402673893,), (1402673930,), (1402673952,), (1402673978,), (1402673980,), (1402673992,), (1402674005,), (1402674020,), (1402674113,), (1402674114,), (1402674126,), (1402674160,), (1402674235,), (1402674236,), (1402674737,), (1402674910,), (1402677429,), (1402677764,), (1402679554,), (1402679589,), (1402679870,), (1402679892,), (1402679901,), (1402679934,), (1402680157,), (1402680437,), (1402680676,), (1402680689,), (1402680690,), (1402680770,), (1402680784,), (1402680797,), (1402680892,), (1402680894,), (1402680953,), (1402681012,), (1402681058,), (1402681070,), (1402681071,), (1402681082,), (1402681148,), (1402681242,), (1402681243,), (1402681411,), (1402681430,), (1402681605,), (1402681805,), (1402681806,), (1402681864,), (1402681866,), (1402681868,), (1402681877,), (1402682360,), (1402683739,), (1402683783,), (1402683821,), (1402683823,), (1402683837,), (1402683862,), (1402683932,), (1402683975,), (1402684206,), (1402684207,), (1402684480,), (1402686027,), (1402689280,), (1402689282,), (1402689284,), (1402689286,), (1402689322,), (1402689323,), (1402689975,), (1402689988,), (1402689989,), (1402690405,), (1402690435,), (1402690441,), (1402690450,), (1402690486,), (1402690487,), (1402690501,), (1402690502,), (1402690503,), (1402690504,), (1402690507,), (1402690534,), (1402690536,), (1402690538,), (1402690550,), (1402690552,), (1402690554,), (1402690556,), (1402690559,), (1402690574,), (1402690575,), (1402690577,), (1402690578,), (1402690582,), (1402690594,), (1402690596,), (1402690616,), (1402690617,), (1402690635,), (1402690637,), (1402690639,), (1402690643,), (1402690647,), (1402690651,), (1402690674,), (1402690677,), (1402690679,), (1402690696,), (1402690722,), (1402690694,), (1402690695,), (1402690718,), (1402690719,), (1402690720,), (1402690797,), (1402690798,), (1402690812,), (1402690814,), (1402690835,), (1402690837,), (1402690839,), (1402690841,), (1402690844,), (1402690861,), (1402690863,), (1402690865,), (1402690866,), (1402690868,), (1402690891,), (1402690896,), (1402690908,), (1402690910,), (1402690912,), (1402690913,), (1402690915,), (1402690917,), (1402690938,), (1402690940,), (1402690941,), (1402690943,), (1402690946,), (1402690961,), (1402690989,), (1402691060,), (1402691061,), (1402691062,), (1402691533,), (1402691501,), (1402691526,), (1402691528,), (1402691529,), (1402691531,), (1402691542,), (1402691544,), (1402691546,), (1402691569,), (1402691575,), (1402691580,), (1402691594,), (1402691596,), (1402691599,), (1402691602,), (1402691606,), (1402691608,), (1402691618,), (1402691620,), (1402691622,), (1402691625,), (1402691628,), (1402691655,), (1402691686,), (1402691718,), (1402691750,), (1402691993,), (1402691994,), (1402691995,), (1402691998,), (1402692001,), (1402692003,), (1402692012,), (1402692013,), (1402692015,), (1402692017,), (1402692051,), (1402692052,), (1402692053,), (1402692055,), (1402692059,), (1402692083,), (1402692085,), (1402692087,), (1402692115,), (1402692116,), (1402692118,), (1402692131,), (1402692212,), (1402692213,), (1402692215,), (1402692218,), (1402692222,), (1402692246,), (1402692248,), (1402692250,), (1402692253,), (1402692412,), (1402692446,), (1402692479,), (1402692513,), (1402692652,), (1402692685,), (1402692720,), (1402692754,), (1402693010,), (1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,), (1402699281,), (1402699283,), (1402699287,), (1402699290,), (1402699293,), (1402699311,), (1402699312,), (1402699313,), (1402699314,), (1402699317,), (1402699396,), (1402699365,), (1402699902,), (1402699935,), (1402699968,), (1402699995,), (1402700174,), (1402700186,), (1402700203,), (1402700210,), (1402700244,), (1402700362,), (1402700832,), (1402700910,), (1402700965,), (1402700967,), (1402700970,), (1402701041,), (1402701042,), (1402701057,), (1402701058,), (1402701059,), (1402701063,), (1402701082,), (1402701083,), (1402701084,), (1402701085,), (1402701088,), (1402701091,), (1402701098,), (1402701099,), (1402701100,), (1402701101,), (1402701117,), (1402701164,), (1402701253,), (1402701343,), (1402701449,), (1402702001,), (1402702034,), (1402702107,), (1402702145,), (1402702182,), (1402702362,), (1402702396,), (1402702457,), (1402702598,), (1402702600,), (1402702603,), (1402702608,), (1402702612,), (1402703110,), (1402703217,), (1402703249,), (1402703285,), (1402703318,), (1402703356,), (1402703652,), (1402703653,), (1402703667,), (1402703779,), (1402703781,), (1402703798,), (1402703828,), (1402704239,), (1402704214,), (1402704233,), (1402704234,), (1402704235,), (1402704440,), (1402704454,), (1402704461,), (1402704493,), (1402704509,), (1402704510,), (1402704512,), (1402704513,), (1402704516,), (1402704517,), (1402704542,), (1402704543,), (1402704571,), (1402704572,), (1402704574,), (1402704575,), (1402705413,), (1402705414,), (1402705416,), (1402705418,), (1402705422,), (1402706007,), (1402706044,), (1402706114,), (1402706137,), (1402706632,), (1402706686,), (1402706717,), (1402706866,), (1402706878,), (1402706882,), (1402706886,), (1402706906,), (1402706923,), (1402706924,), (1402706925,), (1402706927,), (1402706931,), (1402706940,), (1402706941,), (1402707089,), (1402707126,), (1402707160,), (1402707196,), (1402707230,), (1402707372,), (1402707389,), (1402707419,), (1402707428,), (1402707473,), (1402707474,), (1402707475,), (1402707477,), (1402707481,), (1402707607,), (1402707644,), (1402707675,), (1402707706,), (1402707756,), (1402708762,), (1402708754,), (1402708761,), (1402709041,), (1402709050,), (1402709059,), (1402709061,), (1402709065,), (1402709174,), (1402709270,), (1402709365,), (1402709464,), (1402709547,), (1402709764,), (1402709790,), (1402709792,), (1402709796,), (1402709821,), (1402709822,), (1402709823,), (1402709856,), (1402709857,), (1402709858,), (1402709860,), (1402709877,), (1402709878,), (1402709901,), (1402709902,), (1402709903,), (1402709970,), (1402709999,), (1402710060,), (1402710063,), (1402710066,), (1402710892,), (1402710895,), (1402710900,), (1402710903,), (1402710963,), (1402711012,), (1402711154,), (1402711157,), (1402711159,), (1402711162,), (1402711166,), (1402711169,), (1402711182,), (1402711184,), (1402711186,), (1402712322,), (1402712327,), (1402712332,), (1402712335,), (1402712530,), (1402712564,), (1402712597,), (1402712697,), (1402712733,), (1402713045,), (1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,), (1402718572,), (1402718673,), (1402718758,), (1402719557,), (1402720130,), (1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06012026': {'nb_upload': 65, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29997723]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] map_info['map_portfolio_photo'] : {29997723: [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499, 1402722467, 1402722464, 1402722462, 1402722461, 1402722450, 1402722448, 1402722447, 1402722446, 1402722420, 1402722418, 1402722417, 1402722416, 1402722395, 1402722391, 1402722390, 1402722388, 1402722387, 1402722366, 1402722362, 1402722361, 1402722359, 1402722356, 1402722189, 1402722172, 1402722162, 1402721550, 1402721544, 1402721542, 1402721233, 1402721198, 1402721160, 1402721125, 1402720800, 1402720766, 1402720736, 1402720734, 1402720732, 1402720709, 1402720387, 1402720295, 1402720210, 1402720157, 1402720156, 1402720119, 1402720089, 1402720058, 1402720028, 1402720009, 1402719983, 1402719949, 1402719914, 1402719878, 1402719876, 1402719521, 1402719440, 1402719386, 1402719342]} final : True mtd_id 4302 list_pids : [1402722520, 1402722519, 1402722518, 1402722506, 1402722503, 1402722501, 1402722500, 1402722499] Looping around the photos to save general results len do output : 1 /29997723Didn'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, '4319012') ('4302', '29997723', '1402722520', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012') ('4302', None, None, None, None, None, None, None, '4319012') ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '29997723', 'None', None, None, None, None, '4319012'), ('4302', '29997723', '1402722520', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722519', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722518', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722506', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722503', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722501', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722500', None, None, None, None, None, '4319012'), ('4302', '29997723', '1402722499', None, None, None, None, None, '4319012')] time used for this insertion : 0.018231630325317383 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.453765630722046 time spend to save output : 0.018659591674804688 total time spend for step 5 : 2.4724252223968506 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 (4319012) 2.63user 2.32system 0:14.71elapsed 33%CPU (0avgtext+0avgdata 165856maxresident)k 8792inputs+14272outputs (133major+81017minor)pagefaults 0swaps