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 : 2546188 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 (4035573) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4035573) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446272 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4035573'] with mtr_portfolio_ids : ['28446272'] and first list_photo_ids : [] new path : /proc/2546188/ Name: python3 Umask: 0002 State: R (running) Tgid: 2546188 Ngid: 0 Pid: 2546188 PPid: 2546187 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2546188 NSpid: 2546188 NSpgid: 2544750 NSsid: 2544750 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97428 kB VmRSS: 97428 kB RssAnon: 59896 kB RssFile: 37532 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 44 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2546188', 'Ngid': '0', 'Pid': '2546188', 'PPid': '2546187', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2546188', 'NSpid': '2546188', 'NSpgid': '2544750', 'NSsid': '2544750', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97428 kB', 'VmRSS': '97428 kB', 'RssAnon': '59896 kB', 'RssFile': '37532 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '44', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '2546188', '1106908', '0', '1106884', '865636', '97428', b'', 'marlene', '4035573') 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 (28446272) 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 (4035573 ) ) 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 (28446272) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1394014785, 'portfolio_id': 28446272}, {'photo_id': 1394014329, 'portfolio_id': 28446272}, {'photo_id': 1394014324, 'portfolio_id': 28446272}, {'photo_id': 1394014319, 'portfolio_id': 28446272}, {'photo_id': 1394014313, 'portfolio_id': 28446272}, {'photo_id': 1394014307, 'portfolio_id': 28446272}, {'photo_id': 1394014087, 'portfolio_id': 28446272}, {'photo_id': 1394014085, 'portfolio_id': 28446272}, {'photo_id': 1394014084, 'portfolio_id': 28446272}, {'photo_id': 1394014083, 'portfolio_id': 28446272}, {'photo_id': 1394014054, 'portfolio_id': 28446272}, {'photo_id': 1394014049, 'portfolio_id': 28446272}, {'photo_id': 1394014043, 'portfolio_id': 28446272}, {'photo_id': 1394014039, 'portfolio_id': 28446272}, {'photo_id': 1394014036, 'portfolio_id': 28446272}, {'photo_id': 1394014033, 'portfolio_id': 28446272}, {'photo_id': 1394014013, 'portfolio_id': 28446272}, {'photo_id': 1394014010, 'portfolio_id': 28446272}, {'photo_id': 1394014008, 'portfolio_id': 28446272}, {'photo_id': 1394013980, 'portfolio_id': 28446272}, {'photo_id': 1394013977, 'portfolio_id': 28446272}, {'photo_id': 1394013972, 'portfolio_id': 28446272}, {'photo_id': 1394013966, 'portfolio_id': 28446272}, {'photo_id': 1394013961, 'portfolio_id': 28446272}, {'photo_id': 1394013959, 'portfolio_id': 28446272}, {'photo_id': 1394013937, 'portfolio_id': 28446272}, {'photo_id': 1394013933, 'portfolio_id': 28446272}, {'photo_id': 1394013931, 'portfolio_id': 28446272}, {'photo_id': 1394013930, 'portfolio_id': 28446272}, {'photo_id': 1394013928, 'portfolio_id': 28446272}, {'photo_id': 1394013903, 'portfolio_id': 28446272}, {'photo_id': 1394013899, 'portfolio_id': 28446272}, {'photo_id': 1394013895, 'portfolio_id': 28446272}, {'photo_id': 1394013893, 'portfolio_id': 28446272}, {'photo_id': 1394013891, 'portfolio_id': 28446272}, {'photo_id': 1394013888, 'portfolio_id': 28446272}, {'photo_id': 1394013549, 'portfolio_id': 28446272}, {'photo_id': 1394013545, 'portfolio_id': 28446272}, {'photo_id': 1394013542, 'portfolio_id': 28446272}, {'photo_id': 1394013540, 'portfolio_id': 28446272}, {'photo_id': 1394013538, 'portfolio_id': 28446272}, {'photo_id': 1394013516, 'portfolio_id': 28446272}, {'photo_id': 1394013512, 'portfolio_id': 28446272}, {'photo_id': 1394013507, 'portfolio_id': 28446272}, {'photo_id': 1394013503, 'portfolio_id': 28446272}, {'photo_id': 1394013500, 'portfolio_id': 28446272}, {'photo_id': 1394013496, 'portfolio_id': 28446272}, {'photo_id': 1394013472, 'portfolio_id': 28446272}, {'photo_id': 1394013470, 'portfolio_id': 28446272}, {'photo_id': 1394013467, 'portfolio_id': 28446272}, {'photo_id': 1394013465, 'portfolio_id': 28446272}, {'photo_id': 1394013463, 'portfolio_id': 28446272}, {'photo_id': 1394013400, 'portfolio_id': 28446272}, {'photo_id': 1394013397, 'portfolio_id': 28446272}, {'photo_id': 1394013395, 'portfolio_id': 28446272}, {'photo_id': 1394013393, 'portfolio_id': 28446272}, {'photo_id': 1394013390, 'portfolio_id': 28446272}, {'photo_id': 1394013353, 'portfolio_id': 28446272}, {'photo_id': 1394013352, 'portfolio_id': 28446272}, {'photo_id': 1394013350, 'portfolio_id': 28446272}, {'photo_id': 1394013240, 'portfolio_id': 28446272}, {'photo_id': 1394013238, 'portfolio_id': 28446272}, {'photo_id': 1394013221, 'portfolio_id': 28446272}] map_portfolio_id_photo_id: {28446272: [1394014785, 1394014329, 1394014324, 1394014319, 1394014313, 1394014307, 1394014087, 1394014085, 1394014084, 1394014083, 1394014054, 1394014049, 1394014043, 1394014039, 1394014036, 1394014033, 1394014013, 1394014010, 1394014008, 1394013980, 1394013977, 1394013972, 1394013966, 1394013961, 1394013959, 1394013937, 1394013933, 1394013931, 1394013930, 1394013928, 1394013903, 1394013899, 1394013895, 1394013893, 1394013891, 1394013888, 1394013549, 1394013545, 1394013542, 1394013540, 1394013538, 1394013516, 1394013512, 1394013507, 1394013503, 1394013500, 1394013496, 1394013472, 1394013470, 1394013467, 1394013465, 1394013463, 1394013400, 1394013397, 1394013395, 1394013393, 1394013390, 1394013353, 1394013352, 1394013350, 1394013240, 1394013238, 1394013221]} ##### 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.019952774047851562 #### 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 Wed Nov 12 10:02:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28446272) 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 : 28446272 get user id for portfolio 28446272 get sub ptf for main ptf 28446272, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'cartonnette', 'autre_refus', 'environnement', 'papier', 'Carton_brun', 'mal_croppe', 'metal', 'plastique', 'kraft', 'Carton_gris'] 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`=28446272 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','cartonnette','autre_refus','environnement','papier','Carton_brun','mal_croppe','metal','plastique','kraft','Carton_gris')) 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`=28446272 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','cartonnette','autre_refus','environnement','papier','Carton_brun','mal_croppe','metal','plastique','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28446272, 'sub_port_id': 28446293, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266298, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'environnement': {'main_port_id': 28446272, 'sub_port_id': 28446294, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266299, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'Carton_gris': {'main_port_id': 28446272, 'sub_port_id': 28446295, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266300, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'metal': {'main_port_id': 28446272, 'sub_port_id': 28446296, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266301, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'cartonnette': {'main_port_id': 28446272, 'sub_port_id': 28446297, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266302, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'mal_croppe': {'main_port_id': 28446272, 'sub_port_id': 28446298, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266303, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'plastique': {'main_port_id': 28446272, 'sub_port_id': 28446299, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266304, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'kraft': {'main_port_id': 28446272, 'sub_port_id': 28446300, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266305, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'autre_refus': {'main_port_id': 28446272, 'sub_port_id': 28446301, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266306, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'Carton_brun': {'main_port_id': 28446272, 'sub_port_id': 28446302, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266307, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28446272, 'sub_port_id': 28446303, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266308, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}, 'papier': {'main_port_id': 28446272, 'sub_port_id': 28446304, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266309, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28446293 , 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=28446272 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 (28446293) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446294 , 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=28446272 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 (28446294) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446295 , 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=28446272 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 (28446295) result : ((1394013445,), (1394013458,), (1394013459,), (1394013460,), (1394013522,), (1394013908,), (1394013917,), (1394013999,), (1394014063,), (1394014064,), (1394015073,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446296 , 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=28446272 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 (28446296) result : ((1394013526,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446297 , 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=28446272 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 (28446297) result : ((1394013363,), (1394013446,), (1394013448,), (1394013525,), (1394013910,), (1394013911,), (1394013912,), (1394014067,), (1394014068,), (1394014070,), (1394014270,), (1394014271,), (1394015092,), (1394015094,), (1394015096,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446298 , 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=28446272 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 (28446298) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446299 , 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=28446272 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 (28446299) result : ((1394013366,), (1394013367,), (1394014002,), (1394014072,), (1394014276,), (1394015137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446300 , 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=28446272 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 (28446300) result : ((1394013453,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446301 , 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=28446272 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 (28446301) result : ((1394013443,), (1394013907,), (1394013998,), (1394014061,), (1394014229,), (1394014269,), (1394015059,), (1394015061,), (1394015063,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446302 , 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=28446272 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 (28446302) result : ((1394013450,), (1394013451,), (1394013452,), (1394013461,), (1394013913,), (1394014071,), (1394014272,), (1394014273,), (1394014274,), (1394014275,), (1394015117,), (1394015119,), (1394015121,), (1394015123,), (1394015125,), (1394015127,), (1394015129,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446303 , 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=28446272 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 (28446303) result : ((1394013361,), (1394013362,), (1394013441,), (1394013442,), (1394013520,), (1394013521,), (1394013906,), (1394014060,), (1394014267,), (1394015032,), (1394015035,), (1394015038,), (1394015041,), (1394015044,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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 28446304 , 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=28446272 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 (28446304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28446272) result : ((1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) 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 (1394013500,1394013400) 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`=28446272 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','cartonnette','autre_refus','environnement','papier','Carton_brun','mal_croppe','metal','plastique','kraft','Carton_gris')) 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`=28446272 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','cartonnette','autre_refus','environnement','papier','Carton_brun','mal_croppe','metal','plastique','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28446272, 'sub_port_id': 28446305, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266310, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'environnement': {'main_port_id': 28446272, 'sub_port_id': 28446306, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266311, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'Carton_gris': {'main_port_id': 28446272, 'sub_port_id': 28446307, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266312, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'metal': {'main_port_id': 28446272, 'sub_port_id': 28446308, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266313, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'cartonnette': {'main_port_id': 28446272, 'sub_port_id': 28446309, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266314, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'mal_croppe': {'main_port_id': 28446272, 'sub_port_id': 28446310, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266315, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'plastique': {'main_port_id': 28446272, 'sub_port_id': 28446311, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266316, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'kraft': {'main_port_id': 28446272, 'sub_port_id': 28446312, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266317, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'autre_refus': {'main_port_id': 28446272, 'sub_port_id': 28446313, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266318, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'Carton_brun': {'main_port_id': 28446272, 'sub_port_id': 28446314, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266319, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 28446272, 'sub_port_id': 28446315, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266320, 'last_updated_at': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 9, 47, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}, 'papier': {'main_port_id': 28446272, 'sub_port_id': 28446316, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19266321, 'last_updated_at': datetime.datetime(2025, 11, 12, 10, 1, 3), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 10, 1, 3), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 9, 47, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446305,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446293 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446306,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446294 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28446316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28446304 lien utilise dans velours : https://marlene.fotonower.com/velours/28446305,28446306,28446307,28446308,28446309,28446310,28446311,28446312,28446313,28446314,28446315,28446316?tags=flou,environnement,Carton_gris,metal,cartonnette,mal_croppe,plastique,kraft,autre_refus,Carton_brun,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28446272]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1394014785] map_info['map_portfolio_photo'] : {28446272: [1394014785, 1394014329, 1394014324, 1394014319, 1394014313, 1394014307, 1394014087, 1394014085, 1394014084, 1394014083, 1394014054, 1394014049, 1394014043, 1394014039, 1394014036, 1394014033, 1394014013, 1394014010, 1394014008, 1394013980, 1394013977, 1394013972, 1394013966, 1394013961, 1394013959, 1394013937, 1394013933, 1394013931, 1394013930, 1394013928, 1394013903, 1394013899, 1394013895, 1394013893, 1394013891, 1394013888, 1394013549, 1394013545, 1394013542, 1394013540, 1394013538, 1394013516, 1394013512, 1394013507, 1394013503, 1394013500, 1394013496, 1394013472, 1394013470, 1394013467, 1394013465, 1394013463, 1394013400, 1394013397, 1394013395, 1394013393, 1394013390, 1394013353, 1394013352, 1394013350, 1394013240, 1394013238, 1394013221]} final : False mtd_id 4302 list_pids : [1394014785] Looping around the photos to save general results len do output : 1 /28446272. 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, '4035573') ('4302', '28446272', '1394014785', None, None, None, None, None, '4035573') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28446272', "{'flou': 28446293, 'environnement': 28446294, 'Carton_gris': 28446295, 'metal': 28446296, 'cartonnette': 28446297, 'mal_croppe': 28446298, 'plastique': 28446299, 'kraft': 28446300, 'autre_refus': 28446301, 'Carton_brun': 28446302, 'Teint_Dans_La_Masse': 28446303, 'papier': 28446304}", None, None, None, None, '4035573'), ('4302', '28446272', '1394014785', None, None, None, None, None, '4035573')] time used for this insertion : 0.012493133544921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5205018520355225 time spend to save output : 0.012694835662841797 total time spend for step 1 : 0.5331966876983643 step2:final Wed Nov 12 10:02:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28446272) 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 28446272 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1394013240,1394013238,1394013221,1394013353,1394013352,1394013350,1394013400,1394013397,1394013395,1394013393,1394013390,1394013472,1394013470,1394013467,1394013465,1394013463,1394013516,1394013512,1394013507,1394013503,1394013500,1394013496,1394013549,1394013545,1394013542,1394013540,1394013538,1394013903,1394013899,1394013895,1394013893,1394013891,1394013888,1394013937,1394013933,1394013931,1394013930,1394013928,1394013980,1394013977,1394013972,1394013966,1394013961,1394013959,1394014013,1394014010,1394014008,1394014054,1394014049,1394014043,1394014039,1394014036,1394014033,1394014087,1394014085,1394014084,1394014083,1394014329,1394014324,1394014319,1394014313,1394014307,1394014785); 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([28446272]) Inside saveOutput : final : False verbose : True original output for save of step final : {1394014785: ('0.058284714546717666',)} new output for save of step final : {1394014785: ('0.058284714546717666',)} [1394014785] map_info['map_portfolio_photo'] : {28446272: [1394014785, 1394014329, 1394014324, 1394014319, 1394014313, 1394014307, 1394014087, 1394014085, 1394014084, 1394014083, 1394014054, 1394014049, 1394014043, 1394014039, 1394014036, 1394014033, 1394014013, 1394014010, 1394014008, 1394013980, 1394013977, 1394013972, 1394013966, 1394013961, 1394013959, 1394013937, 1394013933, 1394013931, 1394013930, 1394013928, 1394013903, 1394013899, 1394013895, 1394013893, 1394013891, 1394013888, 1394013549, 1394013545, 1394013542, 1394013540, 1394013538, 1394013516, 1394013512, 1394013507, 1394013503, 1394013500, 1394013496, 1394013472, 1394013470, 1394013467, 1394013465, 1394013463, 1394013400, 1394013397, 1394013395, 1394013393, 1394013390, 1394013353, 1394013352, 1394013350, 1394013240, 1394013238, 1394013221]} final : False mtd_id 4302 list_pids : [1394014785] Looping around the photos to save general results len do output : 1 /1394014785.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, '4035573') ('4302', '28446272', '1394014785', None, None, None, None, None, '4035573') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28446272', '1394014785', '0.058284714546717666', None, None, None, None, '4035573')] time used for this insertion : 0.016055822372436523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0760810375213623 time spend to save output : 0.0162503719329834 total time spend for step 2 : 0.0923314094543457 step3:velours_tree Wed Nov 12 10:02:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28446272: [{'flou': 28446293, 'environnement': 28446294, 'Carton_gris': 28446295, 'metal': 28446296, 'cartonnette': 28446297, 'mal_croppe': 28446298, 'plastique': 28446299, 'kraft': 28446300, 'autre_refus': 28446301, 'Carton_brun': 28446302, 'Teint_Dans_La_Masse': 28446303, 'papier': 28446304}]} input_args_next_step : {28446272: ()} output_args : {28446272: [{'flou': 28446293, 'environnement': 28446294, 'Carton_gris': 28446295, 'metal': 28446296, 'cartonnette': 28446297, 'mal_croppe': 28446298, 'plastique': 28446299, 'kraft': 28446300, 'autre_refus': 28446301, 'Carton_brun': 28446302, 'Teint_Dans_La_Masse': 28446303, 'papier': 28446304}]} args : 28446272 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 : ({'flou': 28446293, 'environnement': 28446294, 'Carton_gris': 28446295, 'metal': 28446296, 'cartonnette': 28446297, 'mal_croppe': 28446298, 'plastique': 28446299, 'kraft': 28446300, 'autre_refus': 28446301, 'Carton_brun': 28446302, 'Teint_Dans_La_Masse': 28446303, 'papier': 28446304},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28446272) 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([28446272]) 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.3066830635070801 time spend to save output : 7.414817810058594e-05 total time spend for step 3 : 0.30675721168518066 step4:send_mail_cod Wed Nov 12 10:02:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1394014785: ('0.058284714546717666',)} input_args_next_step : {1394014785: ()} output_args : {1394014785: ('0.058284714546717666',)} args : 1394014785 depend.output_id : 0 complete output_args for input 3 : {28446272: [{'flou': 28446293, 'environnement': 28446294, 'Carton_gris': 28446295, 'metal': 28446296, 'cartonnette': 28446297, 'mal_croppe': 28446298, 'plastique': 28446299, 'kraft': 28446300, 'autre_refus': 28446301, 'Carton_brun': 28446302, 'Teint_Dans_La_Masse': 28446303, 'papier': 28446304}]} input_args_next_step : {1394014785: ('0.058284714546717666',), 28446272: ()} output_args : {28446272: [{'flou': 28446293, 'environnement': 28446294, 'Carton_gris': 28446295, 'metal': 28446296, 'cartonnette': 28446297, 'mal_croppe': 28446298, 'plastique': 28446299, 'kraft': 28446300, 'autre_refus': 28446301, 'Carton_brun': 28446302, 'Teint_Dans_La_Masse': 28446303, 'papier': 28446304}]} args : 28446272 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.058284714546717666',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28446272) 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 (1394014785) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1394014785 download finish for photo 1394014785 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette284462931762938177/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P28446272_12-11-2025_10_02_57.pdf 28446293 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=28446293 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284462931762938177 28446296 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=28446296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013526: '1762937466_3337874_1394013463_5a4847ca0e246f249046c360d3a218ef_rle_crop_4031072080_0.png'} change filename to text .imagette284462961762938177/ imagette284462961762938177/1762937466_3337874_1394013463_5a4847ca0e246f249046c360d3a218ef_rle_crop_4031072080_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3c1b2447464375c214638c12da953baf_44665140.png imagette284462961762938177 28446297 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=28446297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013363: '1762937227_3326449_1394013221_67cd2d5b6b781d56015f8a6ab415ec9f_rle_crop_4031071205_0.png', 1394013446: '1762937345_3332481_1394013395_5bd4b05d562031790c34b019ac31dbdb_rle_crop_4031071804_0.png', 1394013448: '1762937345_3332481_1394013393_86c21a3e70eea899dfeb0ebb4a2c5875_rle_crop_4031071818_0.png', 1394013525: '1762937466_3337874_1394013465_49c024ae3487fb2127c1aede137e3f8c_rle_crop_4031072069_0.png', 1394013910: '1762937585_3344455_1394013542_95edd0026b5dac16c9f8e378caca0d3a_rle_crop_4031072236_0.png', 1394013911: '1762937585_3344455_1394013540_d23349f5a8766366a25d61b9d80f1ac8_rle_crop_4031072265_0.png', 1394013912: '1762937585_3344455_1394013540_d23349f5a8766366a25d61b9d80f1ac8_rle_crop_4031072259_0.png', 1394014067: '1762937826_3356993_1394013895_325b3af136171ffdbabeeb6cd56b3c49_rle_crop_4031076114_0.png', 1394014068: '1762937826_3356993_1394013893_6ca786a9ee135b44efbf57e394d11fa6_rle_crop_4031076154_0.png', 1394014070: '1762937826_3356993_1394013891_1ae4c599e200f8e01d8baa7836bb2559_rle_crop_4031076171_0.png', 1394014270: '1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090812_0.png', 1394014271: '1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090811_0.png', 1394015092: '1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095392_0.png', 1394015094: '1762938065_3390528_1394014036_60369377d8ff2e07b9fe80b5d473e4ad_rle_crop_4031096868_0.png', 1394015096: '1762938065_3390528_1394014036_60369377d8ff2e07b9fe80b5d473e4ad_rle_crop_4031096871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f3031018b6b215625cdba3c601c72547_34200269.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/bf46d34faf4a114a984eca4b0401c9eb_68171596.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/dd0aaeb5d136a1c476cfb07a9f3b09d7_20080369.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b4f7e4e9d2f83251dde8cd7e6fdd8986_88353517.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/0ccc2da4d8e2a4d0d9e7389b2b31f7c4_66478955.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/bb9226ef1f54dde5101da3b600d8ae11_52079889.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/02f14b87c8a568f6f44fbc52dcb1b5f9_11785114.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/0a25dfc9c0db6e8abb2bbc563e77e9d9_64339504.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/fe43e542a300a0be9152076316082386_65859154.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/7c5179d44591f38f3daafea476e63705_88217936.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f70bf0871f8878c1bcd87da37ff14d29_35266712.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/d8837de76062fb0b9f4da47773251185_79149656.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c3670f702d1eaee6ed0a8f9618a7d6be_83464407.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3570453ea79c687c5b3a6cf4b01e1e93_79650194.png change filename to text .imagette284462971762938177/ imagette284462971762938177/1762938065_3390528_1394014036_60369377d8ff2e07b9fe80b5d473e4ad_rle_crop_4031096868_0.png.png imagette284462971762938177/1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095392_0.png.png imagette284462971762938177/1762937826_3356993_1394013893_6ca786a9ee135b44efbf57e394d11fa6_rle_crop_4031076154_0.png.png imagette284462971762938177/1762937826_3356993_1394013891_1ae4c599e200f8e01d8baa7836bb2559_rle_crop_4031076171_0.png.png imagette284462971762938177/1762937227_3326449_1394013221_67cd2d5b6b781d56015f8a6ab415ec9f_rle_crop_4031071205_0.png.png imagette284462971762938177/1762937466_3337874_1394013465_49c024ae3487fb2127c1aede137e3f8c_rle_crop_4031072069_0.png.png imagette284462971762938177/1762937585_3344455_1394013542_95edd0026b5dac16c9f8e378caca0d3a_rle_crop_4031072236_0.png.png imagette284462971762938177/1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090811_0.png.png imagette284462971762938177/1762938065_3390528_1394014036_60369377d8ff2e07b9fe80b5d473e4ad_rle_crop_4031096871_0.png.png imagette284462971762938177/1762937826_3356993_1394013895_325b3af136171ffdbabeeb6cd56b3c49_rle_crop_4031076114_0.png.png imagette284462971762938177/1762937345_3332481_1394013395_5bd4b05d562031790c34b019ac31dbdb_rle_crop_4031071804_0.png.png imagette284462971762938177/1762937585_3344455_1394013540_d23349f5a8766366a25d61b9d80f1ac8_rle_crop_4031072259_0.png.png imagette284462971762938177/1762937345_3332481_1394013393_86c21a3e70eea899dfeb0ebb4a2c5875_rle_crop_4031071818_0.png.png imagette284462971762938177/1762937585_3344455_1394013540_d23349f5a8766366a25d61b9d80f1ac8_rle_crop_4031072265_0.png.png imagette284462971762938177/1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090812_0.png.png imagette284462981762938178/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/e4af5923229e625579b5f782fb259378_13694771.png imagette284462971762938177 28446298 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=28446298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284462981762938178 28446299 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=28446299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013366: '1762937227_3326449_1394013240_7b6eef7654d319986d5e93eaba893fd3_rle_crop_4031071176_0.png', 1394013367: '1762937227_3326449_1394013238_c99cfd54b5c10b7b1e663157a67aaa12_rle_crop_4031071190_0.png', 1394014002: '1762937725_3350857_1394013928_693f846e5c893aae26093e3c068bcd26_rle_crop_4031074437_0.png', 1394014072: '1762937826_3356993_1394013893_6ca786a9ee135b44efbf57e394d11fa6_rle_crop_4031076157_0.png', 1394014276: '1762937965_3361092_1394014083_31c2d8fd1d29156ee7aadeee3c39be6a_rle_crop_4031090827_0.png', 1394015137: '1762938065_3390528_1394014087_a9793681e1547e4615b5f818f924c97c_rle_crop_4031095320_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/1c5bfa921f8b051b86bd39731b8c9dc1_2716445.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/11ae87b32fb7c33fb569a695336828a4_74865332.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c9a39f7d12d6431dd9d640dc38c76168_68685330.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/fe301a90fdfa6f2bde29749bb3e6afe2_16053995.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/bf42a4d806557e7c1b1376d81ce8b3f3_49086757.png change filename to text .imagette284462991762938178/ imagette284462991762938178/1762937227_3326449_1394013240_7b6eef7654d319986d5e93eaba893fd3_rle_crop_4031071176_0.png.png imagette284462991762938178/1762938065_3390528_1394014087_a9793681e1547e4615b5f818f924c97c_rle_crop_4031095320_0.png.png imagette284462991762938178/1762937826_3356993_1394013893_6ca786a9ee135b44efbf57e394d11fa6_rle_crop_4031076157_0.png.png imagette284462991762938178/1762937227_3326449_1394013238_c99cfd54b5c10b7b1e663157a67aaa12_rle_crop_4031071190_0.png.png imagette284462991762938178/1762937965_3361092_1394014083_31c2d8fd1d29156ee7aadeee3c39be6a_rle_crop_4031090827_0.png.png imagette284462991762938178/1762937725_3350857_1394013928_693f846e5c893aae26093e3c068bcd26_rle_crop_4031074437_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6d24c03e83575c198ada698fdcfff65e_25291427.png imagette284462991762938178 28446300 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=28446300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013453: '1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071795_0.png'} change filename to text .imagette284463001762938179/ imagette284463001762938179/1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071795_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/cf3881293ef4d158a8747279c328222b_47378179.png imagette284463001762938179 28446301 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=28446301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013443: '1762937345_3332481_1394013395_5bd4b05d562031790c34b019ac31dbdb_rle_crop_4031071802_0.png', 1394013907: '1762937585_3344455_1394013545_c647c5f48235092993ed14de9a6f43c2_rle_crop_4031072221_0.png', 1394013998: '1762937725_3350857_1394013928_693f846e5c893aae26093e3c068bcd26_rle_crop_4031074429_0.png', 1394014061: '1762937826_3356993_1394013899_d09c8f610d1fd39740f9463a29c5e76b_rle_crop_4031076104_0.png', 1394014229: '1762937945_3360693_1394014008_de00fbea1fbf0bb774ad91f4e7edea84_rle_crop_4031090598_0.png', 1394014269: '1762937965_3361092_1394014085_92be65762e3c7629bf31ce73275e8c70_rle_crop_4031090801_0.png', 1394015059: '1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095389_0.png', 1394015061: '1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095418_0.png', 1394015063: '1762938065_3390528_1394014033_b0a4f2dfba4d444d67119e4f269232d0_rle_crop_4031096886_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c7fa00b10d793d2613a4cc58318f884d_8530958.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/8c46135b819972862125f71551460b5f_89286378.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/d53b62dccf7559155c988ae44ddb40fd_20183373.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/aef84ef46c1b9a039ddc3c8f397ac86b_8473785.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/791e6cfd20159151c44d577b7f1948ab_93257923.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/cc162709e951cbf884141abbb16ba588_56408242.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/960b0576b94b79c31f11164d0c109919_15779554.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/7325ac298e1d651e2e9771ac53d9baf5_60845928.png change filename to text .imagette284463011762938179/ imagette284463011762938179/1762937345_3332481_1394013395_5bd4b05d562031790c34b019ac31dbdb_rle_crop_4031071802_0.png.png imagette284463011762938179/1762937945_3360693_1394014008_de00fbea1fbf0bb774ad91f4e7edea84_rle_crop_4031090598_0.png.png imagette284463011762938179/1762937965_3361092_1394014085_92be65762e3c7629bf31ce73275e8c70_rle_crop_4031090801_0.png.png imagette284463011762938179/1762937585_3344455_1394013545_c647c5f48235092993ed14de9a6f43c2_rle_crop_4031072221_0.png.png imagette284463011762938179/1762937826_3356993_1394013899_d09c8f610d1fd39740f9463a29c5e76b_rle_crop_4031076104_0.png.png imagette284463011762938179/1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095389_0.png.png imagette284463011762938179/1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095418_0.png.png imagette284463011762938179/1762938065_3390528_1394014033_b0a4f2dfba4d444d67119e4f269232d0_rle_crop_4031096886_0.png.png imagette284463011762938179/1762937725_3350857_1394013928_693f846e5c893aae26093e3c068bcd26_rle_crop_4031074429_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/fdae735571c3cb3d408a2d56a548aec8_23237074.png imagette284463011762938179 28446295 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=28446295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013445: '1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071789_0.png', 1394013458: '1762937364_3332912_1394013400_e70f6d453617ddbe517f183030ca5bff_rle_crop_4031071927_0.png', 1394013459: '1762937364_3332912_1394013400_e70f6d453617ddbe517f183030ca5bff_rle_crop_4031071925_0.png', 1394013460: '1762937364_3332912_1394013350_81d4ffa26b14d7421fb527dc84c9f8dc_rle_crop_4031071951_0.png', 1394013522: '1762937466_3337874_1394013465_49c024ae3487fb2127c1aede137e3f8c_rle_crop_4031072060_0.png', 1394013908: '1762937585_3344455_1394013542_95edd0026b5dac16c9f8e378caca0d3a_rle_crop_4031072233_0.png', 1394013917: '1762937607_3344810_1394013516_ef1be52c190895056c28f72b4c27f532_rle_crop_4031072294_0.png', 1394013999: '1762937725_3350857_1394013928_693f846e5c893aae26093e3c068bcd26_rle_crop_4031074433_0.png', 1394014063: '1762937826_3356993_1394013893_6ca786a9ee135b44efbf57e394d11fa6_rle_crop_4031076159_0.png', 1394014064: '1762937826_3356993_1394013888_8655578d6b5a1d72e709a1cdcbd0693a_rle_crop_4031076189_0.png', 1394015073: '1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095395_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f44a3e586216eecb12d99b24a3ae24b2_33437190.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/35b17e15729711d92ee0e8578ddb9148_24040169.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b206a4a8be28d32ac31b0e0f8b4d8faf_57873580.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/ea6bfa1c3601f2e33c5dddac93057d18_60035412.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/45aa475f18e0ecb2e1877502749d6937_75373537.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/60f6ea0cde5c319f9323c7d9865365c8_91750840.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/a9dc56d9c586264abbd445abd6b4c275_10666551.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/4291e811733fe05480901ad8e275470d_49539143.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/4e8dd2605313604f915bc0c45f753403_2190489.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/9beef66211e91e68995fd7c491ea5e8f_41562363.png change filename to text .imagette284462951762938179/ imagette284462951762938179/1762937585_3344455_1394013542_95edd0026b5dac16c9f8e378caca0d3a_rle_crop_4031072233_0.png.png imagette284462951762938179/1762937364_3332912_1394013400_e70f6d453617ddbe517f183030ca5bff_rle_crop_4031071927_0.png.png imagette284462951762938179/1762937826_3356993_1394013893_6ca786a9ee135b44efbf57e394d11fa6_rle_crop_4031076159_0.png.png imagette284462951762938179/1762937607_3344810_1394013516_ef1be52c190895056c28f72b4c27f532_rle_crop_4031072294_0.png.png imagette284462951762938179/1762937466_3337874_1394013465_49c024ae3487fb2127c1aede137e3f8c_rle_crop_4031072060_0.png.png imagette284462951762938179/1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095395_0.png.png imagette284462951762938179/1762937364_3332912_1394013350_81d4ffa26b14d7421fb527dc84c9f8dc_rle_crop_4031071951_0.png.png imagette284462951762938179/1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071789_0.png.png imagette284462951762938179/1762937364_3332912_1394013400_e70f6d453617ddbe517f183030ca5bff_rle_crop_4031071925_0.png.png imagette284462951762938179/1762937725_3350857_1394013928_693f846e5c893aae26093e3c068bcd26_rle_crop_4031074433_0.png.png imagette284462951762938179/1762937826_3356993_1394013888_8655578d6b5a1d72e709a1cdcbd0693a_rle_crop_4031076189_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/ee6294ab15dda2e98aac9a212c44760c_55596024.png imagette284462951762938179 28446302 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=28446302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394014274: '1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090814_0.png', 1394015129: '1762938065_3390528_1394014033_b0a4f2dfba4d444d67119e4f269232d0_rle_crop_4031096889_0.png', 1394015127: '1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095417_0.png', 1394015125: '1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095425_0.png', 1394015123: '1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095424_0.png', 1394015121: '1762938065_3390528_1394014043_9222a6c8c8b77df6b7476741d9ac74cd_rle_crop_4031095402_0.png', 1394015119: '1762938065_3390528_1394014043_9222a6c8c8b77df6b7476741d9ac74cd_rle_crop_4031095405_0.png', 1394015117: '1762938065_3390528_1394014087_a9793681e1547e4615b5f818f924c97c_rle_crop_4031095327_0.png', 1394014275: '1762937965_3361092_1394014083_31c2d8fd1d29156ee7aadeee3c39be6a_rle_crop_4031090828_0.png', 1394013450: '1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071793_0.png', 1394014273: '1762937965_3361092_1394014085_92be65762e3c7629bf31ce73275e8c70_rle_crop_4031090803_0.png', 1394014272: '1762937965_3361092_1394014085_92be65762e3c7629bf31ce73275e8c70_rle_crop_4031090806_0.png', 1394014071: '1762937826_3356993_1394013888_8655578d6b5a1d72e709a1cdcbd0693a_rle_crop_4031076187_0.png', 1394013913: '1762937585_3344455_1394013545_c647c5f48235092993ed14de9a6f43c2_rle_crop_4031072227_0.png', 1394013461: '1762937364_3332912_1394013400_e70f6d453617ddbe517f183030ca5bff_rle_crop_4031071933_0.png', 1394013452: '1762937345_3332481_1394013395_5bd4b05d562031790c34b019ac31dbdb_rle_crop_4031071808_0.png', 1394013451: '1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071799_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/5300dc3de336f25ad9f48bc6df36d3ce_70529044.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/25e0395fd73864cc1b1574c37ae9fc05_56920356.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c1e685ac096af058270a43e5de408c96_83427641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2515b6ee3b472558a79453c171f6c9b5_83914941.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2f914eeb21d8ba3b2e45bfca58cb0d1d_76837930.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/76b8b678af495f69d4744dcaada00aa7_29526841.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6d5379c74a0c2b19892b3d934d5ebb8e_41438701.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/bdb02d1904d4454f3b42ec3863d3ebc5_40637872.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/fa2053a2396c13106b3fa191e0c21dca_47274185.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/1945a03adaf60eca568e3364d5625fa3_20838242.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/014ab991b0a8267058ea45dabfd0df35_48880812.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b3f62b0ec792c98f0ba5dcee57f61ba1_38363825.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6260905e705db4be169cdb43f1fde4ad_24447881.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/ff1e4c7d4ca8745b86f037ee2487bcab_38935767.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2e08e9892eb77d6ed9243b1ce44db323_32980237.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/7354f1e4c5f1ef964f6cd4bcf87df6ed_78438790.png change filename to text .imagette284463021762938180/ imagette284463021762938180/1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090814_0.png.png imagette284463021762938180/1762937965_3361092_1394014083_31c2d8fd1d29156ee7aadeee3c39be6a_rle_crop_4031090828_0.png.png imagette284463021762938180/1762937965_3361092_1394014085_92be65762e3c7629bf31ce73275e8c70_rle_crop_4031090806_0.png.png imagette284463021762938180/1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095424_0.png.png imagette284463021762938180/1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071799_0.png.png imagette284463021762938180/1762937345_3332481_1394013397_a492b3aa3481e25bac2a45904c81080f_rle_crop_4031071793_0.png.png imagette284463021762938180/1762937826_3356993_1394013888_8655578d6b5a1d72e709a1cdcbd0693a_rle_crop_4031076187_0.png.png imagette284463021762938180/1762937364_3332912_1394013400_e70f6d453617ddbe517f183030ca5bff_rle_crop_4031071933_0.png.png imagette284463021762938180/1762938065_3390528_1394014087_a9793681e1547e4615b5f818f924c97c_rle_crop_4031095327_0.png.png imagette284463021762938180/1762938065_3390528_1394014043_9222a6c8c8b77df6b7476741d9ac74cd_rle_crop_4031095402_0.png.png imagette284463021762938180/1762938065_3390528_1394014033_b0a4f2dfba4d444d67119e4f269232d0_rle_crop_4031096889_0.png.png imagette284463021762938180/1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095417_0.png.png imagette284463021762938180/1762938065_3390528_1394014043_9222a6c8c8b77df6b7476741d9ac74cd_rle_crop_4031095405_0.png.png imagette284463021762938180/1762937345_3332481_1394013395_5bd4b05d562031790c34b019ac31dbdb_rle_crop_4031071808_0.png.png imagette284463021762938180/1762937965_3361092_1394014085_92be65762e3c7629bf31ce73275e8c70_rle_crop_4031090803_0.png.png imagette284463021762938180/1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095425_0.png.png imagette284463021762938180/1762937585_3344455_1394013545_c647c5f48235092993ed14de9a6f43c2_rle_crop_4031072227_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/a896eab5c285d9f93a3fab245a6ef22a_23954389.png imagette284463021762938180 28446303 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=28446303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394013361: '1762937227_3326449_1394013238_c99cfd54b5c10b7b1e663157a67aaa12_rle_crop_4031071188_0.png', 1394013362: '1762937227_3326449_1394013221_67cd2d5b6b781d56015f8a6ab415ec9f_rle_crop_4031071206_0.png', 1394013441: '1762937345_3332481_1394013393_86c21a3e70eea899dfeb0ebb4a2c5875_rle_crop_4031071828_0.png', 1394013442: '1762937345_3332481_1394013390_2d0b1dad51586aa64592f3f90886766a_rle_crop_4031071839_0.png', 1394013520: '1762937466_3337874_1394013465_49c024ae3487fb2127c1aede137e3f8c_rle_crop_4031072068_0.png', 1394013521: '1762937466_3337874_1394013463_5a4847ca0e246f249046c360d3a218ef_rle_crop_4031072081_0.png', 1394013906: '1762937585_3344455_1394013540_d23349f5a8766366a25d61b9d80f1ac8_rle_crop_4031072262_0.png', 1394014060: '1762937826_3356993_1394013899_d09c8f610d1fd39740f9463a29c5e76b_rle_crop_4031076106_0.png', 1394014267: '1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090817_0.png', 1394015032: '1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095393_0.png', 1394015035: '1762938065_3390528_1394014043_9222a6c8c8b77df6b7476741d9ac74cd_rle_crop_4031095400_0.png', 1394015038: '1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095422_0.png', 1394015041: '1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095426_0.png', 1394015044: '1762938065_3390528_1394014036_60369377d8ff2e07b9fe80b5d473e4ad_rle_crop_4031096876_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/37982c8ab68c675c780bbf4fec524a26_55521233.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2079f078787d04cb94bc750e0c81131c_67762286.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6ccb43f846e47e3a655fbc28070f9ee5_24922542.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6ffe792f8df059c1717aae23a97e1c3b_36282030.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/9b4c70c0f2f1a175f976b7baf4abda3d_8250791.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/998f84983c0990012cf398ee014d8865_99812957.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3e763b72dbfb646619b68c36b5c11b91_16369067.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/fbd528842f603ce496f58f063ca0341d_27118600.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f645afa80f70e4098fd7056095562dee_78575198.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/649110b64eb2291a760b7252d2383e57_60040642.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b4ee6e02eac2c28893849c8402070de0_10785678.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/ef1e3fd803cdf787d99c7374704a1765_84323350.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/64752de5f18a077c7844168b58511248_56433785.png change filename to text .imagette284463031762938181/ imagette284463031762938181/1762937965_3361092_1394014084_cadf4f8e63d73cb8efb147231aeabbb3_rle_crop_4031090817_0.png.png imagette284463031762938181/1762937585_3344455_1394013540_d23349f5a8766366a25d61b9d80f1ac8_rle_crop_4031072262_0.png.png imagette284463031762938181/1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095426_0.png.png imagette284463031762938181/1762937345_3332481_1394013390_2d0b1dad51586aa64592f3f90886766a_rle_crop_4031071839_0.png.png imagette284463031762938181/1762937227_3326449_1394013238_c99cfd54b5c10b7b1e663157a67aaa12_rle_crop_4031071188_0.png.png imagette284463031762938181/1762937466_3337874_1394013465_49c024ae3487fb2127c1aede137e3f8c_rle_crop_4031072068_0.png.png imagette284463031762938181/1762938065_3390528_1394014049_7ff8ff0a2a1c0ba07b21c5e9d0adc990_rle_crop_4031095393_0.png.png imagette284463031762938181/1762938065_3390528_1394014036_60369377d8ff2e07b9fe80b5d473e4ad_rle_crop_4031096876_0.png.png imagette284463031762938181/1762937826_3356993_1394013899_d09c8f610d1fd39740f9463a29c5e76b_rle_crop_4031076106_0.png.png imagette284463031762938181/1762937466_3337874_1394013463_5a4847ca0e246f249046c360d3a218ef_rle_crop_4031072081_0.png.png imagette284463031762938181/1762938065_3390528_1394014043_9222a6c8c8b77df6b7476741d9ac74cd_rle_crop_4031095400_0.png.png imagette284463031762938181/1762937227_3326449_1394013221_67cd2d5b6b781d56015f8a6ab415ec9f_rle_crop_4031071206_0.png.png imagette284463031762938181/1762937345_3332481_1394013393_86c21a3e70eea899dfeb0ebb4a2c5875_rle_crop_4031071828_0.png.png imagette284463031762938181/1762938065_3390528_1394014039_750efdab1254b85a6caf543277eb3606_rle_crop_4031095422_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2a2bfdbdb6b689d9e03e68190a2de230_54528881.png imagette284463031762938181 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28446272 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28446305,28446306,28446307,28446308,28446309,28446310,28446311,28446312,28446313,28446314,28446315,28446316?tags=flou,environnement,Carton_gris,metal,cartonnette,mal_croppe,plastique,kraft,autre_refus,Carton_brun,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1394014785] : ('0.058284714546717666',) no score found for photo 1394014785 We are sending mail with results at report@fotonower.com refus_total : 0.058284714546717666 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=28446272 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_P28446272_12-11-2025_10_02_57.pdf results_Auto_P28446272_12-11-2025_10_02_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28446272_12-11-2025_10_02_57.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','28446272','results_Auto_P28446272_12-11-2025_10_02_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28446272_12-11-2025_10_02_57.pdf','pdf','','0.22','0.058284714546717666') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28446272]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1394014785] map_info['map_portfolio_photo'] : {28446272: [1394014785, 1394014329, 1394014324, 1394014319, 1394014313, 1394014307, 1394014087, 1394014085, 1394014084, 1394014083, 1394014054, 1394014049, 1394014043, 1394014039, 1394014036, 1394014033, 1394014013, 1394014010, 1394014008, 1394013980, 1394013977, 1394013972, 1394013966, 1394013961, 1394013959, 1394013937, 1394013933, 1394013931, 1394013930, 1394013928, 1394013903, 1394013899, 1394013895, 1394013893, 1394013891, 1394013888, 1394013549, 1394013545, 1394013542, 1394013540, 1394013538, 1394013516, 1394013512, 1394013507, 1394013503, 1394013500, 1394013496, 1394013472, 1394013470, 1394013467, 1394013465, 1394013463, 1394013400, 1394013397, 1394013395, 1394013393, 1394013390, 1394013353, 1394013352, 1394013350, 1394013240, 1394013238, 1394013221]} final : False mtd_id 4302 list_pids : [1394014785] 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, '4035573') ('4302', '28446272', '1394014785', None, None, None, None, None, '4035573') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28446272', '1394014785', None, None, None, None, None, '4035573')] time used for this insertion : 0.012018442153930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.939878225326538 time spend to save output : 0.012185811996459961 total time spend for step 4 : 6.952064037322998 step5:split_time_score Wed Nov 12 10:03:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28446272'] 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 : [('28446272',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28446272) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1394014785: {'path': 'temp/1762938177_2546188_1394014785_f5f0e57b5e78c91f0f0d69c3391c7a7b.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 = 28446272; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28446272 group by h (('09', 63),) 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=28446272 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 (28446272) 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 (28446272) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12112025 28446272 Nombre de photos uploadées : 63 / 23040 (0%) 12112025 28446272 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 12112025 28446272 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1394013240, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/7b6eef7654d319986d5e93eaba893fd3.jpg', 'username': None, 'uploaded_at': 1762937168, 'text': 'image_12112025_09_45_04_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394013238, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c99cfd54b5c10b7b1e663157a67aaa12.jpg', 'username': None, 'uploaded_at': 1762937168, 'text': 'image_12112025_09_45_14_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394013221, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/67cd2d5b6b781d56015f8a6ab415ec9f.jpg', 'username': None, 'uploaded_at': 1762937168, 'text': 'image_12112025_09_45_24_010145m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394013353, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/47a9de88c1d97cc4ec36e13b4c1b469c.jpg', 'username': None, 'uploaded_at': 1762937228, 'text': 'image_12112025_09_45_44_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002977609634399414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28446272, '2025-11-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2564236,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21507883071899414 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= 2564236 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28438484, 'dashboard_result_id': 17148678, '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_P28438484_12-11-2025_05_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438499, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28438745, 'dashboard_result_id': 17148679, '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_P28438745_12-11-2025_05_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438760, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28439103, 'dashboard_result_id': 17148680, '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_P28439103_12-11-2025_06_03_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28439113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28439114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28439115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28439116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28439117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28439118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28439119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28439120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28439121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28439122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28439123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28439124, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28439567, 'dashboard_result_id': 17148681, '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_P28439567_12-11-2025_06_16_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28439573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28439574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28439575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28439576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28439577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28439578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28439579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28439580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28439581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28439582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28439583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28439584, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28440051, 'dashboard_result_id': 17148682, '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_P28440051_12-11-2025_06_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440087, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28440508, 'dashboard_result_id': 17148683, '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_P28440508_12-11-2025_06_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440526, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28440876, 'dashboard_result_id': 17148684, '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_P28440876_12-11-2025_07_04_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440893, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28441317, 'dashboard_result_id': 17148685, '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_P28441317_12-11-2025_07_22_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28441319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28441320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28441321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28441322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28441323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28441324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28441325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28441326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28441327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28441328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28441329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28441330, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28442063, 'dashboard_result_id': 17148686, '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_P28442063_12-11-2025_07_36_11.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28442088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28442089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28442091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28442095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28442096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28442099, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28442584, 'dashboard_result_id': 17148687, '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_P28442584_12-11-2025_07_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28442609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28442613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28442615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28442618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28442619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28442620, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28442978, 'dashboard_result_id': 17148688, '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_P28442978_12-11-2025_09_31_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28443000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28443001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28443002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28443003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28443004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28443005, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28443525, 'dashboard_result_id': 17148689, '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_P28443525_12-11-2025_08_17_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28443529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28443530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28443531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28443532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28443533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28443534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28443535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28443536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28443537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28443538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28443539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28443540, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28444126, 'dashboard_result_id': 17148690, '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_P28444126_12-11-2025_08_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28444127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28444128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28444129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28444130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28444131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28444132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28444133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28444134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28444135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28444136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28444137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28444138, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28444580, 'dashboard_result_id': 17148691, '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_P28444580_12-11-2025_08_47_11.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28444618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28444619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28444620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28444621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28444622, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28444623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28444624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28444625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28444626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28444627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28444628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28444629, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28445271, 'dashboard_result_id': 17148692, '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_P28445271_12-11-2025_09_35_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28445278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28445279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28445280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28445282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28445283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28445284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28445285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28445286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28445287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28445288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28445289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28445290, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28445824, 'dashboard_result_id': 17148693, '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_P28445824_12-11-2025_09_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28445825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28445826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28445827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28445828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28445829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28445830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28445831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28445832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28445833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28445834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28445835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28445836, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28446031, 'dashboard_result_id': 17148694, '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_P28446031_12-11-2025_09_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28446034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28446035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28446036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28446037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28446038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28446039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28446040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28446041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28446042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28446043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28446044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28446045, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2573983, 'mtr_portfolio_id': 28446272, 'dashboard_result_id': 17148695, '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_P28446272_12-11-2025_09_58_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28446293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28446294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28446295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28446296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28446297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28446298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28446299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28446300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28446301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28446302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28446303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28446304, '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 = 28438484 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': 4034439, 'mtr_portfolio_id': 28438484, 'created_at': datetime.datetime(2025, 11, 12, 5, 43, 29), 'result': '0.03446323826828777', 'result_long': None, 'result_double': None}] Qualite : 0.03446323826828777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28438484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438484_12-11-2025_05_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28438484 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_P28438484_12-11-2025_05_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438499, 'pht': 3726}}" where mtr_portfolio_id = 28438484 and dashboard_run_id = 2573983 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`=28438484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148678, 0.03446323826828777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438484_12-11-2025_05_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438499, '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 = 28438745 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': 4034414, 'mtr_portfolio_id': 28438745, 'created_at': datetime.datetime(2025, 11, 12, 5, 46, 57), 'result': '0.05683544193945661', 'result_long': None, 'result_double': None}] Qualite : 0.05683544193945661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28438745 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438745_12-11-2025_05_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28438745 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_P28438745_12-11-2025_05_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438760, 'pht': 3726}}" where mtr_portfolio_id = 28438745 and dashboard_run_id = 2573983 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`=28438745 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148679, 0.05683544193945661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438745_12-11-2025_05_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438760, '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 = 28439103 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': 4034505, 'mtr_portfolio_id': 28439103, 'created_at': datetime.datetime(2025, 11, 12, 6, 3, 32), 'result': '0.062379388810074154', 'result_long': None, 'result_double': None}] Qualite : 0.062379388810074154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28439103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28439103_12-11-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28439103 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_P28439103_12-11-2025_06_03_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28439113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28439114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28439115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28439116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28439117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28439118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28439119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28439120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28439121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28439122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28439123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28439124, 'pht': 3726}}" where mtr_portfolio_id = 28439103 and dashboard_run_id = 2573983 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`=28439103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148680, 0.062379388810074154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28439103_12-11-2025_06_03_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28439113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28439114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28439115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28439116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28439117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28439118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28439119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28439120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28439121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28439122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28439123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28439124, '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 = 28439567 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': 4034601, 'mtr_portfolio_id': 28439567, 'created_at': datetime.datetime(2025, 11, 12, 6, 16, 57), 'result': '0.04347189910124581', 'result_long': None, 'result_double': None}] Qualite : 0.04347189910124581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28439567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28439567_12-11-2025_06_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28439567 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_P28439567_12-11-2025_06_16_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28439573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28439574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28439575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28439576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28439577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28439578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28439579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28439580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28439581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28439582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28439583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28439584, 'pht': 3726}}" where mtr_portfolio_id = 28439567 and dashboard_run_id = 2573983 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`=28439567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148681, 0.04347189910124581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28439567_12-11-2025_06_16_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28439573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28439574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28439575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28439576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28439577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28439578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28439579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28439580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28439581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28439582, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28439583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28439584, '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 = 28440051 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': 4034674, 'mtr_portfolio_id': 28440051, 'created_at': datetime.datetime(2025, 11, 12, 6, 32, 58), 'result': '0.05601699554585019', 'result_long': None, 'result_double': None}] Qualite : 0.05601699554585019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28440051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28440051_12-11-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28440051 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_P28440051_12-11-2025_06_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440087, 'pht': 3726}}" where mtr_portfolio_id = 28440051 and dashboard_run_id = 2573983 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`=28440051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148682, 0.05601699554585019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28440051_12-11-2025_06_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440085, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440087, '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 = 28440508 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': 4034737, 'mtr_portfolio_id': 28440508, 'created_at': datetime.datetime(2025, 11, 12, 6, 47), 'result': '0.06436188066316019', 'result_long': None, 'result_double': None}] Qualite : 0.06436188066316019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28440508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28440508_12-11-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28440508 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_P28440508_12-11-2025_06_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440526, 'pht': 3726}}" where mtr_portfolio_id = 28440508 and dashboard_run_id = 2573983 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`=28440508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148683, 0.06436188066316019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28440508_12-11-2025_06_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440526, '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 = 28440876 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': 4034782, 'mtr_portfolio_id': 28440876, 'created_at': datetime.datetime(2025, 11, 12, 7, 4, 30), 'result': '0.033246666672812515', 'result_long': None, 'result_double': None}] Qualite : 0.033246666672812515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28440876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28440876_12-11-2025_07_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28440876 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_P28440876_12-11-2025_07_04_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440893, 'pht': 3726}}" where mtr_portfolio_id = 28440876 and dashboard_run_id = 2573983 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`=28440876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148684, 0.033246666672812515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28440876_12-11-2025_07_04_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28440882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28440883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28440884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28440885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28440886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28440887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28440888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28440889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28440890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28440891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28440892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28440893, '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 = 28441317 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': 4034881, 'mtr_portfolio_id': 28441317, 'created_at': datetime.datetime(2025, 11, 12, 7, 21, 59), 'result': '0.04936255576180628', 'result_long': None, 'result_double': None}] Qualite : 0.04936255576180628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28441317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28441317_12-11-2025_07_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28441317 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_P28441317_12-11-2025_07_22_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28441319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28441320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28441321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28441322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28441323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28441324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28441325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28441326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28441327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28441328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28441329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28441330, 'pht': 3726}}" where mtr_portfolio_id = 28441317 and dashboard_run_id = 2573983 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`=28441317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148685, 0.04936255576180628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28441317_12-11-2025_07_22_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28441319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28441320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28441321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28441322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28441323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28441324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28441325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28441326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28441327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28441328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28441329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28441330, '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 = 28442063 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': 4034952, 'mtr_portfolio_id': 28442063, 'created_at': datetime.datetime(2025, 11, 12, 7, 36, 10), 'result': '0.07229093218094954', 'result_long': None, 'result_double': None}] Qualite : 0.07229093218094954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28442063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28442063_12-11-2025_07_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28442063 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_P28442063_12-11-2025_07_36_11.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28442088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28442089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28442091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28442095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28442096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28442099, 'pht': 3726}}" where mtr_portfolio_id = 28442063 and dashboard_run_id = 2573983 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`=28442063 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148686, 0.07229093218094954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28442063_12-11-2025_07_36_11.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28442088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28442089, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28442091, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442092, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28442095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28442096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28442099, '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 = 28442584 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': 4035034, 'mtr_portfolio_id': 28442584, 'created_at': datetime.datetime(2025, 11, 12, 7, 49, 31), 'result': '0.03368169137612205', 'result_long': None, 'result_double': None}] Qualite : 0.03368169137612205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28442584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28442584_12-11-2025_07_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28442584 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_P28442584_12-11-2025_07_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28442609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28442613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28442615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28442618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28442619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28442620, 'pht': 3726}}" where mtr_portfolio_id = 28442584 and dashboard_run_id = 2573983 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`=28442584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148687, 0.03368169137612205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28442584_12-11-2025_07_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28442609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28442613, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28442615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28442618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28442619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28442620, '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 = 28442978 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': 4035112, 'mtr_portfolio_id': 28442978, 'created_at': datetime.datetime(2025, 11, 12, 9, 31), 'result': '0.04242295567263018', 'result_long': None, 'result_double': None}] Qualite : 0.04242295567263018 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28442978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28442978_12-11-2025_09_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28442978 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_P28442978_12-11-2025_09_31_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28443000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28443001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28443002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28443003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28443004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28443005, 'pht': 3726}}" where mtr_portfolio_id = 28442978 and dashboard_run_id = 2573983 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`=28442978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148688, 0.04242295567263018, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28442978_12-11-2025_09_31_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28442994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28442995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28442996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28442997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28442998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28442999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28443000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28443001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28443002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28443003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28443004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28443005, '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 = 28443525 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': 4035217, 'mtr_portfolio_id': 28443525, 'created_at': datetime.datetime(2025, 11, 12, 8, 17, 27), 'result': '0.03631266008261128', 'result_long': None, 'result_double': None}] Qualite : 0.03631266008261128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28443525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28443525_12-11-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28443525 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_P28443525_12-11-2025_08_17_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28443529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28443530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28443531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28443532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28443533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28443534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28443535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28443536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28443537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28443538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28443539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28443540, 'pht': 3726}}" where mtr_portfolio_id = 28443525 and dashboard_run_id = 2573983 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`=28443525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148689, 0.03631266008261128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28443525_12-11-2025_08_17_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28443529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28443530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28443531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28443532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28443533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28443534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28443535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28443536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28443537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28443538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28443539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28443540, '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 = 28444126 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': 4035283, 'mtr_portfolio_id': 28444126, 'created_at': datetime.datetime(2025, 11, 12, 8, 33), 'result': '0.044746628238670885', 'result_long': None, 'result_double': None}] Qualite : 0.044746628238670885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28444126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28444126_12-11-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28444126 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_P28444126_12-11-2025_08_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28444127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28444128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28444129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28444130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28444131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28444132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28444133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28444134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28444135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28444136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28444137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28444138, 'pht': 3726}}" where mtr_portfolio_id = 28444126 and dashboard_run_id = 2573983 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`=28444126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148690, 0.044746628238670885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28444126_12-11-2025_08_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28444127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28444128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28444129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28444130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28444131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28444132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28444133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28444134, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28444135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28444136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28444137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28444138, '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 = 28444580 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': 4035336, 'mtr_portfolio_id': 28444580, 'created_at': datetime.datetime(2025, 11, 12, 8, 47, 11), 'result': '0.06324347938010924', 'result_long': None, 'result_double': None}] Qualite : 0.06324347938010924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28444580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28444580_12-11-2025_08_47_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28444580 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_P28444580_12-11-2025_08_47_11.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28444618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28444619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28444620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28444621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28444622, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28444623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28444624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28444625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28444626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28444627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28444628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28444629, 'pht': 3726}}" where mtr_portfolio_id = 28444580 and dashboard_run_id = 2573983 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`=28444580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148691, 0.06324347938010924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28444580_12-11-2025_08_47_11.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28444618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28444619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28444620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28444621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28444622, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28444623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28444624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28444625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28444626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28444627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28444628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28444629, '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 = 28445271 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': 4035412, 'mtr_portfolio_id': 28445271, 'created_at': datetime.datetime(2025, 11, 12, 9, 34, 59), 'result': '0.0742530576962444', 'result_long': None, 'result_double': None}] Qualite : 0.0742530576962444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28445271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28445271_12-11-2025_09_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28445271 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_P28445271_12-11-2025_09_35_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28445278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28445279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28445280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28445282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28445283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28445284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28445285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28445286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28445287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28445288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28445289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28445290, 'pht': 3726}}" where mtr_portfolio_id = 28445271 and dashboard_run_id = 2573983 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`=28445271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148692, 0.0742530576962444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28445271_12-11-2025_09_35_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28445278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28445279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28445280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28445282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28445283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28445284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28445285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28445286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28445287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28445288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28445289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28445290, '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 = 28445824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28445824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28445824 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28445824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28445824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28445824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28445824_12-11-2025_09_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28445824 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_P28445824_12-11-2025_09_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28445825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28445826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28445827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28445828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28445829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28445830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28445831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28445832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28445833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28445834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28445835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28445836, 'pht': 3726}}" where mtr_portfolio_id = 28445824 and dashboard_run_id = 2573983 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 = 28446031 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': 4035549, 'mtr_portfolio_id': 28446031, 'created_at': datetime.datetime(2025, 11, 12, 9, 47), 'result': '0.05583152585331748', 'result_long': None, 'result_double': None}] Qualite : 0.05583152585331748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28446031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28446031_12-11-2025_09_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28446031 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_P28446031_12-11-2025_09_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28446034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28446035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28446036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28446037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28446038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28446039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28446040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28446041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28446042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28446043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28446044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28446045, 'pht': 3726}}" where mtr_portfolio_id = 28446031 and dashboard_run_id = 2573985 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`=28446031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148694, 0.05583152585331748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28446031_12-11-2025_09_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28446034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28446035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28446036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28446037, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28446038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28446039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28446040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28446041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28446042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28446043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28446044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28446045, '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 = 28446272 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': 4035573, 'mtr_portfolio_id': 28446272, 'created_at': datetime.datetime(2025, 11, 12, 10, 2, 56), 'result': '0.058284714546717666', 'result_long': None, 'result_double': None}] Qualite : 0.058284714546717666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28446272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28446272_12-11-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28446272 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_P28446272_12-11-2025_10_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28446293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28446294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28446295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28446296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28446297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28446298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28446299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28446300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28446301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28446302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28446303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28446304, 'pht': 3726}}" where mtr_portfolio_id = 28446272 and dashboard_run_id = 2573985 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`=28446272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17148695, 0.058284714546717666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28446272_12-11-2025_10_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28446293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28446294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28446295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28446296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28446297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28446298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28446299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28446300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28446301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28446302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28446303, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28446304, '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 (28438484,28438745,28439103,28439567,28440051,28440508,28440876,28441317,28442063,28442584,28442978,28443525,28444126,28444580,28445271,28445824,28446031,28446272) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,), (1393989351,), (1393989353,), (1393989396,), (1393989398,), (1393989400,), (1393989403,), (1393989407,), (1393989409,), (1393989433,), (1393989436,), (1393989438,), (1393989467,), (1393989469,), (1393989471,), (1393989474,), (1393989478,), (1393989482,), (1393989499,), (1393989502,), (1393989504,), (1393989506,), (1393989511,), (1393989547,), (1393989550,), (1393989552,), (1393989555,), (1393989559,), (1393989575,), (1393989576,), (1393989579,), (1393989581,), (1393989585,), (1393989588,), (1393989629,), (1393989631,), (1393989633,), (1393989635,), (1393989664,), (1393989667,), (1393989669,), (1393989672,), (1393989675,), (1393989678,), (1393989718,), (1393989720,), (1393989721,), (1393989722,), (1393989745,), (1393989747,), (1393989749,), (1393989788,), (1393989790,), (1393989791,), (1393989794,), (1393989799,), (1393989803,), (1393989815,), (1393989818,), (1393989820,), (1393989823,), (1393989850,), (1393989852,), (1393989854,), (1393989856,), (1393989861,), (1393989866,), (1393989882,), (1393989885,), (1393989889,), (1393989894,), (1393989901,), (1393989905,), (1393989928,), (1393989923,), (1393989925,), (1393989926,), (1393989948,), (1393989949,), (1393989950,), (1393989952,), (1393989957,), (1393989983,), (1393989985,), (1393989987,), (1393989990,), (1393989994,), (1393990013,), (1393990015,), (1393990016,), (1393990017,), (1393990058,), (1393990060,), (1393990062,), (1393990066,), (1393990071,), (1393990075,), (1393990090,), (1393990092,), (1393990094,), (1393990096,), (1393990136,), (1393990138,), (1393990140,), (1393990142,), (1393990146,), (1393990150,), (1393990164,), (1393990166,), (1393990167,), (1393990168,), (1393990209,), (1393990210,), (1393990213,), (1393990218,), (1393990220,), (1393990236,), (1393990239,), (1393990242,), (1393990247,), (1393990253,), (1393990278,), (1393990280,), (1393990283,), (1393990286,), (1393990291,), (1393990309,), (1393990312,), (1393990314,), (1393990342,), (1393990377,), (1393990412,), (1393990596,), (1393990597,), (1393990598,), (1393990601,), (1393990606,), (1393990640,), (1393990646,), (1393990652,), (1393990657,), (1393990662,), (1393990666,), (1393990702,), (1393990692,), (1393990696,), (1393990698,), (1393990700,), (1393990954,), (1393990989,), (1393991025,), (1393991081,), (1393991146,), (1393991685,), (1393991719,), (1393991751,), (1393991788,), (1393991820,), (1393991973,), (1393992002,), (1393992004,), (1393992025,), (1393992045,), (1393992049,), (1393992120,), (1393992124,), (1393992126,), (1393992163,), (1393992169,), (1393992170,), (1393992171,), (1393992174,), (1393992181,), (1393992199,), (1393992203,), (1393992209,), (1393992214,), (1393992241,), (1393992243,), (1393992244,), (1393992246,), (1393992250,), (1393992253,), (1393992270,), (1393992272,), (1393992274,), (1393992278,), (1393992282,), (1393992315,), (1393992316,), (1393992317,), (1393992319,), (1393992323,), (1393992327,), (1393992348,), (1393992350,), (1393992352,), (1393992355,), (1393992385,), (1393992388,), (1393992390,), (1393992393,), (1393992397,), (1393992419,), (1393992420,), (1393992421,), (1393992424,), (1393992429,), (1393992433,), (1393992459,), (1393992463,), (1393992466,), (1393992470,), (1393992499,), (1393992501,), (1393992503,), (1393992553,), (1393992544,), (1393992552,), (1393992816,), (1393992849,), (1393992850,), (1393992892,), (1393992895,), (1393992898,), (1393992902,), (1393992906,), (1393992927,), (1393992930,), (1393992931,), (1393992976,), (1393992979,), (1393992981,), (1393993014,), (1393993016,), (1393993018,), (1393993020,), (1393993024,), (1393993026,), (1393993069,), (1393993078,), (1393993082,), (1393993083,), (1393993086,), (1393993089,), (1393993120,), (1393993124,), (1393993127,), (1393993137,), (1393993139,), (1393993140,), (1393993142,), (1393993111,), (1393993113,), (1393993116,), (1393993170,), (1393993173,), (1393993177,), (1393993180,), (1393993183,), (1393993199,), (1393993202,), (1393993205,), (1393993208,), (1393993238,), (1393993241,), (1393993243,), (1393993245,), (1393993247,), (1393993268,), (1393993269,), (1393993270,), (1393993303,), (1393993306,), (1393993358,), (1393993360,), (1393993361,), (1393993387,), (1393993580,), (1393993582,), (1393993583,), (1393993584,), (1393993587,), (1393993608,), (1393993609,), (1393993611,), (1393993614,), (1393993645,), (1393993641,), (1393993643,), (1393993668,), (1393993670,), (1393993671,), (1393993672,), (1393993674,), (1393993708,), (1393993711,), (1393993713,), (1393993716,), (1393993738,), (1393993740,), (1393993742,), (1393993745,), (1393993750,), (1393993784,), (1393993792,), (1393993794,), (1393993797,), (1393993800,), (1393993804,), (1393993821,), (1393993824,), (1393993826,), (1393993865,), (1393993866,), (1393993867,), (1393993870,), (1393993873,), (1393993878,), (1393993894,), (1393993897,), (1393993900,), (1393993904,), (1393993910,), (1393993948,), (1393993950,), (1393993952,), (1393993955,), (1393993960,), (1393993962,), (1393993980,), (1393993983,), (1393993985,), (1393993987,), (1393993990,), (1393993994,), (1393994028,), (1393994029,), (1393994030,), (1393994054,), (1393994057,), (1393994060,), (1393994063,), (1393994092,), (1393994094,), (1393994095,), (1393994096,), (1393994099,), (1393994130,), (1393994134,), (1393994138,), (1393994178,), (1393994174,), (1393994175,), (1393994176,), (1393994554,), (1393994588,), (1393994653,), (1393995177,), (1393995211,), (1393995245,), (1393995298,), (1393995335,), (1393995372,), (1393995719,), (1393995786,), (1393995847,), (1393995880,), (1393995911,), (1393995915,), (1393996139,), (1393996156,), (1393996175,), (1393996192,), (1393996240,), (1393996243,), (1393996245,), (1393996248,), (1393996251,), (1393996253,), (1393996314,), (1393996320,), (1393996322,), (1393996724,), (1393996760,), (1393996795,), (1393996828,), (1393996863,), (1393997040,), (1393997045,), (1393997080,), (1393997124,), (1393997174,), (1393997249,), (1393997772,), (1393997820,), (1393997885,), (1393997972,), (1393998045,), (1393998204,), (1393998237,), (1393998273,), (1393998305,), (1393998313,), (1393998322,), (1393998396,), (1393998454,), (1393998548,), (1393998645,), (1393998747,), (1393999051,), (1393999053,), (1393999055,), (1393999059,), (1393999062,), (1393999066,), (1393999434,), (1393999440,), (1393999441,), (1393999442,), (1393999505,), (1393999508,), (1393999512,), (1393999519,), (1393999525,), (1393999595,), (1393999577,), (1393999586,), (1393999589,), (1393999591,), (1393999704,), (1393999732,), (1393999767,), (1393999782,), (1393999786,), (1393999913,), (1393999926,), (1393999936,), (1393999941,), (1393999945,), (1393999951,), (1393999992,), (1394000003,), (1394000004,), (1394000049,), (1394000060,), (1394000063,), (1394000066,), (1394000071,), (1394000076,), (1394000101,), (1394000103,), (1394000104,), (1394000105,), (1394000108,), (1394000135,), (1394000136,), (1394000286,), (1394000288,), (1394000291,), (1394000294,), (1394000298,), (1394000301,), (1394000329,), (1394000332,), (1394000334,), (1394000336,), (1394000365,), (1394000373,), (1394000417,), (1394000419,), (1394000421,), (1394000424,), (1394000446,), (1394000449,), (1394000451,), (1394000454,), (1394000459,), (1394000500,), (1394000503,), (1394000505,), (1394000509,), (1394000515,), (1394000543,), (1394000547,), (1394000550,), (1394000578,), (1394000580,), (1394000583,), (1394000584,), (1394000585,), (1394000587,), (1394000625,), (1394000630,), (1394000643,), (1394000644,), (1394000645,), (1394000646,), (1394000648,), (1394000614,), (1394000615,), (1394000617,), (1394000621,), (1394000660,), (1394000664,), (1394000668,), (1394000672,), (1394000691,), (1394000693,), (1394000694,), (1394000695,), (1394000697,), (1394000699,), (1394000734,), (1394000736,), (1394000748,), (1394000757,), (1394000765,), (1394000787,), (1394000790,), (1394000792,), (1394000795,), (1394000825,), (1394000833,), (1394000837,), (1394000840,), (1394000844,), (1394000847,), (1394000868,), (1394000870,), (1394000872,), (1394000902,), (1394000909,), (1394000912,), (1394000916,), (1394000921,), (1394000925,), (1394000949,), (1394000952,), (1394000955,), (1394000956,), (1394000979,), (1394000980,), (1394000981,), (1394000984,), (1394001010,), (1394001012,), (1394001016,), (1394001021,), (1394001025,), (1394001028,), (1394001057,), (1394001058,), (1394001059,), (1394001062,), (1394001065,), (1394001086,), (1394001089,), (1394001092,), (1394001095,), (1394001129,), (1394001130,), (1394001131,), (1394001132,), (1394001134,), (1394001167,), (1394001169,), (1394001170,), (1394001172,), (1394001205,), (1394001197,), (1394001201,), (1394001239,), (1394001241,), (1394001242,), (1394001244,), (1394001248,), (1394001269,), (1394001272,), (1394001273,), (1394001306,), (1394001308,), (1394001311,), (1394001323,), (1394001337,), (1394001340,), (1394001364,), (1394001367,), (1394001369,), (1394001371,), (1394001391,), (1394001393,), (1394001395,), (1394001399,), (1394001432,), (1394001434,), (1394001436,), (1394001439,), (1394001444,), (1394001446,), (1394001467,), (1394001471,), (1394001474,), (1394001477,), (1394001482,), (1394001504,), (1394001505,), (1394001506,), (1394001509,), (1394001567,), (1394001569,), (1394001571,), (1394001574,), (1394001580,), (1394001583,), (1394001605,), (1394001610,), (1394001612,), (1394001645,), (1394001646,), (1394001647,), (1394001650,), (1394001653,), (1394001657,), (1394001688,), (1394001691,), (1394001694,), (1394001697,), (1394001745,), (1394001747,), (1394001751,), (1394001755,), (1394001759,), (1394001761,), (1394001794,), (1394001779,), (1394001782,), (1394001785,), (1394001789,), (1394001827,), (1394001829,), (1394001831,), (1394001833,), (1394001836,), (1394001858,), (1394001861,), (1394001864,), (1394001873,), (1394001911,), (1394001943,), (1394002249,), (1394002279,), (1394002313,), (1394002343,), (1394002377,), (1394002414,), (1394003079,), (1394003114,), (1394003146,), (1394003203,), (1394003251,), (1394003488,), (1394003509,), (1394003540,), (1394003573,), (1394003611,), (1394003643,), (1394004042,), (1394004083,), (1394004116,), (1394004120,), (1394004298,), (1394004300,), (1394004301,), (1394004303,), (1394004306,), (1394004308,), (1394004334,), (1394004337,), (1394004340,), (1394004344,), (1394004349,), (1394004382,), (1394004389,), (1394004394,), (1394004438,), (1394004620,), (1394004670,), (1394004708,), (1394004755,), (1394004951,), (1394005136,), (1394005139,), (1394005166,), (1394005702,), (1394005739,), (1394005742,), (1394005745,), (1394005771,), (1394005773,), (1394005774,), (1394005809,), (1394005810,), (1394005812,), (1394005848,), (1394005850,), (1394005851,), (1394005853,), (1394005855,), (1394005902,), (1394005915,), (1394005918,), (1394005921,), (1394005924,), (1394005928,), (1394005978,), (1394006012,), (1394006043,), (1394006232,), (1394006234,), (1394006236,), (1394006239,), (1394006244,), (1394006269,), (1394006342,), (1394006345,), (1394006349,), (1394006351,), (1394006356,), (1394006359,), (1394006385,), (1394006389,), (1394006391,), (1394006392,), (1394006438,), (1394006449,), (1394006451,), (1394006454,), (1394006456,), (1394006422,), (1394006424,), (1394006426,), (1394006430,), (1394006433,), (1394006459,), (1394006462,), (1394006467,), (1394006471,), (1394006488,), (1394006491,), (1394006495,), (1394006499,), (1394006504,), (1394006529,), (1394006531,), (1394006532,), (1394006534,), (1394006576,), (1394006586,), (1394006619,), (1394006656,), (1394006692,), (1394006826,), (1394006829,), (1394006832,), (1394006836,), (1394006840,), (1394006844,), (1394006911,), (1394006944,), (1394006981,), (1394007009,), (1394007039,), (1394007063,), (1394007099,), (1394007136,), (1394007168,), (1394007170,), (1394007265,), (1394007268,), (1394007271,), (1394007273,), (1394007304,), (1394007306,), (1394007307,), (1394007309,), (1394007312,), (1394007314,), (1394007368,), (1394007370,), (1394007387,), (1394007401,), (1394007564,), (1394007565,), (1394007566,), (1394007568,), (1394007572,), (1394007592,), (1394007595,), (1394007602,), (1394007607,), (1394007611,), (1394007660,), (1394007661,), (1394007662,), (1394007946,), (1394007947,), (1394007949,), (1394007984,), (1394008002,), (1394008009,), (1394008141,), (1394008134,), (1394008136,), (1394008138,), (1394008158,), (1394008163,), (1394008170,), (1394008180,), (1394008190,), (1394008203,), (1394008230,), (1394008232,), (1394008233,), (1394008234,), (1394008260,), (1394008261,), (1394008366,), (1394008397,), (1394008428,), (1394008449,), (1394008476,), (1394008513,), (1394008571,), (1394008725,), (1394008728,), (1394008731,), (1394008790,), (1394012207,), (1394010188,), (1394011359,), (1394012415,), (1394012479,), (1394012481,), (1394012487,), (1394012525,), (1394012537,), (1394012571,), (1394012606,), (1394012727,), (1394012728,), (1394012729,), (1394012731,), (1394012735,), (1394012761,), (1394012764,), (1394012767,), (1394012770,), (1394012774,), (1394012794,), (1394012796,), (1394012797,), (1394012825,), (1394012826,), (1394012827,), (1394012828,), (1394012831,), (1394012851,), (1394012855,), (1394012859,), (1394012864,), (1394012869,), (1394012910,), (1394012914,), (1394012926,), (1394012927,), (1394012954,), (1394012956,), (1394012983,), (1394013242,), (1394013221,), (1394013238,), (1394013240,), (1394013350,), (1394013352,), (1394013353,), (1394013390,), (1394013393,), (1394013395,), (1394013397,), (1394013400,), (1394013463,), (1394013465,), (1394013467,), (1394013470,), (1394013472,), (1394013496,), (1394013500,), (1394013503,), (1394013507,), (1394013512,), (1394013516,), (1394013538,), (1394013540,), (1394013542,), (1394013545,), (1394013549,), (1394013888,), (1394013891,), (1394013893,), (1394013895,), (1394013899,), (1394013903,), (1394013928,), (1394013930,), (1394013931,), (1394013933,), (1394013937,), (1394013959,), (1394013961,), (1394013966,), (1394013972,), (1394013977,), (1394013980,), (1394014008,), (1394014010,), (1394014013,), (1394014033,), (1394014036,), (1394014039,), (1394014043,), (1394014049,), (1394014054,), (1394014083,), (1394014084,), (1394014085,), (1394014087,), (1394014307,), (1394014313,), (1394014319,), (1394014324,), (1394014329,), (1394014785,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12112025': {'nb_upload': 63, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28446272]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1394014785] map_info['map_portfolio_photo'] : {28446272: [1394014785, 1394014329, 1394014324, 1394014319, 1394014313, 1394014307, 1394014087, 1394014085, 1394014084, 1394014083, 1394014054, 1394014049, 1394014043, 1394014039, 1394014036, 1394014033, 1394014013, 1394014010, 1394014008, 1394013980, 1394013977, 1394013972, 1394013966, 1394013961, 1394013959, 1394013937, 1394013933, 1394013931, 1394013930, 1394013928, 1394013903, 1394013899, 1394013895, 1394013893, 1394013891, 1394013888, 1394013549, 1394013545, 1394013542, 1394013540, 1394013538, 1394013516, 1394013512, 1394013507, 1394013503, 1394013500, 1394013496, 1394013472, 1394013470, 1394013467, 1394013465, 1394013463, 1394013400, 1394013397, 1394013395, 1394013393, 1394013390, 1394013353, 1394013352, 1394013350, 1394013240, 1394013238, 1394013221]} final : True mtd_id 4302 list_pids : [1394014785] Looping around the photos to save general results len do output : 1 /28446272Didn'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, '4035573') ('4302', '28446272', '1394014785', None, None, None, None, None, '4035573') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28446272', 'None', None, None, None, None, '4035573'), ('4302', '28446272', '1394014785', None, None, None, None, None, '4035573')] time used for this insertion : 0.015277385711669922 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3565521240234375 time spend to save output : 0.015476703643798828 total time spend for step 5 : 1.3720288276672363 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 (4035573) 1.97user 2.42system 0:10.95elapsed 40%CPU (0avgtext+0avgdata 154916maxresident)k 280inputs+10024outputs (4major+62024minor)pagefaults 0swaps