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 : 2959346 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 (4233689) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4233689) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460076 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4233689'] with mtr_portfolio_ids : ['29460076'] and first list_photo_ids : [] new path : /proc/2959346/ Name: python3 Umask: 0002 State: R (running) Tgid: 2959346 Ngid: 0 Pid: 2959346 PPid: 2959345 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2959346 NSpid: 2959346 NSpgid: 2958274 NSsid: 2958274 VmPeak: 1113372 kB VmSize: 1113372 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105152 kB VmRSS: 105152 kB RssAnon: 66312 kB RssFile: 38840 kB RssShmem: 0 kB VmData: 872100 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2959346', 'Ngid': '0', 'Pid': '2959346', 'PPid': '2959345', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2959346', 'NSpid': '2959346', 'NSpgid': '2958274', 'NSsid': '2958274', 'VmPeak': '1113372 kB', 'VmSize': '1113372 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105152 kB', 'VmRSS': '105152 kB', 'RssAnon': '66312 kB', 'RssFile': '38840 kB', 'RssShmem': '0 kB', 'VmData': '872100 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2959346', '1113372', '0', '1113372', '872100', '105152', b'', 'marlene', '4233689') 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 (29460076) 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 (4233689 ) ) 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 (29460076) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399596106, 'portfolio_id': 29460076}, {'photo_id': 1399596105, 'portfolio_id': 29460076}, {'photo_id': 1399596101, 'portfolio_id': 29460076}, {'photo_id': 1399596079, 'portfolio_id': 29460076}, {'photo_id': 1399596077, 'portfolio_id': 29460076}, {'photo_id': 1399596075, 'portfolio_id': 29460076}, {'photo_id': 1399596060, 'portfolio_id': 29460076}, {'photo_id': 1399596057, 'portfolio_id': 29460076}, {'photo_id': 1399596054, 'portfolio_id': 29460076}, {'photo_id': 1399596051, 'portfolio_id': 29460076}, {'photo_id': 1399596050, 'portfolio_id': 29460076}, {'photo_id': 1399596049, 'portfolio_id': 29460076}, {'photo_id': 1399596047, 'portfolio_id': 29460076}, {'photo_id': 1399596045, 'portfolio_id': 29460076}, {'photo_id': 1399596029, 'portfolio_id': 29460076}, {'photo_id': 1399596026, 'portfolio_id': 29460076}, {'photo_id': 1399596023, 'portfolio_id': 29460076}, {'photo_id': 1399596020, 'portfolio_id': 29460076}, {'photo_id': 1399596019, 'portfolio_id': 29460076}, {'photo_id': 1399596018, 'portfolio_id': 29460076}, {'photo_id': 1399596001, 'portfolio_id': 29460076}, {'photo_id': 1399596000, 'portfolio_id': 29460076}, {'photo_id': 1399595999, 'portfolio_id': 29460076}, {'photo_id': 1399595957, 'portfolio_id': 29460076}, {'photo_id': 1399595954, 'portfolio_id': 29460076}, {'photo_id': 1399595953, 'portfolio_id': 29460076}, {'photo_id': 1399595952, 'portfolio_id': 29460076}, {'photo_id': 1399595951, 'portfolio_id': 29460076}, {'photo_id': 1399595936, 'portfolio_id': 29460076}, {'photo_id': 1399595933, 'portfolio_id': 29460076}, {'photo_id': 1399595932, 'portfolio_id': 29460076}, {'photo_id': 1399595931, 'portfolio_id': 29460076}, {'photo_id': 1399595930, 'portfolio_id': 29460076}, {'photo_id': 1399595910, 'portfolio_id': 29460076}, {'photo_id': 1399595909, 'portfolio_id': 29460076}, {'photo_id': 1399595908, 'portfolio_id': 29460076}, {'photo_id': 1399595907, 'portfolio_id': 29460076}, {'photo_id': 1399595885, 'portfolio_id': 29460076}, {'photo_id': 1399595884, 'portfolio_id': 29460076}, {'photo_id': 1399595883, 'portfolio_id': 29460076}, {'photo_id': 1399595882, 'portfolio_id': 29460076}, {'photo_id': 1399595843, 'portfolio_id': 29460076}, {'photo_id': 1399595842, 'portfolio_id': 29460076}, {'photo_id': 1399595841, 'portfolio_id': 29460076}, {'photo_id': 1399595829, 'portfolio_id': 29460076}, {'photo_id': 1399595828, 'portfolio_id': 29460076}, {'photo_id': 1399595827, 'portfolio_id': 29460076}, {'photo_id': 1399595826, 'portfolio_id': 29460076}] map_portfolio_id_photo_id: {29460076: [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050, 1399596049, 1399596047, 1399596045, 1399596029, 1399596026, 1399596023, 1399596020, 1399596019, 1399596018, 1399596001, 1399596000, 1399595999, 1399595957, 1399595954, 1399595953, 1399595952, 1399595951, 1399595936, 1399595933, 1399595932, 1399595931, 1399595930, 1399595910, 1399595909, 1399595908, 1399595907, 1399595885, 1399595884, 1399595883, 1399595882, 1399595843, 1399595842, 1399595841, 1399595829, 1399595828, 1399595827, 1399595826]} ##### 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.019327640533447266 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 16 05:56: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 (29460076) 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 : 29460076 get user id for portfolio 29460076 get sub ptf for main ptf 29460076, type 3726 and hashtags ['metal', 'papier', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'kraft', 'mal_croppe', 'autre_refus', 'environnement', 'Carton_brun', 'plastique', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29460076 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','mal_croppe','autre_refus','environnement','Carton_brun','plastique','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29460076 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','mal_croppe','autre_refus','environnement','Carton_brun','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29460076, 'sub_port_id': 29460079, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081508, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'autre_refus': {'main_port_id': 29460076, 'sub_port_id': 29460080, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081509, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'kraft': {'main_port_id': 29460076, 'sub_port_id': 29460081, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081510, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'papier': {'main_port_id': 29460076, 'sub_port_id': 29460082, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081511, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'metal': {'main_port_id': 29460076, 'sub_port_id': 29460083, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081512, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'environnement': {'main_port_id': 29460076, 'sub_port_id': 29460084, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081513, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'flou': {'main_port_id': 29460076, 'sub_port_id': 29460085, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081514, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29460076, 'sub_port_id': 29460086, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081515, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'Carton_gris': {'main_port_id': 29460076, 'sub_port_id': 29460087, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081516, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'plastique': {'main_port_id': 29460076, 'sub_port_id': 29460088, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081517, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'cartonnette': {'main_port_id': 29460076, 'sub_port_id': 29460089, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081518, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}, 'mal_croppe': {'main_port_id': 29460076, 'sub_port_id': 29460090, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081519, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29460079 , 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=29460076 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 (29460079) result : ((1399595974,), (1399595995,), (1399595996,), (1399596102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460080 , 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=29460076 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 (29460080) result : ((1399595925,), (1399595969,), (1399596036,), (1399596094,), (1399596095,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460081 , 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=29460076 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 (29460081) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460082 , 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=29460076 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 (29460082) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460083 , 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=29460076 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 (29460083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460084 , 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=29460076 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 (29460084) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460085 , 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=29460076 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 (29460085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460086 , 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=29460076 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 (29460086) result : ((1399595924,), (1399595961,), (1399595962,), (1399595963,), (1399595964,), (1399595965,), (1399595966,), (1399595967,), (1399595988,), (1399595989,), (1399595991,), (1399595992,), (1399595993,), (1399596032,), (1399596033,), (1399596034,), (1399596035,), (1399596090,), (1399596091,), (1399596092,), (1399596093,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460087 , 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=29460076 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 (29460087) result : ((1399595926,), (1399595927,), (1399595928,), (1399595929,), (1399595970,), (1399595971,), (1399595972,), (1399596037,), (1399596038,), (1399596096,), (1399596097,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460088 , 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=29460076 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 (29460088) result : ((1399596103,), (1399596104,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460089 , 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=29460076 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 (29460089) result : ((1399595973,), (1399595994,), (1399596040,), (1399596041,), (1399596098,), (1399596099,), (1399596100,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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 29460090 , 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=29460076 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 (29460090) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29460076) result : ((1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) 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 (1399596000) 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`=29460076 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','mal_croppe','autre_refus','environnement','Carton_brun','plastique','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29460076 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','Teint_Dans_La_Masse','Carton_gris','flou','kraft','mal_croppe','autre_refus','environnement','Carton_brun','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29460076, 'sub_port_id': 29460091, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081520, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'autre_refus': {'main_port_id': 29460076, 'sub_port_id': 29460092, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081521, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'kraft': {'main_port_id': 29460076, 'sub_port_id': 29460093, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081522, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'papier': {'main_port_id': 29460076, 'sub_port_id': 29460094, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081523, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'metal': {'main_port_id': 29460076, 'sub_port_id': 29460095, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081524, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'environnement': {'main_port_id': 29460076, 'sub_port_id': 29460096, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081525, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'flou': {'main_port_id': 29460076, 'sub_port_id': 29460097, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081526, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 29460076, 'sub_port_id': 29460098, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081527, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'Carton_gris': {'main_port_id': 29460076, 'sub_port_id': 29460099, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081528, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'plastique': {'main_port_id': 29460076, 'sub_port_id': 29460100, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081529, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'cartonnette': {'main_port_id': 29460076, 'sub_port_id': 29460101, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081530, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}, 'mal_croppe': {'main_port_id': 29460076, 'sub_port_id': 29460102, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20081531, 'last_updated_at': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 5, 54, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 5, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460088 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29460102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29460090 lien utilise dans velours : https://marlene.fotonower.com/velours/29460091,29460092,29460093,29460094,29460095,29460096,29460097,29460098,29460099,29460100,29460101,29460102?tags=Carton_brun,autre_refus,kraft,papier,metal,environnement,flou,Teint_Dans_La_Masse,Carton_gris,plastique,cartonnette,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29460076]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] map_info['map_portfolio_photo'] : {29460076: [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050, 1399596049, 1399596047, 1399596045, 1399596029, 1399596026, 1399596023, 1399596020, 1399596019, 1399596018, 1399596001, 1399596000, 1399595999, 1399595957, 1399595954, 1399595953, 1399595952, 1399595951, 1399595936, 1399595933, 1399595932, 1399595931, 1399595930, 1399595910, 1399595909, 1399595908, 1399595907, 1399595885, 1399595884, 1399595883, 1399595882, 1399595843, 1399595842, 1399595841, 1399595829, 1399595828, 1399595827, 1399595826]} final : False mtd_id 4302 list_pids : [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] Looping around the photos to save general results len do output : 1 /29460076. 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, '4233689') ('4302', '29460076', '1399596106', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29460076', "{'Carton_brun': 29460079, 'autre_refus': 29460080, 'kraft': 29460081, 'papier': 29460082, 'metal': 29460083, 'environnement': 29460084, 'flou': 29460085, 'Teint_Dans_La_Masse': 29460086, 'Carton_gris': 29460087, 'plastique': 29460088, 'cartonnette': 29460089, 'mal_croppe': 29460090}", None, None, None, None, '4233689'), ('4302', '29460076', '1399596106', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689')] time used for this insertion : 0.016714096069335938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5713880062103271 time spend to save output : 0.017044544219970703 total time spend for step 1 : 0.5884325504302979 step2:final Tue Dec 16 05:56: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 (29460076) 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 29460076 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399595829,1399595828,1399595827,1399595826,1399595843,1399595842,1399595841,1399595885,1399595884,1399595883,1399595882,1399595910,1399595909,1399595908,1399595907,1399595936,1399595933,1399595932,1399595931,1399595930,1399595957,1399595954,1399595953,1399595952,1399595951,1399596049,1399596001,1399596000,1399596047,1399596045,1399595999,1399596029,1399596026,1399596023,1399596020,1399596019,1399596018,1399596060,1399596057,1399596054,1399596051,1399596050,1399596079,1399596077,1399596075,1399596106,1399596105,1399596101); 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([29460076]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} new output for save of step final : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] map_info['map_portfolio_photo'] : {29460076: [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050, 1399596049, 1399596047, 1399596045, 1399596029, 1399596026, 1399596023, 1399596020, 1399596019, 1399596018, 1399596001, 1399596000, 1399595999, 1399595957, 1399595954, 1399595953, 1399595952, 1399595951, 1399595936, 1399595933, 1399595932, 1399595931, 1399595930, 1399595910, 1399595909, 1399595908, 1399595907, 1399595885, 1399595884, 1399595883, 1399595882, 1399595843, 1399595842, 1399595841, 1399595829, 1399595828, 1399595827, 1399595826]} final : False mtd_id 4302 list_pids : [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] Looping around the photos to save general results len do output : 11 /1399596106.Didn't retrieve data . /1399596105.Didn't retrieve data . /1399596101.Didn't retrieve data . /1399596079.Didn't retrieve data . /1399596077.Didn't retrieve data . /1399596075.Didn't retrieve data . /1399596060.Didn't retrieve data . /1399596057.Didn't retrieve data . /1399596054.Didn't retrieve data . /1399596051.Didn't retrieve data . /1399596050.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, '4233689') ('4302', '29460076', '1399596106', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '29460076', '1399596106', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596105', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596101', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596079', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596077', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596075', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596060', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596057', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596054', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596051', '0.05191618392210344', None, None, None, None, '4233689'), ('4302', '29460076', '1399596050', '0.05191618392210344', None, None, None, None, '4233689')] time used for this insertion : 0.015365362167358398 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07994890213012695 time spend to save output : 0.015876293182373047 total time spend for step 2 : 0.0958251953125 step3:velours_tree Tue Dec 16 05:56: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 : {29460076: [{'Carton_brun': 29460079, 'autre_refus': 29460080, 'kraft': 29460081, 'papier': 29460082, 'metal': 29460083, 'environnement': 29460084, 'flou': 29460085, 'Teint_Dans_La_Masse': 29460086, 'Carton_gris': 29460087, 'plastique': 29460088, 'cartonnette': 29460089, 'mal_croppe': 29460090}]} input_args_next_step : {29460076: ()} output_args : {29460076: [{'Carton_brun': 29460079, 'autre_refus': 29460080, 'kraft': 29460081, 'papier': 29460082, 'metal': 29460083, 'environnement': 29460084, 'flou': 29460085, 'Teint_Dans_La_Masse': 29460086, 'Carton_gris': 29460087, 'plastique': 29460088, 'cartonnette': 29460089, 'mal_croppe': 29460090}]} args : 29460076 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 : ({'Carton_brun': 29460079, 'autre_refus': 29460080, 'kraft': 29460081, 'papier': 29460082, 'metal': 29460083, 'environnement': 29460084, 'flou': 29460085, 'Teint_Dans_La_Masse': 29460086, 'Carton_gris': 29460087, 'plastique': 29460088, 'cartonnette': 29460089, 'mal_croppe': 29460090},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29460076) 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([29460076]) 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.24170589447021484 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.24175500869750977 step4:send_mail_cod Tue Dec 16 05:56: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 : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} input_args_next_step : {1399596106: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596106 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596105 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596101 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596079 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596077 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596075 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596060 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596057 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596054 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596051 depend.output_id : 0 input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ()} output_args : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',)} args : 1399596050 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29460076: [{'Carton_brun': 29460079, 'autre_refus': 29460080, 'kraft': 29460081, 'papier': 29460082, 'metal': 29460083, 'environnement': 29460084, 'flou': 29460085, 'Teint_Dans_La_Masse': 29460086, 'Carton_gris': 29460087, 'plastique': 29460088, 'cartonnette': 29460089, 'mal_croppe': 29460090}]} input_args_next_step : {1399596106: ('0.05191618392210344',), 1399596105: ('0.05191618392210344',), 1399596101: ('0.05191618392210344',), 1399596079: ('0.05191618392210344',), 1399596077: ('0.05191618392210344',), 1399596075: ('0.05191618392210344',), 1399596060: ('0.05191618392210344',), 1399596057: ('0.05191618392210344',), 1399596054: ('0.05191618392210344',), 1399596051: ('0.05191618392210344',), 1399596050: ('0.05191618392210344',), 29460076: ()} output_args : {29460076: [{'Carton_brun': 29460079, 'autre_refus': 29460080, 'kraft': 29460081, 'papier': 29460082, 'metal': 29460083, 'environnement': 29460084, 'flou': 29460085, 'Teint_Dans_La_Masse': 29460086, 'Carton_gris': 29460087, 'plastique': 29460088, 'cartonnette': 29460089, 'mal_croppe': 29460090}]} args : 29460076 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 :12, first value : ('0.05191618392210344',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29460076) 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 (1399596106,1399596105,1399596101,1399596079,1399596077,1399596075,1399596060,1399596057,1399596054,1399596051,1399596050) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399596050 begin to download photo : 1399596057 begin to download photo : 1399596077 begin to download photo : 1399596105 download finish for photo 1399596077 begin to download photo : 1399596079 download finish for photo 1399596105 begin to download photo : 1399596106 download finish for photo 1399596057 begin to download photo : 1399596060 download finish for photo 1399596050 begin to download photo : 1399596051 download finish for photo 1399596106 download finish for photo 1399596079 begin to download photo : 1399596101 download finish for photo 1399596060 begin to download photo : 1399596075 download finish for photo 1399596051 begin to download photo : 1399596054 download finish for photo 1399596101 download finish for photo 1399596075 download finish for photo 1399596054 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29460076_16-12-2025_05_56_57.pdf 29460080 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=29460080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399595925: '1765860567_3858836_1399595885_551cb1616ed88ec1c2e9657387aa406f_rle_crop_4071557538_0.png', 1399595969: '1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557668_0.png', 1399596036: '1765860785_3870180_1399595909_3a35ec56b4ca5117bb1f0c16c3bd7185_rle_crop_4071557995_0.png', 1399596094: '1765860927_3876122_1399596023_c9f5086f8bf155175deb1a53533663fe_rle_crop_4071558356_0.png', 1399596095: '1765860927_3876122_1399596020_862a74461f25feb9547ce6fd18a7d8ee_rle_crop_4071558369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f3324e7c0402ac6df39bfa261b3ed256_89287818.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/867e2ff027185dbe4382a52372e100d5_62379177.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4b6659b7ad57905775c09a77c6759802_55477914.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/9ea0ef64a31347f67424b3970a1d9987_29052562.png change filename to text .imagette294600801765861017/ imagette294600801765861017/1765860567_3858836_1399595885_551cb1616ed88ec1c2e9657387aa406f_rle_crop_4071557538_0.png.png imagette294600801765861017/1765860785_3870180_1399595909_3a35ec56b4ca5117bb1f0c16c3bd7185_rle_crop_4071557995_0.png.png imagette294600801765861017/1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557668_0.png.png imagette294600801765861017/1765860927_3876122_1399596023_c9f5086f8bf155175deb1a53533663fe_rle_crop_4071558356_0.png.png imagette294600801765861017/1765860927_3876122_1399596020_862a74461f25feb9547ce6fd18a7d8ee_rle_crop_4071558369_0.png.png imagette294600811765861017/ imagette294600831765861017/ imagette294600851765861017/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c2a9b6e6c42946ce5c0b3efb43c18408_26762698.png imagette294600801765861017 29460081 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=29460081 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294600811765861017 29460083 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=29460083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294600831765861017 29460085 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=29460085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294600851765861017 29460088 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=29460088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399596103: '1765860927_3876122_1399596023_c9f5086f8bf155175deb1a53533663fe_rle_crop_4071558358_0.png', 1399596104: '1765860927_3876122_1399596020_862a74461f25feb9547ce6fd18a7d8ee_rle_crop_4071558366_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3cd7ab5f717f0b1b8692a223d4af60ed_88353758.png change filename to text .imagette294600881765861017/ imagette294600881765861017/1765860927_3876122_1399596023_c9f5086f8bf155175deb1a53533663fe_rle_crop_4071558358_0.png.png imagette294600881765861017/1765860927_3876122_1399596020_862a74461f25feb9547ce6fd18a7d8ee_rle_crop_4071558366_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/09c7efdab3eaf7cb3432b485a84bcb93_88470229.png imagette294600881765861017 29460089 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=29460089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399595973: '1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557697_0.png', 1399595994: '1765860687_3864946_1399595931_d52055f2f431c9ba39f67aa2791a7d4b_rle_crop_4071557829_0.png', 1399596040: '1765860785_3870180_1399595907_e68685c960640437206c100a522a451f_rle_crop_4071558028_0.png', 1399596041: '1765860785_3870180_1399595907_e68685c960640437206c100a522a451f_rle_crop_4071558029_0.png', 1399596098: '1765860927_3876122_1399596019_a1852f6fd66b82aa9796a9b68df88f84_rle_crop_4071558381_0.png', 1399596099: '1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558395_0.png', 1399596100: '1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558396_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/da9583524107d8a6284b095723d5bc83_71066772.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3f7d6b843093a38a4746163391be6f98_98099243.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7b29a4abdbeb89a3865d4b791b91deca_95543059.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/60592a039ccd33fbea7b76c20932b1ca_26249672.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/21ced8148f6f5345d00d0559c755cf8b_70833100.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5f70581aae3d29927654b035fd5ad83e_50951707.png change filename to text .imagette294600891765861018/ imagette294600891765861018/1765860785_3870180_1399595907_e68685c960640437206c100a522a451f_rle_crop_4071558029_0.png.png imagette294600891765861018/1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557697_0.png.png imagette294600891765861018/1765860687_3864946_1399595931_d52055f2f431c9ba39f67aa2791a7d4b_rle_crop_4071557829_0.png.png imagette294600891765861018/1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558396_0.png.png imagette294600891765861018/1765860927_3876122_1399596019_a1852f6fd66b82aa9796a9b68df88f84_rle_crop_4071558381_0.png.png imagette294600891765861018/1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558395_0.png.png imagette294600891765861018/1765860785_3870180_1399595907_e68685c960640437206c100a522a451f_rle_crop_4071558028_0.png.png imagette294600901765861018/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/cb6f4a7a7b1ecbac08035b77f03af364_9449741.png imagette294600891765861018 29460090 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=29460090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294600901765861018 29460079 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=29460079 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399595974: '1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557670_0.png', 1399595995: '1765860687_3864946_1399595931_d52055f2f431c9ba39f67aa2791a7d4b_rle_crop_4071557830_0.png', 1399595996: '1765860687_3864946_1399595930_f60d387986aeb7b5d0fe803194bef3aa_rle_crop_4071557840_0.png', 1399596102: '1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558402_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/aa17bd64fd395182d772785e898b4b9e_95152652.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/308abd18d1efde36ce5c7b90836268d0_29744222.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7906e20ccaef68379a51d8606a869aa4_60397165.png change filename to text .imagette294600791765861018/ imagette294600791765861018/1765860687_3864946_1399595930_f60d387986aeb7b5d0fe803194bef3aa_rle_crop_4071557840_0.png.png imagette294600791765861018/1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557670_0.png.png imagette294600791765861018/1765860687_3864946_1399595931_d52055f2f431c9ba39f67aa2791a7d4b_rle_crop_4071557830_0.png.png imagette294600791765861018/1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558402_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a95ae3c98267150088b39e7a35560e37_71408264.png imagette294600791765861018 29460086 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=29460086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399595991: '1765860687_3864946_1399595931_d52055f2f431c9ba39f67aa2791a7d4b_rle_crop_4071557835_0.png', 1399596093: '1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558405_0.png', 1399596092: '1765860927_3876122_1399596019_a1852f6fd66b82aa9796a9b68df88f84_rle_crop_4071558391_0.png', 1399596091: '1765860927_3876122_1399596026_f417694f97b1be8eb3b0e33f4035a8e2_rle_crop_4071558345_0.png', 1399596090: '1765860927_3876122_1399596026_f417694f97b1be8eb3b0e33f4035a8e2_rle_crop_4071558346_0.png', 1399596035: '1765860785_3870180_1399595908_329113b15173244697e151d137222c8b_rle_crop_4071558014_0.png', 1399596034: '1765860785_3870180_1399595908_329113b15173244697e151d137222c8b_rle_crop_4071558017_0.png', 1399596033: '1765860785_3870180_1399595908_329113b15173244697e151d137222c8b_rle_crop_4071558009_0.png', 1399596032: '1765860785_3870180_1399595909_3a35ec56b4ca5117bb1f0c16c3bd7185_rle_crop_4071558000_0.png', 1399595993: '1765860687_3864946_1399595930_f60d387986aeb7b5d0fe803194bef3aa_rle_crop_4071557839_0.png', 1399595992: '1765860687_3864946_1399595930_f60d387986aeb7b5d0fe803194bef3aa_rle_crop_4071557845_0.png', 1399595924: '1765860567_3858836_1399595885_551cb1616ed88ec1c2e9657387aa406f_rle_crop_4071557543_0.png', 1399595989: '1765860687_3864946_1399595932_aa69a71d77666d6ab16fafe26124e612_rle_crop_4071557825_0.png', 1399595988: '1765860687_3864946_1399595933_9f90e0f77e3f4851c55fb67cdfd10d64_rle_crop_4071557813_0.png', 1399595967: '1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557705_0.png', 1399595966: '1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557704_0.png', 1399595965: '1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557707_0.png', 1399595964: '1765860667_3863684_1399595883_deb3b87a8c4de971ecb8b07b9f9f8c82_rle_crop_4071557695_0.png', 1399595963: '1765860667_3863684_1399595883_deb3b87a8c4de971ecb8b07b9f9f8c82_rle_crop_4071557689_0.png', 1399595962: '1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557677_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/e373d14148592d85aff3a6b397897661_30016226.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0e97754f8a08e4103a9b7fff3165bac8_57170599.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3095bd3bcf517a53977e4b0fb31295fa_41177034.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a05e579c22abf8f8866104e0c2e40fd5_50350221.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5808a670b08d3394db48d05b20232049_96141667.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f53098c412a99f1c0b09be000b0c0f43_21076576.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f4ee682b8970ae7766040bb2ff4b548b_33847881.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ff2c2a41886c45241f736ea6896bce90_40405199.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/608e0b14b2ced541815fa6efe4ee55ff_55560937.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/303476fdd51bf1f81f23ad911736c5fc_79251685.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a8e81ddb9250fe245b412b7a86962de1_28768219.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/909048a483834af309813b26f8778efb_24502365.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6bf0c966054bad7a9c56b7957629f2c4_31024109.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5a05f61ba4a2c96aba437d76178a0953_80233972.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a2f5f7a170fabc599f2de3d8bf5e64b1_69025268.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/163b416844b2f3074875d5c386a6a5d7_44918997.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a4a4a8ff7e941b02d97b0158543c0119_1813872.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a5af3d5aeea8d7d8a1e5c48b6b18c5a5_39804315.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/94f8a14ea72e4af203d7caa5d4a296b8_95430100.png change filename to text .imagette294600861765861018/ imagette294600861765861018/1765860927_3876122_1399596018_8b77e4d9ec90e415f420f4658ffa27e6_rle_crop_4071558405_0.png.png imagette294600861765861018/1765860687_3864946_1399595933_9f90e0f77e3f4851c55fb67cdfd10d64_rle_crop_4071557813_0.png.png imagette294600861765861018/1765860667_3863684_1399595883_deb3b87a8c4de971ecb8b07b9f9f8c82_rle_crop_4071557689_0.png.png imagette294600861765861018/1765860785_3870180_1399595908_329113b15173244697e151d137222c8b_rle_crop_4071558014_0.png.png imagette294600861765861018/1765860687_3864946_1399595930_f60d387986aeb7b5d0fe803194bef3aa_rle_crop_4071557845_0.png.png imagette294600861765861018/1765860567_3858836_1399595885_551cb1616ed88ec1c2e9657387aa406f_rle_crop_4071557543_0.png.png imagette294600861765861018/1765860785_3870180_1399595908_329113b15173244697e151d137222c8b_rle_crop_4071558017_0.png.png imagette294600861765861018/1765860667_3863684_1399595883_deb3b87a8c4de971ecb8b07b9f9f8c82_rle_crop_4071557695_0.png.png imagette294600861765861018/1765860927_3876122_1399596026_f417694f97b1be8eb3b0e33f4035a8e2_rle_crop_4071558345_0.png.png imagette294600861765861018/1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557707_0.png.png imagette294600861765861018/1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557704_0.png.png imagette294600861765861018/1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557677_0.png.png imagette294600861765861018/1765860687_3864946_1399595930_f60d387986aeb7b5d0fe803194bef3aa_rle_crop_4071557839_0.png.png imagette294600861765861018/1765860687_3864946_1399595932_aa69a71d77666d6ab16fafe26124e612_rle_crop_4071557825_0.png.png imagette294600861765861018/1765860687_3864946_1399595931_d52055f2f431c9ba39f67aa2791a7d4b_rle_crop_4071557835_0.png.png imagette294600861765861018/1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557705_0.png.png imagette294600861765861018/1765860927_3876122_1399596026_f417694f97b1be8eb3b0e33f4035a8e2_rle_crop_4071558346_0.png.png imagette294600861765861018/1765860785_3870180_1399595909_3a35ec56b4ca5117bb1f0c16c3bd7185_rle_crop_4071558000_0.png.png imagette294600861765861018/1765860927_3876122_1399596019_a1852f6fd66b82aa9796a9b68df88f84_rle_crop_4071558391_0.png.png imagette294600861765861018/1765860785_3870180_1399595908_329113b15173244697e151d137222c8b_rle_crop_4071558009_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0cbb356e8969205380fce7a608bb9700_91789363.png imagette294600861765861018 29460087 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=29460087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399595926: '1765860567_3858836_1399595842_4eef919a70cabf631f41a34ae9e7fdec_rle_crop_4071557553_0.png', 1399595927: '1765860567_3858836_1399595842_4eef919a70cabf631f41a34ae9e7fdec_rle_crop_4071557552_0.png', 1399595928: '1765860567_3858836_1399595842_4eef919a70cabf631f41a34ae9e7fdec_rle_crop_4071557550_0.png', 1399595929: '1765860567_3858836_1399595841_057da9215ec44b0aa35a03b68d076bd7_rle_crop_4071557570_0.png', 1399595970: '1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557671_0.png', 1399595971: '1765860667_3863684_1399595883_deb3b87a8c4de971ecb8b07b9f9f8c82_rle_crop_4071557680_0.png', 1399595972: '1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557701_0.png', 1399596037: '1765860785_3870180_1399595936_bb875c843d1895cbea97d7255d785af1_rle_crop_4071557980_0.png', 1399596038: '1765860785_3870180_1399595907_e68685c960640437206c100a522a451f_rle_crop_4071558030_0.png', 1399596096: '1765860927_3876122_1399596020_862a74461f25feb9547ce6fd18a7d8ee_rle_crop_4071558367_0.png', 1399596097: '1765860927_3876122_1399596019_a1852f6fd66b82aa9796a9b68df88f84_rle_crop_4071558384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6f72978136a02fead9edd4c5c59637b4_26861619.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6c65d075202cbb3b31e93b80413198cb_97312286.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/da84bf2b6486586711bca55066735481_665111.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4c6e19238c954ea30db2beef91dde0a8_35820536.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/6171fa37bba2652e97fc91282164797e_61425400.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4be424cbb71e8888bd3aa55d91e60dc3_80373490.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ed273d3f048de7c95ca11a0cc703be35_98218632.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c60df1be0b0489168f13b26eb78b690e_57162317.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/81dc234c0ac396dd21bcc696e0bdf5b4_71936725.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/1d6d9df0c9850c17c47cacd0c25e4fa7_72512753.png change filename to text .imagette294600871765861020/ imagette294600871765861020/1765860567_3858836_1399595842_4eef919a70cabf631f41a34ae9e7fdec_rle_crop_4071557553_0.png.png imagette294600871765861020/1765860785_3870180_1399595907_e68685c960640437206c100a522a451f_rle_crop_4071558030_0.png.png imagette294600871765861020/1765860667_3863684_1399595882_bdac32a9963a1efce594c4ba8cf92bb0_rle_crop_4071557701_0.png.png imagette294600871765861020/1765860567_3858836_1399595842_4eef919a70cabf631f41a34ae9e7fdec_rle_crop_4071557550_0.png.png imagette294600871765861020/1765860567_3858836_1399595841_057da9215ec44b0aa35a03b68d076bd7_rle_crop_4071557570_0.png.png imagette294600871765861020/1765860927_3876122_1399596020_862a74461f25feb9547ce6fd18a7d8ee_rle_crop_4071558367_0.png.png imagette294600871765861020/1765860785_3870180_1399595936_bb875c843d1895cbea97d7255d785af1_rle_crop_4071557980_0.png.png imagette294600871765861020/1765860667_3863684_1399595884_455802286eb15b56b992c2fda57f238c_rle_crop_4071557671_0.png.png imagette294600871765861020/1765860667_3863684_1399595883_deb3b87a8c4de971ecb8b07b9f9f8c82_rle_crop_4071557680_0.png.png imagette294600871765861020/1765860927_3876122_1399596019_a1852f6fd66b82aa9796a9b68df88f84_rle_crop_4071558384_0.png.png imagette294600871765861020/1765860567_3858836_1399595842_4eef919a70cabf631f41a34ae9e7fdec_rle_crop_4071557552_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/06d8b727db61afa0c2af432fc417454a_64456862.png imagette294600871765861020 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29460076 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29460091,29460092,29460093,29460094,29460095,29460096,29460097,29460098,29460099,29460100,29460101,29460102?tags=Carton_brun,autre_refus,kraft,papier,metal,environnement,flou,Teint_Dans_La_Masse,Carton_gris,plastique,cartonnette,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1399596106] : ('0.05191618392210344',) no score found for photo 1399596106 We are sending mail with results at report@fotonower.com args[1399596105] : ('0.05191618392210344',) no score found for photo 1399596105 We are sending mail with results at report@fotonower.com args[1399596101] : ('0.05191618392210344',) no score found for photo 1399596101 We are sending mail with results at report@fotonower.com args[1399596079] : ('0.05191618392210344',) no score found for photo 1399596079 We are sending mail with results at report@fotonower.com args[1399596077] : ('0.05191618392210344',) no score found for photo 1399596077 We are sending mail with results at report@fotonower.com args[1399596075] : ('0.05191618392210344',) no score found for photo 1399596075 We are sending mail with results at report@fotonower.com args[1399596060] : ('0.05191618392210344',) no score found for photo 1399596060 We are sending mail with results at report@fotonower.com args[1399596057] : ('0.05191618392210344',) no score found for photo 1399596057 We are sending mail with results at report@fotonower.com args[1399596054] : ('0.05191618392210344',) no score found for photo 1399596054 We are sending mail with results at report@fotonower.com args[1399596051] : ('0.05191618392210344',) no score found for photo 1399596051 We are sending mail with results at report@fotonower.com args[1399596050] : ('0.05191618392210344',) no score found for photo 1399596050 We are sending mail with results at report@fotonower.com refus_total : 0.05191618392210344 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=29460076 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_P29460076_16-12-2025_05_56_57.pdf results_Auto_P29460076_16-12-2025_05_56_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_05_56_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','29460076','results_Auto_P29460076_16-12-2025_05_56_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_05_56_57.pdf','pdf','','0.24','0.05191618392210344') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29460076]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] map_info['map_portfolio_photo'] : {29460076: [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050, 1399596049, 1399596047, 1399596045, 1399596029, 1399596026, 1399596023, 1399596020, 1399596019, 1399596018, 1399596001, 1399596000, 1399595999, 1399595957, 1399595954, 1399595953, 1399595952, 1399595951, 1399595936, 1399595933, 1399595932, 1399595931, 1399595930, 1399595910, 1399595909, 1399595908, 1399595907, 1399595885, 1399595884, 1399595883, 1399595882, 1399595843, 1399595842, 1399595841, 1399595829, 1399595828, 1399595827, 1399595826]} final : False mtd_id 4302 list_pids : [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] 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, '4233689') ('4302', '29460076', '1399596106', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29460076', '1399596106', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689')] time used for this insertion : 0.016844987869262695 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.212470293045044 time spend to save output : 0.017067432403564453 total time spend for step 4 : 5.229537725448608 step5:split_time_score Tue Dec 16 05:57:02 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 : ['29460076'] 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 : [('29460076',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29460076) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399596105: {'path': 'temp/1765861017_2959346_1399596105_b8e0a0d75d0ec3355344f9e77855bf90.jpg', 'extension': 'jpg'}, 1399596106: {'path': 'temp/1765861017_2959346_1399596106_5137577d36db5783922cd84fdb36cda9.jpg', 'extension': 'jpg'}, 1399596077: {'path': 'temp/1765861017_2959346_1399596077_305b82b620d4630fc76a9c71a0197201.jpg', 'extension': 'jpg'}, 1399596079: {'path': 'temp/1765861017_2959346_1399596079_d93193767ab3882278208d74566bbe58.jpg', 'extension': 'jpg'}, 1399596101: {'path': 'temp/1765861017_2959346_1399596101_d4ad76a83b48285ae4b136f2941190e7.jpg', 'extension': 'jpg'}, 1399596057: {'path': 'temp/1765861017_2959346_1399596057_aabf13f56c49efd51cabba9c54694ef6.jpg', 'extension': 'jpg'}, 1399596060: {'path': 'temp/1765861017_2959346_1399596060_33961eeedc44f649980fb36ada969a8d.jpg', 'extension': 'jpg'}, 1399596075: {'path': 'temp/1765861017_2959346_1399596075_be14ab30529d88a8f5a95ba212a4d35d.jpg', 'extension': 'jpg'}, 1399596050: {'path': 'temp/1765861017_2959346_1399596050_4abcec3ad045628261d8b74b8dd1c9c4.jpg', 'extension': 'jpg'}, 1399596051: {'path': 'temp/1765861017_2959346_1399596051_9b6c6e4058292cb5238f157d9fb4f6b4.jpg', 'extension': 'jpg'}, 1399596054: {'path': 'temp/1765861017_2959346_1399596054_8be70cfbf780f96007258f79d3e38b82.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 = 29460076; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29460076 group by h (('05', 48),) 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=29460076 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 (29460076) 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 (29460076) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16122025 29460076 Nombre de photos uploadées : 48 / 23040 (0%) 16122025 29460076 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 16122025 29460076 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1399595829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/54db765a7d91853a9875a2ee044954c2.jpg', 'username': None, 'uploaded_at': 1765860367, 'text': 'image_16122025_05_45_05_10168.jpg'}, {'photo_id': 1399595828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fbdb41b05e3a923506df5776d1f23ffc.jpg', 'username': None, 'uploaded_at': 1765860367, 'text': 'image_16122025_05_45_24_10162.jpg'}, {'photo_id': 1399595827, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/7291d2fcfac1d2b53b4ec272a2026a07.jpg', 'username': None, 'uploaded_at': 1765860367, 'text': 'image_16122025_05_45_34_10147.jpg'}, {'photo_id': 1399595826, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/22fa81e20f03cc10265267c4e5303c57.jpg', 'username': None, 'uploaded_at': 1765860367, 'text': 'image_16122025_05_45_44_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024209022521972656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29460076, '2025-12-16' ) 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-12-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2742047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23763513565063477 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= 2742047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29450388, 'dashboard_result_id': 18409040, '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_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29450996, 'dashboard_result_id': 18409041, '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_P29450996_16-12-2025_00_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29451566, 'dashboard_result_id': 18409042, '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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29452103, 'dashboard_result_id': 18409043, '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_P29452103_16-12-2025_01_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29453332, 'dashboard_result_id': 18409044, '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_P29453332_16-12-2025_01_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29453728, 'dashboard_result_id': 18409045, '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_P29453728_16-12-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29454116, 'dashboard_result_id': 18409046, '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_P29454116_16-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29454690, 'dashboard_result_id': 18409047, '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_P29454690_16-12-2025_02_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29455111, 'dashboard_result_id': 18409048, '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_P29455111_16-12-2025_02_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29455589, 'dashboard_result_id': 18409049, '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_P29455589_16-12-2025_03_03_27.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29455995, 'dashboard_result_id': 18409050, '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_P29455995_16-12-2025_03_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29456570, 'dashboard_result_id': 18409051, '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_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29456741, 'dashboard_result_id': 18409052, '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_P29456741_16-12-2025_03_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29457104, 'dashboard_result_id': 18409053, '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_P29457104_16-12-2025_04_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29457750, 'dashboard_result_id': 18409054, '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_P29457750_16-12-2025_04_12_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29459040, 'dashboard_result_id': 18409055, '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_P29459040_16-12-2025_05_19_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29459313, 'dashboard_result_id': 18409056, '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_P29459313_16-12-2025_05_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29459681, 'dashboard_result_id': 18409057, '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_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2750075, 'mtr_portfolio_id': 29460076, 'dashboard_result_id': 18409058, '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_P29460076_16-12-2025_05_52_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, '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 = 29450388 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': 4231841, 'mtr_portfolio_id': 29450388, 'created_at': datetime.datetime(2025, 12, 16, 0, 19, 1), 'result': '0.05849226565291721', 'result_long': None, 'result_double': None}] Qualite : 0.05849226565291721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_00_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450388 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_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}" where mtr_portfolio_id = 29450388 and dashboard_run_id = 2750075 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`=29450388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409040, 0.05849226565291721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_00_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, '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 = 29450996 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': 4231891, 'mtr_portfolio_id': 29450996, 'created_at': datetime.datetime(2025, 12, 16, 0, 33), 'result': '0.05860023724292723', 'result_long': None, 'result_double': None}] Qualite : 0.05860023724292723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450996 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_P29450996_16-12-2025_00_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}" where mtr_portfolio_id = 29450996 and dashboard_run_id = 2750075 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`=29450996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409041, 0.05860023724292723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_00_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, '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 = 29451566 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': 4231947, 'mtr_portfolio_id': 29451566, 'created_at': datetime.datetime(2025, 12, 16, 0, 46, 57), 'result': '0.04760964518372767', 'result_long': None, 'result_double': None}] Qualite : 0.04760964518372767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29451566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29451566 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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}" where mtr_portfolio_id = 29451566 and dashboard_run_id = 2750075 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`=29451566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409042, 0.04760964518372767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, '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 = 29452103 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': 4232011, 'mtr_portfolio_id': 29452103, 'created_at': datetime.datetime(2025, 12, 16, 1, 32, 58), 'result': '0.04210042514862066', 'result_long': None, 'result_double': None}] Qualite : 0.04210042514862066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29452103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29452103_16-12-2025_01_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29452103 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_P29452103_16-12-2025_01_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, 'pht': 3726}}" where mtr_portfolio_id = 29452103 and dashboard_run_id = 2750075 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`=29452103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409043, 0.04210042514862066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29452103_16-12-2025_01_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, '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 = 29453332 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': 4232138, 'mtr_portfolio_id': 29453332, 'created_at': datetime.datetime(2025, 12, 16, 1, 48, 59), 'result': '0.029333104092729448', 'result_long': None, 'result_double': None}] Qualite : 0.029333104092729448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29453332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453332_16-12-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29453332 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_P29453332_16-12-2025_01_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, 'pht': 3726}}" where mtr_portfolio_id = 29453332 and dashboard_run_id = 2750075 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`=29453332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409044, 0.029333104092729448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453332_16-12-2025_01_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, '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 = 29453728 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': 4232191, 'mtr_portfolio_id': 29453728, 'created_at': datetime.datetime(2025, 12, 16, 2, 2, 58), 'result': '0.04331540313387708', 'result_long': None, 'result_double': None}] Qualite : 0.04331540313387708 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29453728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453728_16-12-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29453728 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_P29453728_16-12-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, 'pht': 3726}}" where mtr_portfolio_id = 29453728 and dashboard_run_id = 2750075 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`=29453728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409045, 0.04331540313387708, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453728_16-12-2025_02_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, '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 = 29454116 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': 4232286, 'mtr_portfolio_id': 29454116, 'created_at': datetime.datetime(2025, 12, 16, 2, 19), 'result': '0.04807568087582184', 'result_long': None, 'result_double': None}] Qualite : 0.04807568087582184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29454116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454116_16-12-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29454116 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_P29454116_16-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, 'pht': 3726}}" where mtr_portfolio_id = 29454116 and dashboard_run_id = 2750075 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`=29454116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409046, 0.04807568087582184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454116_16-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, '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 = 29454690 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': 4232349, 'mtr_portfolio_id': 29454690, 'created_at': datetime.datetime(2025, 12, 16, 2, 32, 59), 'result': '0.04511154696265637', 'result_long': None, 'result_double': None}] Qualite : 0.04511154696265637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29454690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454690_16-12-2025_02_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29454690 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_P29454690_16-12-2025_02_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, 'pht': 3726}}" where mtr_portfolio_id = 29454690 and dashboard_run_id = 2750075 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`=29454690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409047, 0.04511154696265637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454690_16-12-2025_02_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, '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 = 29455111 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': 4232414, 'mtr_portfolio_id': 29455111, 'created_at': datetime.datetime(2025, 12, 16, 2, 47), 'result': '0.051224888726139145', 'result_long': None, 'result_double': None}] Qualite : 0.051224888726139145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455111_16-12-2025_02_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455111 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_P29455111_16-12-2025_02_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, 'pht': 3726}}" where mtr_portfolio_id = 29455111 and dashboard_run_id = 2750075 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`=29455111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409048, 0.051224888726139145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455111_16-12-2025_02_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, '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 = 29455589 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': 4232475, 'mtr_portfolio_id': 29455589, 'created_at': datetime.datetime(2025, 12, 16, 3, 3, 27), 'result': '0.04496166246567756', 'result_long': None, 'result_double': None}] Qualite : 0.04496166246567756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455589_16-12-2025_03_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455589 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_P29455589_16-12-2025_03_03_27.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, 'pht': 3726}}" where mtr_portfolio_id = 29455589 and dashboard_run_id = 2750075 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`=29455589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409049, 0.04496166246567756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455589_16-12-2025_03_03_27.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, '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 = 29455995 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': 4232550, 'mtr_portfolio_id': 29455995, 'created_at': datetime.datetime(2025, 12, 16, 3, 16, 58), 'result': '0.03987484468013755', 'result_long': None, 'result_double': None}] Qualite : 0.03987484468013755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455995_16-12-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455995 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_P29455995_16-12-2025_03_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, 'pht': 3726}}" where mtr_portfolio_id = 29455995 and dashboard_run_id = 2750075 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`=29455995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409050, 0.03987484468013755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455995_16-12-2025_03_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, '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 = 29456570 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 = 29456570 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 = 29456570 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29456570 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 = 29456570 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 = 29456570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456570_16-12-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29456570 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_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, 'pht': 3726}}" where mtr_portfolio_id = 29456570 and dashboard_run_id = 2750075 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 = 29456741 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': 4232733, 'mtr_portfolio_id': 29456741, 'created_at': datetime.datetime(2025, 12, 16, 3, 46, 59), 'result': '0.04569203002957828', 'result_long': None, 'result_double': None}] Qualite : 0.04569203002957828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29456741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456741_16-12-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29456741 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_P29456741_16-12-2025_03_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, 'pht': 3726}}" where mtr_portfolio_id = 29456741 and dashboard_run_id = 2750075 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`=29456741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409052, 0.04569203002957828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456741_16-12-2025_03_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, '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 = 29457104 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': 4232915, 'mtr_portfolio_id': 29457104, 'created_at': datetime.datetime(2025, 12, 16, 4, 2, 59), 'result': '0.03977441404419905', 'result_long': None, 'result_double': None}] Qualite : 0.03977441404419905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29457104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457104_16-12-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29457104 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_P29457104_16-12-2025_04_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, 'pht': 3726}}" where mtr_portfolio_id = 29457104 and dashboard_run_id = 2750075 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`=29457104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409053, 0.03977441404419905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457104_16-12-2025_04_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, '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 = 29457750 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': 4233128, 'mtr_portfolio_id': 29457750, 'created_at': datetime.datetime(2025, 12, 16, 4, 12, 58), 'result': '0.07212648910367604', 'result_long': None, 'result_double': None}] Qualite : 0.07212648910367604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29457750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457750_16-12-2025_04_12_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29457750 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_P29457750_16-12-2025_04_12_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, 'pht': 3726}}" where mtr_portfolio_id = 29457750 and dashboard_run_id = 2750075 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`=29457750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409054, 0.07212648910367604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457750_16-12-2025_04_12_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, '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 = 29459040 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': 4233440, 'mtr_portfolio_id': 29459040, 'created_at': datetime.datetime(2025, 12, 16, 5, 19, 29), 'result': '0.05104799695723351', 'result_long': None, 'result_double': None}] Qualite : 0.05104799695723351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459040_16-12-2025_05_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459040 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_P29459040_16-12-2025_05_19_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, 'pht': 3726}}" where mtr_portfolio_id = 29459040 and dashboard_run_id = 2750074 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`=29459040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409055, 0.05104799695723351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459040_16-12-2025_05_19_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, '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 = 29459313 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': 4233469, 'mtr_portfolio_id': 29459313, 'created_at': datetime.datetime(2025, 12, 16, 5, 32, 57), 'result': '0.052404339663058894', 'result_long': None, 'result_double': None}] Qualite : 0.052404339663058894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459313_16-12-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459313 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_P29459313_16-12-2025_05_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, 'pht': 3726}}" where mtr_portfolio_id = 29459313 and dashboard_run_id = 2750074 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`=29459313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409056, 0.052404339663058894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459313_16-12-2025_05_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, '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 = 29459681 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': 4233512, 'mtr_portfolio_id': 29459681, 'created_at': datetime.datetime(2025, 12, 16, 5, 49, 30), 'result': '0.049235597093003', 'result_long': None, 'result_double': None}] Qualite : 0.049235597093003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459681 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459681_16-12-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459681 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_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, 'pht': 3726}}" where mtr_portfolio_id = 29459681 and dashboard_run_id = 2750074 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`=29459681 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409057, 0.049235597093003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, '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 = 29460076 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': 4233689, 'mtr_portfolio_id': 29460076, 'created_at': datetime.datetime(2025, 12, 16, 5, 56, 56), 'result': '0.05191618392210344', 'result_long': None, 'result_double': None}] Qualite : 0.05191618392210344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_05_56_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460076 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_P29460076_16-12-2025_05_56_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, 'pht': 3726}}" where mtr_portfolio_id = 29460076 and dashboard_run_id = 2750074 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`=29460076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18409058, 0.05191618392210344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_05_56_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, '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 (29450388,29450996,29451566,29452103,29453332,29453728,29454116,29454690,29455111,29455589,29455995,29456570,29456741,29457104,29457750,29459040,29459313,29459681,29460076) result : ((1399569775,), (1399569840,), (1399569914,), (1399569963,), (1399570004,), (1399570079,), (1399570082,), (1399570115,), (1399570158,), (1399570440,), (1399570473,), (1399570509,), (1399570540,), (1399570781,), (1399570794,), (1399570799,), (1399570816,), (1399570840,), (1399570850,), (1399570857,), (1399570858,), (1399570859,), (1399570860,), (1399570863,), (1399570873,), (1399570874,), (1399570875,), (1399570876,), (1399570879,), (1399571005,), (1399571039,), (1399571074,), (1399571109,), (1399571144,), (1399571180,), (1399571473,), (1399571474,), (1399571475,), (1399571476,), (1399571629,), (1399571630,), (1399571631,), (1399571632,), (1399571634,), (1399571636,), (1399571669,), (1399571670,), (1399571671,), (1399571701,), (1399571758,), (1399571822,), (1399571881,), (1399571945,), (1399572326,), (1399572363,), (1399572393,), (1399572424,), (1399572457,), (1399572701,), (1399572702,), (1399572703,), (1399572792,), (1399572827,), (1399572856,), (1399572888,), (1399572921,), (1399573118,), (1399573152,), (1399573155,), (1399573156,), (1399573186,), (1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,), (1399573487,), (1399573488,), (1399573489,), (1399573490,), (1399573492,), (1399573494,), (1399573505,), (1399573507,), (1399573509,), (1399573510,), (1399573512,), (1399573514,), (1399573528,), (1399573530,), (1399573531,), (1399573532,), (1399573558,), (1399573560,), (1399573571,), (1399573572,), (1399573576,), (1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,), (1399575433,), (1399575444,), (1399575446,), (1399575447,), (1399575608,), (1399575643,), (1399575646,), (1399575649,), (1399575652,), (1399575655,), (1399575677,), (1399575679,), (1399575681,), (1399575695,), (1399575696,), (1399575697,), (1399575698,), (1399575701,), (1399575728,), (1399575729,), (1399575757,), (1399575788,), (1399575827,), (1399576183,), (1399576216,), (1399576249,), (1399576628,), (1399576629,), (1399576630,), (1399576631,), (1399576634,), (1399576637,), (1399576852,), (1399576860,), (1399576861,), (1399576983,), (1399576984,), (1399577593,), (1399579074,), (1399579221,), (1399579223,), (1399579264,), (1399581480,), (1399581479,), (1399581490,), (1399581491,), (1399581492,), (1399581493,), (1399581504,), (1399581505,), (1399581506,), (1399581509,), (1399581514,), (1399581528,), (1399581543,), (1399581544,), (1399581545,), (1399581559,), (1399581560,), (1399581561,), (1399581562,), (1399581578,), (1399581579,), (1399581580,), (1399581581,), (1399581584,), (1399581596,), (1399581597,), (1399581598,), (1399581599,), (1399581619,), (1399581620,), (1399581621,), (1399581622,), (1399581625,), (1399581633,), (1399581634,), (1399581635,), (1399581636,), (1399581638,), (1399581670,), (1399581671,), (1399581672,), (1399581673,), (1399581691,), (1399581692,), (1399581693,), (1399581694,), (1399581695,), (1399581714,), (1399581715,), (1399581716,), (1399581727,), (1399581728,), (1399581729,), (1399581730,), (1399581733,), (1399581735,), (1399581748,), (1399581749,), (1399581750,), (1399581751,), (1399581753,), (1399581756,), (1399581766,), (1399581767,), (1399581768,), (1399581807,), (1399581801,), (1399581802,), (1399581803,), (1399581804,), (1399581818,), (1399581819,), (1399581820,), (1399581821,), (1399581844,), (1399581845,), (1399581846,), (1399581847,), (1399581860,), (1399581862,), (1399581864,), (1399581868,), (1399581890,), (1399581891,), (1399581892,), (1399581893,), (1399581903,), (1399581904,), (1399581905,), (1399581906,), (1399581930,), (1399581931,), (1399581932,), (1399581933,), (1399581935,), (1399581953,), (1399581954,), (1399581955,), (1399581956,), (1399581958,), (1399581961,), (1399581971,), (1399581972,), (1399581973,), (1399581974,), (1399581987,), (1399581989,), (1399581991,), (1399581996,), (1399581999,), (1399582008,), (1399582009,), (1399582010,), (1399582011,), (1399582014,), (1399582029,), (1399582034,), (1399582035,), (1399582036,), (1399582095,), (1399582126,), (1399582160,), (1399582825,), (1399582829,), (1399582832,), (1399582835,), (1399582838,), (1399582861,), (1399582860,), (1399582882,), (1399582906,), (1399582938,), (1399582971,), (1399583005,), (1399583041,), (1399583356,), (1399583390,), (1399583423,), (1399583457,), (1399583492,), (1399583527,), (1399583718,), (1399583719,), (1399583949,), (1399583950,), (1399583964,), (1399583997,), (1399584007,), (1399584020,), (1399584075,), (1399584076,), (1399584077,), (1399584078,), (1399584081,), (1399584365,), (1399584399,), (1399584433,), (1399584466,), (1399584504,), (1399584541,), (1399584677,), (1399584714,), (1399584874,), (1399584907,), (1399584947,), (1399584985,), (1399585026,), (1399585184,), (1399585200,), (1399585214,), (1399585229,), (1399585235,), (1399585238,), (1399585245,), (1399585246,), (1399585247,), (1399585267,), (1399585277,), (1399585278,), (1399585279,), (1399585282,), (1399585306,), (1399585308,), (1399585309,), (1399585310,), (1399585334,), (1399585335,), (1399585336,), (1399585337,), (1399585351,), (1399585353,), (1399585355,), (1399585359,), (1399585397,), (1399585388,), (1399585390,), (1399585392,), (1399585394,), (1399585413,), (1399585414,), (1399585415,), (1399585416,), (1399585418,), (1399585451,), (1399585452,), (1399585453,), (1399585454,), (1399585473,), (1399585474,), (1399585475,), (1399585505,), (1399585506,), (1399585507,), (1399585526,), (1399585527,), (1399585528,), (1399585529,), (1399585532,), (1399585567,), (1399585568,), (1399585569,), (1399585570,), (1399585572,), (1399585585,), (1399585700,), (1399585701,), (1399585702,), (1399585703,), (1399585738,), (1399585739,), (1399585756,), (1399585758,), (1399585786,), (1399585787,), (1399585789,), (1399585790,), (1399585817,), (1399585813,), (1399585815,), (1399585816,), (1399585846,), (1399585847,), (1399585848,), (1399585849,), (1399585868,), (1399585869,), (1399585870,), (1399585899,), (1399585900,), (1399585901,), (1399585902,), (1399585905,), (1399585918,), (1399585919,), (1399585920,), (1399585921,), (1399585953,), (1399585954,), (1399585955,), (1399585956,), (1399585971,), (1399585972,), (1399585976,), (1399585980,), (1399585990,), (1399585991,), (1399586011,), (1399586012,), (1399586013,), (1399586036,), (1399586037,), (1399586038,), (1399586039,), (1399586042,), (1399586061,), (1399586063,), (1399586065,), (1399586069,), (1399586073,), (1399586095,), (1399586096,), (1399586097,), (1399586113,), (1399586114,), (1399586115,), (1399586116,), (1399586137,), (1399586138,), (1399586139,), (1399586140,), (1399586142,), (1399586144,), (1399586160,), (1399586163,), (1399586165,), (1399586202,), (1399586198,), (1399586199,), (1399586200,), (1399586201,), (1399586214,), (1399586216,), (1399586218,), (1399586222,), (1399586226,), (1399586229,), (1399586237,), (1399586238,), (1399586239,), (1399586240,), (1399586243,), (1399586246,), (1399586264,), (1399586265,), (1399586266,), (1399586300,), (1399586301,), (1399586302,), (1399586303,), (1399586305,), (1399586307,), (1399586324,), (1399586325,), (1399586326,), (1399586327,), (1399586329,), (1399586330,), (1399586350,), (1399586353,), (1399586354,), (1399586367,), (1399586368,), (1399586369,), (1399586370,), (1399586373,), (1399586392,), (1399586393,), (1399586394,), (1399586395,), (1399586398,), (1399586411,), (1399586412,), (1399586413,), (1399586430,), (1399586432,), (1399586433,), (1399586434,), (1399586437,), (1399586453,), (1399586454,), (1399586455,), (1399586456,), (1399586459,), (1399586484,), (1399586486,), (1399586487,), (1399586504,), (1399586537,), (1399586575,), (1399586933,), (1399586968,), (1399587094,), (1399587133,), (1399587171,), (1399587718,), (1399587614,), (1399587648,), (1399587683,), (1399588157,), (1399588176,), (1399588178,), (1399588203,), (1399588246,), (1399588325,), (1399588327,), (1399588329,), (1399588331,), (1399588360,), (1399588362,), (1399588363,), (1399588364,), (1399588366,), (1399588367,), (1399588379,), (1399588380,), (1399588381,), (1399588382,), (1399588385,), (1399588388,), (1399588406,), (1399588408,), (1399588409,), (1399588436,), (1399588437,), (1399588438,), (1399588439,), (1399588442,), (1399588444,), (1399588464,), (1399588466,), (1399588467,), (1399588468,), (1399588471,), (1399588480,), (1399588482,), (1399588484,), (1399588488,), (1399588509,), (1399588510,), (1399588511,), (1399588512,), (1399588515,), (1399588518,), (1399588532,), (1399588533,), (1399588534,), (1399588554,), (1399588555,), (1399588556,), (1399588557,), (1399588560,), (1399588578,), (1399588579,), (1399588580,), (1399588581,), (1399588583,), (1399588585,), (1399588610,), (1399588614,), (1399588615,), (1399588616,), (1399588636,), (1399588638,), (1399588640,), (1399588643,), (1399588681,), (1399588676,), (1399588679,), (1399588680,), (1399588695,), (1399588697,), (1399588699,), (1399588701,), (1399588704,), (1399588716,), (1399588717,), (1399588718,), (1399588719,), (1399588735,), (1399588736,), (1399588737,), (1399588738,), (1399588741,), (1399588744,), (1399588754,), (1399588755,), (1399588756,), (1399588757,), (1399588771,), (1399588773,), (1399588775,), (1399588779,), (1399588791,), (1399588792,), (1399588793,), (1399588794,), (1399588796,), (1399588808,), (1399588809,), (1399588810,), (1399588811,), (1399588823,), (1399588824,), (1399588825,), (1399588826,), (1399588828,), (1399588842,), (1399588843,), (1399588844,), (1399588845,), (1399588848,), (1399588851,), (1399588862,), (1399588863,), (1399588864,), (1399588865,), (1399588878,), (1399588879,), (1399588880,), (1399588881,), (1399588894,), (1399588895,), (1399588896,), (1399588897,), (1399588900,), (1399588910,), (1399588911,), (1399588912,), (1399588913,), (1399588925,), (1399588926,), (1399588927,), (1399588930,), (1399588933,), (1399588936,), (1399588940,), (1399588941,), (1399588950,), (1399588942,), (1399588943,), (1399588944,), (1399588947,), (1399588961,), (1399588962,), (1399588963,), (1399588964,), (1399588975,), (1399588976,), (1399588977,), (1399588978,), (1399588981,), (1399588983,), (1399588991,), (1399588992,), (1399588993,), (1399588994,), (1399588997,), (1399589009,), (1399589010,), (1399589011,), (1399589012,), (1399589022,), (1399589023,), (1399589024,), (1399589025,), (1399589028,), (1399589041,), (1399589042,), (1399589043,), (1399589044,), (1399589047,), (1399589059,), (1399589060,), (1399589061,), (1399589062,), (1399589064,), (1399589076,), (1399589077,), (1399589078,), (1399589079,), (1399589082,), (1399589085,), (1399589092,), (1399589093,), (1399589104,), (1399589105,), (1399589106,), (1399589107,), (1399589124,), (1399589126,), (1399589127,), (1399589128,), (1399589131,), (1399589167,), (1399589171,), (1399589172,), (1399589173,), (1399589199,), (1399589200,), (1399589201,), (1399589202,), (1399589205,), (1399589218,), (1399589223,), (1399589225,), (1399589226,), (1399589229,), (1399589271,), (1399589269,), (1399589270,), (1399589288,), (1399589289,), (1399589291,), (1399589292,), (1399589295,), (1399589298,), (1399589315,), (1399589316,), (1399589317,), (1399589318,), (1399589321,), (1399589324,), (1399589345,), (1399589346,), (1399589347,), (1399589365,), (1399589366,), (1399589367,), (1399589368,), (1399589371,), (1399589374,), (1399589386,), (1399589387,), (1399589388,), (1399589389,), (1399589392,), (1399589417,), (1399589418,), (1399589419,), (1399589420,), (1399589449,), (1399589450,), (1399589451,), (1399589452,), (1399589455,), (1399589473,), (1399589474,), (1399589475,), (1399589476,), (1399589502,), (1399589503,), (1399589504,), (1399589505,), (1399589522,), (1399589523,), (1399589524,), (1399589525,), (1399589528,), (1399589538,), (1399589540,), (1399589542,), (1399589546,), (1399589550,), (1399589583,), (1399589584,), (1399589585,), (1399589586,), (1399589589,), (1399589592,), (1399589813,), (1399589815,), (1399589818,), (1399589822,), (1399589824,), (1399589829,), (1399589831,), (1399589839,), (1399589842,), (1399589875,), (1399589856,), (1399589860,), (1399589864,), (1399589868,), (1399589872,), (1399589889,), (1399589895,), (1399589897,), (1399589923,), (1399589924,), (1399589925,), (1399589926,), (1399589960,), (1399589961,), (1399589962,), (1399589963,), (1399589979,), (1399590005,), (1399590031,), (1399590062,), (1399590093,), (1399590415,), (1399590443,), (1399590468,), (1399590496,), (1399590758,), (1399590788,), (1399590809,), (1399590829,), (1399590860,), (1399591336,), (1399591365,), (1399591368,), (1399591369,), (1399591390,), (1399591458,), (1399591622,), (1399591623,), (1399591624,), (1399591625,), (1399591628,), (1399591630,), (1399591660,), (1399591663,), (1399591664,), (1399591686,), (1399593851,), (1399594824,), (1399594825,), (1399594826,), (1399594840,), (1399594841,), (1399594843,), (1399594845,), (1399594848,), (1399594850,), (1399594863,), (1399594865,), (1399594867,), (1399594871,), (1399594874,), (1399594877,), (1399594894,), (1399594896,), (1399594898,), (1399594909,), (1399594910,), (1399594911,), (1399594912,), (1399594914,), (1399594944,), (1399594945,), (1399594946,), (1399594947,), (1399594950,), (1399594953,), (1399594971,), (1399594972,), (1399594973,), (1399594974,), (1399594997,), (1399594998,), (1399594999,), (1399595000,), (1399595003,), (1399595006,), (1399595016,), (1399595017,), (1399595018,), (1399595019,), (1399595022,), (1399595025,), (1399595049,), (1399595043,), (1399595044,), (1399595045,), (1399595046,), (1399595059,), (1399595060,), (1399595061,), (1399595062,), (1399595064,), (1399595066,), (1399595100,), (1399595106,), (1399595108,), (1399595109,), (1399595130,), (1399595131,), (1399595132,), (1399595133,), (1399595136,), (1399595139,), (1399595170,), (1399595183,), (1399595186,), (1399595198,), (1399595199,), (1399595200,), (1399595227,), (1399595228,), (1399595246,), (1399595305,), (1399595315,), (1399595339,), (1399595340,), (1399595342,), (1399595344,), (1399595375,), (1399595377,), (1399595379,), (1399595393,), (1399595395,), (1399595420,), (1399595421,), (1399595423,), (1399595450,), (1399595446,), (1399595448,), (1399595483,), (1399595484,), (1399595496,), (1399595497,), (1399595498,), (1399595499,), (1399595502,), (1399595526,), (1399595527,), (1399595528,), (1399595529,), (1399595532,), (1399595540,), (1399595541,), (1399595542,), (1399595543,), (1399595545,), (1399595574,), (1399595576,), (1399595577,), (1399595578,), (1399595580,), (1399595598,), (1399595599,), (1399595600,), (1399595601,), (1399595604,), (1399595622,), (1399595624,), (1399595626,), (1399595642,), (1399595643,), (1399595644,), (1399595645,), (1399595683,), (1399595684,), (1399595685,), (1399595686,), (1399595689,), (1399595704,), (1399595705,), (1399595706,), (1399595707,), (1399595733,), (1399595734,), (1399595735,), (1399595756,), (1399595757,), (1399595758,), (1399595777,), (1399595832,), (1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16122025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29460076]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] map_info['map_portfolio_photo'] : {29460076: [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050, 1399596049, 1399596047, 1399596045, 1399596029, 1399596026, 1399596023, 1399596020, 1399596019, 1399596018, 1399596001, 1399596000, 1399595999, 1399595957, 1399595954, 1399595953, 1399595952, 1399595951, 1399595936, 1399595933, 1399595932, 1399595931, 1399595930, 1399595910, 1399595909, 1399595908, 1399595907, 1399595885, 1399595884, 1399595883, 1399595882, 1399595843, 1399595842, 1399595841, 1399595829, 1399595828, 1399595827, 1399595826]} final : True mtd_id 4302 list_pids : [1399596106, 1399596105, 1399596101, 1399596079, 1399596077, 1399596075, 1399596060, 1399596057, 1399596054, 1399596051, 1399596050] Looping around the photos to save general results len do output : 1 /29460076Didn'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, '4233689') ('4302', '29460076', '1399596106', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689') ('4302', None, None, None, None, None, None, None, '4233689') ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29460076', 'None', None, None, None, None, '4233689'), ('4302', '29460076', '1399596106', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596105', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596101', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596079', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596077', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596075', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596060', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596057', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596054', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596051', None, None, None, None, None, '4233689'), ('4302', '29460076', '1399596050', None, None, None, None, None, '4233689')] time used for this insertion : 0.019051790237426758 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0797877311706543 time spend to save output : 0.01925516128540039 total time spend for step 5 : 2.0990428924560547 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 (4233689) 2.11user 2.51system 0:09.91elapsed 46%CPU (0avgtext+0avgdata 166788maxresident)k 0inputs+13216outputs (2major+67465minor)pagefaults 0swaps