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 : 2241190 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 (3313945) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3313945) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131481 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3313945'] with mtr_portfolio_ids : ['25131481'] and first list_photo_ids : [] new path : /proc/2241190/ Name: python3 Umask: 0002 State: R (running) Tgid: 2241190 Ngid: 0 Pid: 2241190 PPid: 2241189 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2241190 NSpid: 2241190 NSpgid: 2239864 NSsid: 2239864 VmPeak: 1106880 kB VmSize: 1106880 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97484 kB VmRSS: 97484 kB RssAnon: 59796 kB RssFile: 37688 kB RssShmem: 0 kB VmData: 865632 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2241190', 'Ngid': '0', 'Pid': '2241190', 'PPid': '2241189', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2241190', 'NSpid': '2241190', 'NSpgid': '2239864', 'NSsid': '2239864', 'VmPeak': '1106880 kB', 'VmSize': '1106880 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97484 kB', 'VmRSS': '97484 kB', 'RssAnon': '59796 kB', 'RssFile': '37688 kB', 'RssShmem': '0 kB', 'VmData': '865632 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '2241190', '1106880', '0', '1106880', '865632', '97484', b'', 'marlene', '3313945') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25131481) 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 (3313945 ) ) 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 (25131481) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373004145, 'portfolio_id': 25131481}, {'photo_id': 1373004142, 'portfolio_id': 25131481}, {'photo_id': 1373004139, 'portfolio_id': 25131481}, {'photo_id': 1373004137, 'portfolio_id': 25131481}, {'photo_id': 1373004126, 'portfolio_id': 25131481}, {'photo_id': 1373004117, 'portfolio_id': 25131481}, {'photo_id': 1373004099, 'portfolio_id': 25131481}, {'photo_id': 1373004096, 'portfolio_id': 25131481}, {'photo_id': 1373004093, 'portfolio_id': 25131481}, {'photo_id': 1373004090, 'portfolio_id': 25131481}, {'photo_id': 1373004088, 'portfolio_id': 25131481}, {'photo_id': 1373004085, 'portfolio_id': 25131481}, {'photo_id': 1373004050, 'portfolio_id': 25131481}, {'photo_id': 1373004025, 'portfolio_id': 25131481}, {'photo_id': 1373004023, 'portfolio_id': 25131481}, {'photo_id': 1373004021, 'portfolio_id': 25131481}, {'photo_id': 1373004019, 'portfolio_id': 25131481}, {'photo_id': 1373004018, 'portfolio_id': 25131481}, {'photo_id': 1373004016, 'portfolio_id': 25131481}, {'photo_id': 1373003978, 'portfolio_id': 25131481}, {'photo_id': 1373003976, 'portfolio_id': 25131481}, {'photo_id': 1373003974, 'portfolio_id': 25131481}, {'photo_id': 1373003969, 'portfolio_id': 25131481}, {'photo_id': 1373003961, 'portfolio_id': 25131481}, {'photo_id': 1373003959, 'portfolio_id': 25131481}, {'photo_id': 1373003941, 'portfolio_id': 25131481}, {'photo_id': 1373003939, 'portfolio_id': 25131481}, {'photo_id': 1373003937, 'portfolio_id': 25131481}, {'photo_id': 1373003936, 'portfolio_id': 25131481}, {'photo_id': 1373003935, 'portfolio_id': 25131481}, {'photo_id': 1373003934, 'portfolio_id': 25131481}, {'photo_id': 1373003897, 'portfolio_id': 25131481}, {'photo_id': 1373003895, 'portfolio_id': 25131481}, {'photo_id': 1373003893, 'portfolio_id': 25131481}, {'photo_id': 1373003891, 'portfolio_id': 25131481}, {'photo_id': 1373003889, 'portfolio_id': 25131481}, {'photo_id': 1373003888, 'portfolio_id': 25131481}, {'photo_id': 1373003866, 'portfolio_id': 25131481}, {'photo_id': 1373003864, 'portfolio_id': 25131481}, {'photo_id': 1373003862, 'portfolio_id': 25131481}, {'photo_id': 1373003861, 'portfolio_id': 25131481}, {'photo_id': 1373003860, 'portfolio_id': 25131481}, {'photo_id': 1373003859, 'portfolio_id': 25131481}, {'photo_id': 1373003817, 'portfolio_id': 25131481}, {'photo_id': 1373003806, 'portfolio_id': 25131481}, {'photo_id': 1373003804, 'portfolio_id': 25131481}, {'photo_id': 1373003802, 'portfolio_id': 25131481}, {'photo_id': 1373003800, 'portfolio_id': 25131481}, {'photo_id': 1373003799, 'portfolio_id': 25131481}, {'photo_id': 1373003797, 'portfolio_id': 25131481}, {'photo_id': 1373003736, 'portfolio_id': 25131481}, {'photo_id': 1373003734, 'portfolio_id': 25131481}, {'photo_id': 1373003732, 'portfolio_id': 25131481}, {'photo_id': 1373003731, 'portfolio_id': 25131481}, {'photo_id': 1373003719, 'portfolio_id': 25131481}, {'photo_id': 1373003717, 'portfolio_id': 25131481}, {'photo_id': 1373003686, 'portfolio_id': 25131481}, {'photo_id': 1373003684, 'portfolio_id': 25131481}, {'photo_id': 1373003657, 'portfolio_id': 25131481}, {'photo_id': 1373003643, 'portfolio_id': 25131481}, {'photo_id': 1373003641, 'portfolio_id': 25131481}, {'photo_id': 1373003639, 'portfolio_id': 25131481}, {'photo_id': 1373003225, 'portfolio_id': 25131481}, {'photo_id': 1373002895, 'portfolio_id': 25131481}, {'photo_id': 1373002867, 'portfolio_id': 25131481}, {'photo_id': 1373002841, 'portfolio_id': 25131481}, {'photo_id': 1373002798, 'portfolio_id': 25131481}, {'photo_id': 1373002750, 'portfolio_id': 25131481}, {'photo_id': 1373002701, 'portfolio_id': 25131481}] map_portfolio_id_photo_id: {25131481: [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085, 1373004050, 1373004025, 1373004023, 1373004021, 1373004019, 1373004018, 1373004016, 1373003978, 1373003976, 1373003974, 1373003969, 1373003961, 1373003959, 1373003941, 1373003939, 1373003937, 1373003936, 1373003935, 1373003934, 1373003897, 1373003895, 1373003893, 1373003891, 1373003889, 1373003888, 1373003866, 1373003864, 1373003862, 1373003861, 1373003860, 1373003859, 1373003817, 1373003806, 1373003804, 1373003802, 1373003800, 1373003799, 1373003797, 1373003736, 1373003734, 1373003732, 1373003731, 1373003719, 1373003717, 1373003686, 1373003684, 1373003657, 1373003643, 1373003641, 1373003639, 1373003225, 1373002895, 1373002867, 1373002841, 1373002798, 1373002750, 1373002701]} ##### 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.0163724422454834 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Jul 21 12:14: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 (25131481) 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 : 25131481 get user id for portfolio 25131481 get sub ptf for main ptf 25131481, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'kraft', 'autre_refus', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'flou', 'environnement', 'Carton_brun', 'mal_croppe', 'papier'] 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`=25131481 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse','plastique','metal','flou','environnement','Carton_brun','mal_croppe','papier')) 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`=25131481 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse','plastique','metal','flou','environnement','Carton_brun','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25131481, 'sub_port_id': 25131489, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945930, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'Carton_brun': {'main_port_id': 25131481, 'sub_port_id': 25131490, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945931, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25131481, 'sub_port_id': 25131491, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945932, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'plastique': {'main_port_id': 25131481, 'sub_port_id': 25131492, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945933, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'papier': {'main_port_id': 25131481, 'sub_port_id': 25131493, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945934, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'kraft': {'main_port_id': 25131481, 'sub_port_id': 25131494, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945935, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'environnement': {'main_port_id': 25131481, 'sub_port_id': 25131495, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945936, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'mal_croppe': {'main_port_id': 25131481, 'sub_port_id': 25131496, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945937, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'metal': {'main_port_id': 25131481, 'sub_port_id': 25131497, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945938, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'flou': {'main_port_id': 25131481, 'sub_port_id': 25131498, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945939, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'cartonnette': {'main_port_id': 25131481, 'sub_port_id': 25131499, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945940, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}, 'autre_refus': {'main_port_id': 25131481, 'sub_port_id': 25131500, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945941, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25131489 , 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=25131481 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 (25131489) result : ((1373003790,), (1373003791,), (1373003824,), (1373003921,), (1373003923,), (1373003924,), (1373003925,), (1373003963,), (1373003964,), (1373003965,), (1373003966,), (1373003967,), (1373003968,), (1373004051,), (1373004052,), (1373004053,), (1373004054,), (1373004055,), (1373004121,), (1373004122,), (1373004123,), (1373004125,), (1373004127,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131490 , 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=25131481 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 (25131490) result : ((1373003826,), (1373003827,), (1373003828,), (1373003829,), (1373003928,), (1373003929,), (1373004058,), (1373004074,), (1373004132,), (1373004133,), (1373004134,), (1373004135,), (1373004136,), (1373004162,), (1373004163,), (1373004164,), (1373004166,), (1373004167,), (1373004168,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131491 , 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=25131481 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 (25131491) result : ((1373003786,), (1373003787,), (1373003818,), (1373003819,), (1373003820,), (1373003821,), (1373003822,), (1373003823,), (1373003917,), (1373003918,), (1373003960,), (1373004043,), (1373004045,), (1373004046,), (1373004047,), (1373004153,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131492 , 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=25131481 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 (25131492) result : ((1373003930,), (1373004075,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131493 , 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=25131481 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 (25131493) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131494 , 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=25131481 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 (25131494) result : ((1373003931,), (1373004059,), (1373004060,), (1373004061,), (1373004062,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131495 , 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=25131481 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 (25131495) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131496 , 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=25131481 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 (25131496) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131497 , 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=25131481 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 (25131497) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131498 , 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=25131481 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 (25131498) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131499 , 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=25131481 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 (25131499) result : ((1373003825,), (1373003927,), (1373003970,), (1373003971,), (1373003972,), (1373003973,), (1373004057,), (1373004129,), (1373004130,), (1373004160,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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 25131500 , 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=25131481 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 (25131500) result : ((1373003919,), (1373003962,), (1373004048,), (1373004049,), (1373004073,), (1373004119,), (1373004154,), (1373004155,), (1373004156,), (1373004157,), (1373004158,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25131481) result : ((1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) 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 (1373003800) 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`=25131481 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse','plastique','metal','flou','environnement','Carton_brun','mal_croppe','papier')) 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`=25131481 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse','plastique','metal','flou','environnement','Carton_brun','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25131481, 'sub_port_id': 25131501, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945942, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'Carton_brun': {'main_port_id': 25131481, 'sub_port_id': 25131502, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945943, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 25131481, 'sub_port_id': 25131503, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945944, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'plastique': {'main_port_id': 25131481, 'sub_port_id': 25131504, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945945, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'papier': {'main_port_id': 25131481, 'sub_port_id': 25131505, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945946, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'kraft': {'main_port_id': 25131481, 'sub_port_id': 25131506, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945947, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'environnement': {'main_port_id': 25131481, 'sub_port_id': 25131507, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945948, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'mal_croppe': {'main_port_id': 25131481, 'sub_port_id': 25131508, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945949, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'metal': {'main_port_id': 25131481, 'sub_port_id': 25131509, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945950, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'flou': {'main_port_id': 25131481, 'sub_port_id': 25131510, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945951, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'cartonnette': {'main_port_id': 25131481, 'sub_port_id': 25131511, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945952, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}, 'autre_refus': {'main_port_id': 25131481, 'sub_port_id': 25131512, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16945953, 'last_updated_at': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 12, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 12, 3, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131492 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131494 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131507,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131495 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131508,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131496 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131509,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131497 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131499 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25131512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25131500 lien utilise dans velours : https://www.fotonower.com/velours/25131501,25131502,25131503,25131504,25131505,25131506,25131507,25131508,25131509,25131510,25131511,25131512?tags=Carton_gris,Carton_brun,Teint_Dans_La_Masse,plastique,papier,kraft,environnement,mal_croppe,metal,flou,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25131481]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] map_info['map_portfolio_photo'] : {25131481: [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085, 1373004050, 1373004025, 1373004023, 1373004021, 1373004019, 1373004018, 1373004016, 1373003978, 1373003976, 1373003974, 1373003969, 1373003961, 1373003959, 1373003941, 1373003939, 1373003937, 1373003936, 1373003935, 1373003934, 1373003897, 1373003895, 1373003893, 1373003891, 1373003889, 1373003888, 1373003866, 1373003864, 1373003862, 1373003861, 1373003860, 1373003859, 1373003817, 1373003806, 1373003804, 1373003802, 1373003800, 1373003799, 1373003797, 1373003736, 1373003734, 1373003732, 1373003731, 1373003719, 1373003717, 1373003686, 1373003684, 1373003657, 1373003643, 1373003641, 1373003639, 1373003225, 1373002895, 1373002867, 1373002841, 1373002798, 1373002750, 1373002701]} final : False mtd_id 4302 list_pids : [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] Looping around the photos to save general results len do output : 1 /25131481. 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, '3313945') ('4302', '25131481', '1373004145', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25131481', "{'Carton_gris': 25131489, 'Carton_brun': 25131490, 'Teint_Dans_La_Masse': 25131491, 'plastique': 25131492, 'papier': 25131493, 'kraft': 25131494, 'environnement': 25131495, 'mal_croppe': 25131496, 'metal': 25131497, 'flou': 25131498, 'cartonnette': 25131499, 'autre_refus': 25131500}", None, None, None, None, '3313945'), ('4302', '25131481', '1373004145', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945')] time used for this insertion : 0.014799118041992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4722292423248291 time spend to save output : 0.015116453170776367 total time spend for step 1 : 0.48734569549560547 step2:final Mon Jul 21 12:14: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 ! 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 (25131481) 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 25131481 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373002895,1373002867,1373002841,1373002798,1373002750,1373002701,1373003225,1373003686,1373003684,1373003657,1373003643,1373003641,1373003639,1373003736,1373003734,1373003732,1373003731,1373003719,1373003717,1373003806,1373003804,1373003802,1373003800,1373003799,1373003797,1373003817,1373003866,1373003864,1373003862,1373003861,1373003860,1373003859,1373003897,1373003895,1373003893,1373003891,1373003889,1373003888,1373003941,1373003939,1373003937,1373003936,1373003935,1373003934,1373003978,1373003976,1373003974,1373003969,1373003961,1373003959,1373004025,1373004023,1373004021,1373004019,1373004018,1373004016,1373004050,1373004099,1373004096,1373004093,1373004090,1373004088,1373004085,1373004145,1373004142,1373004139,1373004137,1373004126,1373004117); 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([25131481]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} new output for save of step final : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] map_info['map_portfolio_photo'] : {25131481: [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085, 1373004050, 1373004025, 1373004023, 1373004021, 1373004019, 1373004018, 1373004016, 1373003978, 1373003976, 1373003974, 1373003969, 1373003961, 1373003959, 1373003941, 1373003939, 1373003937, 1373003936, 1373003935, 1373003934, 1373003897, 1373003895, 1373003893, 1373003891, 1373003889, 1373003888, 1373003866, 1373003864, 1373003862, 1373003861, 1373003860, 1373003859, 1373003817, 1373003806, 1373003804, 1373003802, 1373003800, 1373003799, 1373003797, 1373003736, 1373003734, 1373003732, 1373003731, 1373003719, 1373003717, 1373003686, 1373003684, 1373003657, 1373003643, 1373003641, 1373003639, 1373003225, 1373002895, 1373002867, 1373002841, 1373002798, 1373002750, 1373002701]} final : False mtd_id 4302 list_pids : [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] Looping around the photos to save general results len do output : 12 /1373004145.Didn't retrieve data . /1373004142.Didn't retrieve data . /1373004139.Didn't retrieve data . /1373004137.Didn't retrieve data . /1373004126.Didn't retrieve data . /1373004117.Didn't retrieve data . /1373004099.Didn't retrieve data . /1373004096.Didn't retrieve data . /1373004093.Didn't retrieve data . /1373004090.Didn't retrieve data . /1373004088.Didn't retrieve data . /1373004085.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, '3313945') ('4302', '25131481', '1373004145', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25131481', '1373004145', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004142', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004139', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004137', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004126', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004117', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004099', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004096', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004093', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004090', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004088', '0.05022230237221101', None, None, None, None, '3313945'), ('4302', '25131481', '1373004085', '0.05022230237221101', None, None, None, None, '3313945')] time used for this insertion : 0.013318777084350586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0728461742401123 time spend to save output : 0.013908863067626953 total time spend for step 2 : 0.08675503730773926 step3:velours_tree Mon Jul 21 12:14: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 complete output_args for input 0 : {25131481: [{'Carton_gris': 25131489, 'Carton_brun': 25131490, 'Teint_Dans_La_Masse': 25131491, 'plastique': 25131492, 'papier': 25131493, 'kraft': 25131494, 'environnement': 25131495, 'mal_croppe': 25131496, 'metal': 25131497, 'flou': 25131498, 'cartonnette': 25131499, 'autre_refus': 25131500}]} input_args_next_step : {25131481: ()} output_args : {25131481: [{'Carton_gris': 25131489, 'Carton_brun': 25131490, 'Teint_Dans_La_Masse': 25131491, 'plastique': 25131492, 'papier': 25131493, 'kraft': 25131494, 'environnement': 25131495, 'mal_croppe': 25131496, 'metal': 25131497, 'flou': 25131498, 'cartonnette': 25131499, 'autre_refus': 25131500}]} args : 25131481 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_gris': 25131489, 'Carton_brun': 25131490, 'Teint_Dans_La_Masse': 25131491, 'plastique': 25131492, 'papier': 25131493, 'kraft': 25131494, 'environnement': 25131495, 'mal_croppe': 25131496, 'metal': 25131497, 'flou': 25131498, 'cartonnette': 25131499, 'autre_refus': 25131500},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25131481) 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([25131481]) 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.29874372482299805 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.29881834983825684 step4:send_mail_cod Mon Jul 21 12:14: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 : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} input_args_next_step : {1373004145: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004145 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004142 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004139 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004137 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004126 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004117 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004099 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004096 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004093 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004090 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004088 depend.output_id : 0 input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ()} output_args : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',)} args : 1373004085 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 : {25131481: [{'Carton_gris': 25131489, 'Carton_brun': 25131490, 'Teint_Dans_La_Masse': 25131491, 'plastique': 25131492, 'papier': 25131493, 'kraft': 25131494, 'environnement': 25131495, 'mal_croppe': 25131496, 'metal': 25131497, 'flou': 25131498, 'cartonnette': 25131499, 'autre_refus': 25131500}]} input_args_next_step : {1373004145: ('0.05022230237221101',), 1373004142: ('0.05022230237221101',), 1373004139: ('0.05022230237221101',), 1373004137: ('0.05022230237221101',), 1373004126: ('0.05022230237221101',), 1373004117: ('0.05022230237221101',), 1373004099: ('0.05022230237221101',), 1373004096: ('0.05022230237221101',), 1373004093: ('0.05022230237221101',), 1373004090: ('0.05022230237221101',), 1373004088: ('0.05022230237221101',), 1373004085: ('0.05022230237221101',), 25131481: ()} output_args : {25131481: [{'Carton_gris': 25131489, 'Carton_brun': 25131490, 'Teint_Dans_La_Masse': 25131491, 'plastique': 25131492, 'papier': 25131493, 'kraft': 25131494, 'environnement': 25131495, 'mal_croppe': 25131496, 'metal': 25131497, 'flou': 25131498, 'cartonnette': 25131499, 'autre_refus': 25131500}]} args : 25131481 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 :13, first value : ('0.05022230237221101',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25131481) 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 ph WHERE photo_id IN (1373004145,1373004142,1373004139,1373004137,1373004126,1373004117,1373004099,1373004096,1373004093,1373004090,1373004088,1373004085) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373004085 begin to download photo : 1373004093 begin to download photo : 1373004117 begin to download photo : 1373004139 download finish for photo 1373004093 begin to download photo : 1373004096 download finish for photo 1373004117 begin to download photo : 1373004126 download finish for photo 1373004139 begin to download photo : 1373004142 download finish for photo 1373004085 begin to download photo : 1373004088 download finish for photo 1373004142 begin to download photo : 1373004145 download finish for photo 1373004126 begin to download photo : 1373004137 download finish for photo 1373004096 begin to download photo : 1373004099 download finish for photo 1373004088 begin to download photo : 1373004090 download finish for photo 1373004145 download finish for photo 1373004099 download finish for photo 1373004137 download finish for photo 1373004090 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25131481_21-07-2025_12_14_58.pdf 25131492 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131492 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373003930: '1753092487_2748299_1373003732_99d94acbd9110472dbdd6b5d7e250647_rle_crop_3888883925_0.png', 1373004075: '1753092726_2756453_1373003897_4d586523a7efcef2c8df50abba443cf2_rle_crop_3888884631_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/4eec7df6fd93fe27b1c05d3c8d5c36c7_95156173.png change filename to text .imagette251314921753092898/ imagette251314921753092898/1753092726_2756453_1373003897_4d586523a7efcef2c8df50abba443cf2_rle_crop_3888884631_0.png.png imagette251314921753092898/1753092487_2748299_1373003732_99d94acbd9110472dbdd6b5d7e250647_rle_crop_3888883925_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9d2ac30d6e847c3ef116953893d1ac49_58150031.png imagette251314921753092898 25131494 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131494 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373003931: '1753092487_2748299_1373003731_3dc6d336af3bd59dc27e349afedc013b_rle_crop_3888883938_0.png', 1373004059: '1753092685_3466461_1373003941_58a55a361190f20c8c4a309403804d0d_rle_crop_3888884461_0.png', 1373004060: '1753092685_3466461_1373003937_359295a7fb0fe918cd5ffbff3f6e0db1_rle_crop_3888884491_0.png', 1373004061: '1753092685_3466461_1373003936_4e582d9767d9b87549301fdafcf6cfb4_rle_crop_3888884508_0.png', 1373004062: '1753092685_3466461_1373003935_a1c9e68589e824483588fb2660bb7a00_rle_crop_3888884522_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/2429dd2e294735a40808adeed6b330dc_26727245.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/630eb4b10ce607a2e3e9eec52cd4bbe8_66774264.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/21dc1dc4474e91ec047fba37201f3c81_9145665.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/197deccd239d47e2bc2e85ca8bf63605_54712333.png change filename to text .imagette251314941753092898/ imagette251314941753092898/1753092685_3466461_1373003937_359295a7fb0fe918cd5ffbff3f6e0db1_rle_crop_3888884491_0.png.png imagette251314941753092898/1753092685_3466461_1373003941_58a55a361190f20c8c4a309403804d0d_rle_crop_3888884461_0.png.png imagette251314941753092898/1753092685_3466461_1373003935_a1c9e68589e824483588fb2660bb7a00_rle_crop_3888884522_0.png.png imagette251314941753092898/1753092487_2748299_1373003731_3dc6d336af3bd59dc27e349afedc013b_rle_crop_3888883938_0.png.png imagette251314941753092898/1753092685_3466461_1373003936_4e582d9767d9b87549301fdafcf6cfb4_rle_crop_3888884508_0.png.png imagette251314961753092898/ imagette251314971753092898/ imagette251314981753092898/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/bbb7d7c79128ab1c893436aabee28fe9_71201724.png imagette251314941753092898 25131496 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131496 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251314961753092898 25131497 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131497 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251314971753092898 25131498 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131498 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251314981753092898 25131499 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373003825: '1753092326_3456237_1373003686_3ae3c1bcd9413b9d487aa89b56b186c0_rle_crop_3888883564_0.png', 1373003927: '1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883965_0.png', 1373003970: '1753092566_3462635_1373003866_c025e6ef66e796b73aabca036c5048fe_rle_crop_3888884151_0.png', 1373003971: '1753092566_3462635_1373003860_5dfa5f44ad8ab581f691b392bc59e4b2_rle_crop_3888884206_0.png', 1373003972: '1753092566_3462635_1373003859_1873ed8796ca5db80b5e8570fd065fe6_rle_crop_3888884220_0.png', 1373003973: '1753092566_3462635_1373003859_1873ed8796ca5db80b5e8570fd065fe6_rle_crop_3888884222_0.png', 1373004057: '1753092685_3466461_1373003934_806980015b3cbd1e17c0af72870316ed_rle_crop_3888884532_0.png', 1373004129: '1753092805_3469633_1373004019_e732628f6f4a5ea4589be4607a9b4b0c_rle_crop_3888884894_0.png', 1373004130: '1753092805_3469633_1373004016_89d961ee6a02a6b8308bc0b805f1c492_rle_crop_3888884918_0.png', 1373004160: '1753092845_2763082_1373003974_d52b3506e66b6c6b2f1e3782549e21a1_rle_crop_3888885155_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d395f07237a7848755a2d5f161a6f174_7754110.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f0b4eb8d94f13388a4cad84a651bfd28_68470685.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d677eac0ce02c004fb9aaa8d352f736b_67238591.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/469f0c4221f085da770101886e2eb994_87153558.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f715419c1ce124ddfd7f9747693b3036_82850145.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/49b46581523ee4576656c747ec6e5254_59194570.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9198988c71fae913458380064d9906cc_31056346.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3d80ac0073156b183d3d691bb9ce85fe_37660160.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3c832f8e750471547e366d94f12f1cbc_49510087.png change filename to text .imagette251314991753092898/ imagette251314991753092898/1753092805_3469633_1373004019_e732628f6f4a5ea4589be4607a9b4b0c_rle_crop_3888884894_0.png.png imagette251314991753092898/1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883965_0.png.png imagette251314991753092898/1753092805_3469633_1373004016_89d961ee6a02a6b8308bc0b805f1c492_rle_crop_3888884918_0.png.png imagette251314991753092898/1753092326_3456237_1373003686_3ae3c1bcd9413b9d487aa89b56b186c0_rle_crop_3888883564_0.png.png imagette251314991753092898/1753092566_3462635_1373003866_c025e6ef66e796b73aabca036c5048fe_rle_crop_3888884151_0.png.png imagette251314991753092898/1753092566_3462635_1373003859_1873ed8796ca5db80b5e8570fd065fe6_rle_crop_3888884220_0.png.png imagette251314991753092898/1753092566_3462635_1373003860_5dfa5f44ad8ab581f691b392bc59e4b2_rle_crop_3888884206_0.png.png imagette251314991753092898/1753092845_2763082_1373003974_d52b3506e66b6c6b2f1e3782549e21a1_rle_crop_3888885155_0.png.png imagette251314991753092898/1753092566_3462635_1373003859_1873ed8796ca5db80b5e8570fd065fe6_rle_crop_3888884222_0.png.png imagette251314991753092898/1753092685_3466461_1373003934_806980015b3cbd1e17c0af72870316ed_rle_crop_3888884532_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c886125f213bdde6fa85cada582f6acf_17358783.png imagette251314991753092898 25131500 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373003919: '1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883977_0.png', 1373003962: '1753092566_3462635_1373003866_c025e6ef66e796b73aabca036c5048fe_rle_crop_3888884155_0.png', 1373004048: '1753092685_3466461_1373003939_237a58814b05aad0af34a2647659a52b_rle_crop_3888884473_0.png', 1373004049: '1753092685_3466461_1373003937_359295a7fb0fe918cd5ffbff3f6e0db1_rle_crop_3888884487_0.png', 1373004073: '1753092726_2756453_1373003897_4d586523a7efcef2c8df50abba443cf2_rle_crop_3888884638_0.png', 1373004119: '1753092805_3469633_1373004021_67608b644dc7ebc005ec5dd5d8f8e986_rle_crop_3888884878_0.png', 1373004154: '1753092845_2763082_1373003978_0fdb2b80777849f334fab444ba6c22d9_rle_crop_3888885129_0.png', 1373004155: '1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885148_0.png', 1373004156: '1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885145_0.png', 1373004157: '1753092845_2763082_1373003974_d52b3506e66b6c6b2f1e3782549e21a1_rle_crop_3888885163_0.png', 1373004158: '1753092845_2763082_1373003969_ceb28993584e8a4211d88375f06d29b1_rle_crop_3888885174_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d11d7f34270513a467452bb72ab0a5d2_98473381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e187027805b72f1a079fe9c821e39f7f_14539259.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c59f0c8f7ad0032a72600387e3c3b9a2_15814784.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/0d2385f3a956c389019884c1818ec758_73723153.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/54e90ae53c36ef21e8eb4043826a9f0f_62974028.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/34a8b8e3bae0497f0ee620f8b1105b85_71743958.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/ed3013b832efb80eafc022e30a9ce1fc_28070784.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/03cdc5e40b5fc7ebe9c26eaa63d04d1d_91750153.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c6fdb3566a0ba64eaf609e1807de5116_10337490.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a8149b8165ac2ab09b099f6ff6c7b357_68615498.png change filename to text .imagette251315001753092899/ imagette251315001753092899/1753092726_2756453_1373003897_4d586523a7efcef2c8df50abba443cf2_rle_crop_3888884638_0.png.png imagette251315001753092899/1753092685_3466461_1373003937_359295a7fb0fe918cd5ffbff3f6e0db1_rle_crop_3888884487_0.png.png imagette251315001753092899/1753092805_3469633_1373004021_67608b644dc7ebc005ec5dd5d8f8e986_rle_crop_3888884878_0.png.png imagette251315001753092899/1753092685_3466461_1373003939_237a58814b05aad0af34a2647659a52b_rle_crop_3888884473_0.png.png imagette251315001753092899/1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885148_0.png.png imagette251315001753092899/1753092566_3462635_1373003866_c025e6ef66e796b73aabca036c5048fe_rle_crop_3888884155_0.png.png imagette251315001753092899/1753092845_2763082_1373003969_ceb28993584e8a4211d88375f06d29b1_rle_crop_3888885174_0.png.png imagette251315001753092899/1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883977_0.png.png imagette251315001753092899/1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885145_0.png.png imagette251315001753092899/1753092845_2763082_1373003978_0fdb2b80777849f334fab444ba6c22d9_rle_crop_3888885129_0.png.png imagette251315001753092899/1753092845_2763082_1373003974_d52b3506e66b6c6b2f1e3782549e21a1_rle_crop_3888885163_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/da644d378b5348a9974c40122e208540_85584008.png imagette251315001753092899 25131489 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373003967: '1753092566_3462635_1373003860_5dfa5f44ad8ab581f691b392bc59e4b2_rle_crop_3888884204_0.png', 1373004127: '1753092805_3469633_1373004018_88669cb4b6133d93f532da0380b84672_rle_crop_3888884906_0.png', 1373004125: '1753092805_3469633_1373004021_67608b644dc7ebc005ec5dd5d8f8e986_rle_crop_3888884883_0.png', 1373004123: '1753092805_3469633_1373004021_67608b644dc7ebc005ec5dd5d8f8e986_rle_crop_3888884877_0.png', 1373004122: '1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884859_0.png', 1373004121: '1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884865_0.png', 1373004055: '1753092685_3466461_1373003935_a1c9e68589e824483588fb2660bb7a00_rle_crop_3888884513_0.png', 1373004054: '1753092685_3466461_1373003935_a1c9e68589e824483588fb2660bb7a00_rle_crop_3888884512_0.png', 1373004053: '1753092685_3466461_1373003936_4e582d9767d9b87549301fdafcf6cfb4_rle_crop_3888884501_0.png', 1373004052: '1753092685_3466461_1373003937_359295a7fb0fe918cd5ffbff3f6e0db1_rle_crop_3888884481_0.png', 1373004051: '1753092685_3466461_1373003939_237a58814b05aad0af34a2647659a52b_rle_crop_3888884468_0.png', 1373003968: '1753092566_3462635_1373003860_5dfa5f44ad8ab581f691b392bc59e4b2_rle_crop_3888884207_0.png', 1373003790: '1753092247_2739685_1373002895_0431e16b734e19a741ec3831d508e2d0_rle_crop_3888883331_0.png', 1373003966: '1753092566_3462635_1373003861_185cc4a908c2ee6b4e272e856dcbde5a_rle_crop_3888884199_0.png', 1373003965: '1753092566_3462635_1373003862_9ae7d4b17b7a5035cf286914809c97ff_rle_crop_3888884182_0.png', 1373003964: '1753092566_3462635_1373003864_8b4119219df672ddcdef7ec0c2f1b212_rle_crop_3888884165_0.png', 1373003963: '1753092566_3462635_1373003864_8b4119219df672ddcdef7ec0c2f1b212_rle_crop_3888884166_0.png', 1373003925: '1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883981_0.png', 1373003924: '1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883975_0.png', 1373003923: '1753092487_2748299_1373003734_0c3f44af5435ba4222449e899ff8844b_rle_crop_3888883912_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e78bbd3a6fc615530cd1e474c849445b_11803403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e87c8f5a3fb696ff2e213119fe1e5319_57248985.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3355d43f635de611131828a9fe7df539_6646489.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8a3dba68d2eec5c23aebb4212e133410_77604660.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a58d7e4c4da3ba98e8cf39176b9034bf_31338139.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/41350256815b2380707cda640ded3ec2_93052722.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9774f31846b650304df2278090334b4b_23947632.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e72fa0ac7e8ac183d3a9738ea3cdc79c_31440305.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/99aefdba60520eba551996ab6616a902_86963194.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/50fba2859d363288ba4189747e6bb1af_55674931.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/2679c7faae62a9eec505cae6eb3bd68b_96312272.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/6531a7dc6d9e84f8c33f5adda58d607e_8057241.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/efa45b5a9c5cb6dcd239c6a70f75800e_56352713.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b9d6d70571cde8e0616384f5b307dbe8_80062351.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/755967182f4092813cab26e18113772b_75123002.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f5a853c8594eb8e73969db3cf3bcf5d1_13785153.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/73f4aa9e154266ee31c090a057a91fa1_78182310.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/39e95bcd4173960bacf948e064022798_1931517.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/1c15656df341456ca9e18a4655e4fc4a_95589874.png change filename to text .imagette251314891753092899/ imagette251314891753092899/1753092566_3462635_1373003864_8b4119219df672ddcdef7ec0c2f1b212_rle_crop_3888884166_0.png.png imagette251314891753092899/1753092805_3469633_1373004021_67608b644dc7ebc005ec5dd5d8f8e986_rle_crop_3888884883_0.png.png imagette251314891753092899/1753092247_2739685_1373002895_0431e16b734e19a741ec3831d508e2d0_rle_crop_3888883331_0.png.png imagette251314891753092899/1753092487_2748299_1373003734_0c3f44af5435ba4222449e899ff8844b_rle_crop_3888883912_0.png.png imagette251314891753092899/1753092685_3466461_1373003935_a1c9e68589e824483588fb2660bb7a00_rle_crop_3888884513_0.png.png imagette251314891753092899/1753092566_3462635_1373003860_5dfa5f44ad8ab581f691b392bc59e4b2_rle_crop_3888884204_0.png.png imagette251314891753092899/1753092566_3462635_1373003862_9ae7d4b17b7a5035cf286914809c97ff_rle_crop_3888884182_0.png.png imagette251314891753092899/1753092685_3466461_1373003936_4e582d9767d9b87549301fdafcf6cfb4_rle_crop_3888884501_0.png.png imagette251314891753092899/1753092805_3469633_1373004021_67608b644dc7ebc005ec5dd5d8f8e986_rle_crop_3888884877_0.png.png imagette251314891753092899/1753092805_3469633_1373004018_88669cb4b6133d93f532da0380b84672_rle_crop_3888884906_0.png.png imagette251314891753092899/1753092566_3462635_1373003861_185cc4a908c2ee6b4e272e856dcbde5a_rle_crop_3888884199_0.png.png imagette251314891753092899/1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883981_0.png.png imagette251314891753092899/1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884859_0.png.png imagette251314891753092899/1753092685_3466461_1373003937_359295a7fb0fe918cd5ffbff3f6e0db1_rle_crop_3888884481_0.png.png imagette251314891753092899/1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883975_0.png.png imagette251314891753092899/1753092566_3462635_1373003860_5dfa5f44ad8ab581f691b392bc59e4b2_rle_crop_3888884207_0.png.png imagette251314891753092899/1753092685_3466461_1373003935_a1c9e68589e824483588fb2660bb7a00_rle_crop_3888884512_0.png.png imagette251314891753092899/1753092566_3462635_1373003864_8b4119219df672ddcdef7ec0c2f1b212_rle_crop_3888884165_0.png.png imagette251314891753092899/1753092685_3466461_1373003939_237a58814b05aad0af34a2647659a52b_rle_crop_3888884468_0.png.png imagette251314891753092899/1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884865_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/89e87afc7cb4194032d06448620ef083_94939920.png imagette251314891753092899 25131490 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373004133: '1753092805_3469633_1373004025_652d205206fad7041059786585dc111a_rle_crop_3888884851_0.png', 1373004168: '1753092845_2763082_1373003959_99b7dcfd1593d4fad6f69c7aaa79838e_rle_crop_3888885203_0.png', 1373004167: '1753092845_2763082_1373003959_99b7dcfd1593d4fad6f69c7aaa79838e_rle_crop_3888885205_0.png', 1373004166: '1753092845_2763082_1373003969_ceb28993584e8a4211d88375f06d29b1_rle_crop_3888885179_0.png', 1373004164: '1753092845_2763082_1373003974_d52b3506e66b6c6b2f1e3782549e21a1_rle_crop_3888885162_0.png', 1373004163: '1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885146_0.png', 1373004162: '1753092845_2763082_1373003978_0fdb2b80777849f334fab444ba6c22d9_rle_crop_3888885125_0.png', 1373004136: '1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884868_0.png', 1373004135: '1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884867_0.png', 1373004134: '1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884871_0.png', 1373003826: '1753092326_3456237_1373003684_f12bc1228a945a5eae5a41f090ba75b0_rle_crop_3888883584_0.png', 1373004132: '1753092805_3469633_1373004025_652d205206fad7041059786585dc111a_rle_crop_3888884853_0.png', 1373004074: '1753092726_2756453_1373003897_4d586523a7efcef2c8df50abba443cf2_rle_crop_3888884635_0.png', 1373004058: '1753092685_3466461_1373003934_806980015b3cbd1e17c0af72870316ed_rle_crop_3888884534_0.png', 1373003929: '1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883973_0.png', 1373003928: '1753092487_2748299_1373003719_d3ad0293da98af97350c5d4b5b3f380a_rle_crop_3888883961_0.png', 1373003829: '1753092326_3456237_1373003641_a93af39b149af1870fa338f378a65ffd_rle_crop_3888883626_0.png', 1373003828: '1753092326_3456237_1373003643_54280e8ca71d51a9df04a5c933244849_rle_crop_3888883615_0.png', 1373003827: '1753092326_3456237_1373003657_1ef8196697ba1683d3abf4973a2f84c5_rle_crop_3888883598_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f0cdaffba68c33c47bb79dcf0e7aadcc_5208298.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e4e4865d09ff6eb1228afcca39403d59_17022648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/ef13b3dea64150efdcf77278474e0114_55319860.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c5ddaca4123886762a531768c7604982_60573810.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8b0230395481b584ec315506f708c80d_8250985.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/649baf7ab603897ca1379a0fcaa2499f_67046067.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9cc5af5f75bc8e8966c1c3fb6f727e5d_79602018.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a6aae121a52bf5b5842c3d1f805ebf2c_32110612.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7dc23d95a503d5abb4513a39b192a6f0_41197699.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3649f4543864f8a2866a17210a171ab0_76314196.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/16c4f552b9922a140e208a1f5d6217bf_27191061.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/6a7e90a9352cbb4af2cf09c90123a003_87024385.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d8032254a7c51d2cbb12dc54b8ce5644_936973.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/25b9ad1282d68d49b017e8a91a93ee20_45034250.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/508aa7d21cc942e847670dac92b09206_8717570.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/14be1216e5ee48f91ac234aebf8bdfe8_22775018.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7c720abbe9607e241cbd42930188a97f_66033189.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/76ba5fc8a350ea8d13b5569862f1091b_47423319.png change filename to text .imagette251314901753092901/ imagette251314901753092901/1753092326_3456237_1373003641_a93af39b149af1870fa338f378a65ffd_rle_crop_3888883626_0.png.png imagette251314901753092901/1753092845_2763082_1373003959_99b7dcfd1593d4fad6f69c7aaa79838e_rle_crop_3888885205_0.png.png imagette251314901753092901/1753092845_2763082_1373003974_d52b3506e66b6c6b2f1e3782549e21a1_rle_crop_3888885162_0.png.png imagette251314901753092901/1753092487_2748299_1373003719_d3ad0293da98af97350c5d4b5b3f380a_rle_crop_3888883961_0.png.png imagette251314901753092901/1753092845_2763082_1373003959_99b7dcfd1593d4fad6f69c7aaa79838e_rle_crop_3888885203_0.png.png imagette251314901753092901/1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884871_0.png.png imagette251314901753092901/1753092326_3456237_1373003657_1ef8196697ba1683d3abf4973a2f84c5_rle_crop_3888883598_0.png.png imagette251314901753092901/1753092845_2763082_1373003978_0fdb2b80777849f334fab444ba6c22d9_rle_crop_3888885125_0.png.png imagette251314901753092901/1753092326_3456237_1373003643_54280e8ca71d51a9df04a5c933244849_rle_crop_3888883615_0.png.png imagette251314901753092901/1753092685_3466461_1373003934_806980015b3cbd1e17c0af72870316ed_rle_crop_3888884534_0.png.png imagette251314901753092901/1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884867_0.png.png imagette251314901753092901/1753092726_2756453_1373003897_4d586523a7efcef2c8df50abba443cf2_rle_crop_3888884635_0.png.png imagette251314901753092901/1753092845_2763082_1373003969_ceb28993584e8a4211d88375f06d29b1_rle_crop_3888885179_0.png.png imagette251314901753092901/1753092805_3469633_1373004025_652d205206fad7041059786585dc111a_rle_crop_3888884853_0.png.png imagette251314901753092901/1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883973_0.png.png imagette251314901753092901/1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885146_0.png.png imagette251314901753092901/1753092326_3456237_1373003684_f12bc1228a945a5eae5a41f090ba75b0_rle_crop_3888883584_0.png.png imagette251314901753092901/1753092805_3469633_1373004025_652d205206fad7041059786585dc111a_rle_crop_3888884851_0.png.png imagette251314901753092901/1753092805_3469633_1373004023_8920ff09366a0e26c547b9bc6c8dab09_rle_crop_3888884868_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/246164b4f91305e316ec9a41f1e02fe9_22051629.png imagette251314901753092901 25131491 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131491 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373003786: '1753092247_2739685_1373002895_0431e16b734e19a741ec3831d508e2d0_rle_crop_3888883334_0.png', 1373003787: '1753092247_2739685_1373002895_0431e16b734e19a741ec3831d508e2d0_rle_crop_3888883333_0.png', 1373003818: '1753092326_3456237_1373003684_f12bc1228a945a5eae5a41f090ba75b0_rle_crop_3888883578_0.png', 1373003819: '1753092326_3456237_1373003657_1ef8196697ba1683d3abf4973a2f84c5_rle_crop_3888883595_0.png', 1373003820: '1753092326_3456237_1373003657_1ef8196697ba1683d3abf4973a2f84c5_rle_crop_3888883599_0.png', 1373003821: '1753092326_3456237_1373003643_54280e8ca71d51a9df04a5c933244849_rle_crop_3888883614_0.png', 1373003822: '1753092326_3456237_1373003643_54280e8ca71d51a9df04a5c933244849_rle_crop_3888883616_0.png', 1373003823: '1753092326_3456237_1373003641_a93af39b149af1870fa338f378a65ffd_rle_crop_3888883633_0.png', 1373003917: '1753092487_2748299_1373003719_d3ad0293da98af97350c5d4b5b3f380a_rle_crop_3888883959_0.png', 1373003918: '1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883971_0.png', 1373003960: '1753092566_3462635_1373003864_8b4119219df672ddcdef7ec0c2f1b212_rle_crop_3888884167_0.png', 1373004043: '1753092685_3466461_1373003941_58a55a361190f20c8c4a309403804d0d_rle_crop_3888884460_0.png', 1373004045: '1753092685_3466461_1373003939_237a58814b05aad0af34a2647659a52b_rle_crop_3888884469_0.png', 1373004046: '1753092685_3466461_1373003936_4e582d9767d9b87549301fdafcf6cfb4_rle_crop_3888884504_0.png', 1373004047: '1753092685_3466461_1373003934_806980015b3cbd1e17c0af72870316ed_rle_crop_3888884533_0.png', 1373004153: '1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/da668b7fda19bc050ef3f58471635bca_96714942.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f6c96acdcafd70e44bef729ca3598cf4_28869555.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d3e59875259bd39afcac63209d53e71f_71131676.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/77b42deb4ed07d65748850e2550b1ab1_46283163.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d955ca027f736af905addff83e2ae2f8_93128050.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/db29d8a3708963f0a6be23bd597bc923_86264645.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7ef2c1de4caa5d54a1fddaf72c426878_77551963.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f559ef01b05476129e4ba88cd8d77cda_90875489.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/0c68d267dcf1bdc45c532980b29ed6bd_75131242.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/2354dd7d47bc0e564822bfb6db59165c_60639206.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/6d32552e30b7d8f195713fb12c2d7991_22214563.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7a1269fcad4d42bfa04065b0729e3b53_57516686.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d09283226a9ea1af54459625450a1784_35529542.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/6f3b32633b22f2e663ebda7747649548_86814981.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3175d0146f8dd9672e8ea45ab2162088_50674213.png change filename to text .imagette251314911753092902/ imagette251314911753092902/1753092566_3462635_1373003864_8b4119219df672ddcdef7ec0c2f1b212_rle_crop_3888884167_0.png.png imagette251314911753092902/1753092487_2748299_1373003717_8731d0e8139fefe12d516d92d85a98d6_rle_crop_3888883971_0.png.png imagette251314911753092902/1753092685_3466461_1373003934_806980015b3cbd1e17c0af72870316ed_rle_crop_3888884533_0.png.png imagette251314911753092902/1753092326_3456237_1373003657_1ef8196697ba1683d3abf4973a2f84c5_rle_crop_3888883599_0.png.png imagette251314911753092902/1753092247_2739685_1373002895_0431e16b734e19a741ec3831d508e2d0_rle_crop_3888883333_0.png.png imagette251314911753092902/1753092487_2748299_1373003719_d3ad0293da98af97350c5d4b5b3f380a_rle_crop_3888883959_0.png.png imagette251314911753092902/1753092326_3456237_1373003643_54280e8ca71d51a9df04a5c933244849_rle_crop_3888883616_0.png.png imagette251314911753092902/1753092685_3466461_1373003939_237a58814b05aad0af34a2647659a52b_rle_crop_3888884469_0.png.png imagette251314911753092902/1753092326_3456237_1373003641_a93af39b149af1870fa338f378a65ffd_rle_crop_3888883633_0.png.png imagette251314911753092902/1753092685_3466461_1373003936_4e582d9767d9b87549301fdafcf6cfb4_rle_crop_3888884504_0.png.png imagette251314911753092902/1753092845_2763082_1373003976_a56db29aa95f6308676789174049708b_rle_crop_3888885142_0.png.png imagette251314911753092902/1753092326_3456237_1373003657_1ef8196697ba1683d3abf4973a2f84c5_rle_crop_3888883595_0.png.png imagette251314911753092902/1753092247_2739685_1373002895_0431e16b734e19a741ec3831d508e2d0_rle_crop_3888883334_0.png.png imagette251314911753092902/1753092326_3456237_1373003684_f12bc1228a945a5eae5a41f090ba75b0_rle_crop_3888883578_0.png.png imagette251314911753092902/1753092326_3456237_1373003643_54280e8ca71d51a9df04a5c933244849_rle_crop_3888883614_0.png.png imagette251314911753092902/1753092685_3466461_1373003941_58a55a361190f20c8c4a309403804d0d_rle_crop_3888884460_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7eb81fa5158d70cae2f6cdeb5041976e_42401692.png imagette251314911753092902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25131481 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25131501,25131502,25131503,25131504,25131505,25131506,25131507,25131508,25131509,25131510,25131511,25131512?tags=Carton_gris,Carton_brun,Teint_Dans_La_Masse,plastique,papier,kraft,environnement,mal_croppe,metal,flou,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1373004145] : ('0.05022230237221101',) no score found for photo 1373004145 We are sending mail with results at report@fotonower.com args[1373004142] : ('0.05022230237221101',) no score found for photo 1373004142 We are sending mail with results at report@fotonower.com args[1373004139] : ('0.05022230237221101',) no score found for photo 1373004139 We are sending mail with results at report@fotonower.com args[1373004137] : ('0.05022230237221101',) no score found for photo 1373004137 We are sending mail with results at report@fotonower.com args[1373004126] : ('0.05022230237221101',) no score found for photo 1373004126 We are sending mail with results at report@fotonower.com args[1373004117] : ('0.05022230237221101',) no score found for photo 1373004117 We are sending mail with results at report@fotonower.com args[1373004099] : ('0.05022230237221101',) no score found for photo 1373004099 We are sending mail with results at report@fotonower.com args[1373004096] : ('0.05022230237221101',) no score found for photo 1373004096 We are sending mail with results at report@fotonower.com args[1373004093] : ('0.05022230237221101',) no score found for photo 1373004093 We are sending mail with results at report@fotonower.com args[1373004090] : ('0.05022230237221101',) no score found for photo 1373004090 We are sending mail with results at report@fotonower.com args[1373004088] : ('0.05022230237221101',) no score found for photo 1373004088 We are sending mail with results at report@fotonower.com args[1373004085] : ('0.05022230237221101',) no score found for photo 1373004085 We are sending mail with results at report@fotonower.com refus_total : 0.05022230237221101 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131481 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_P25131481_21-07-2025_12_14_58.pdf results_Auto_P25131481_21-07-2025_12_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131481_21-07-2025_12_14_58.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','25131481','results_Auto_P25131481_21-07-2025_12_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131481_21-07-2025_12_14_58.pdf','pdf','','0.34','0.05022230237221101') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25131481]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] map_info['map_portfolio_photo'] : {25131481: [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085, 1373004050, 1373004025, 1373004023, 1373004021, 1373004019, 1373004018, 1373004016, 1373003978, 1373003976, 1373003974, 1373003969, 1373003961, 1373003959, 1373003941, 1373003939, 1373003937, 1373003936, 1373003935, 1373003934, 1373003897, 1373003895, 1373003893, 1373003891, 1373003889, 1373003888, 1373003866, 1373003864, 1373003862, 1373003861, 1373003860, 1373003859, 1373003817, 1373003806, 1373003804, 1373003802, 1373003800, 1373003799, 1373003797, 1373003736, 1373003734, 1373003732, 1373003731, 1373003719, 1373003717, 1373003686, 1373003684, 1373003657, 1373003643, 1373003641, 1373003639, 1373003225, 1373002895, 1373002867, 1373002841, 1373002798, 1373002750, 1373002701]} final : False mtd_id 4302 list_pids : [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] 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, '3313945') ('4302', '25131481', '1373004145', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945') 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', '25131481', '1373004145', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945')] time used for this insertion : 0.01567530632019043 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.602920055389404 time spend to save output : 0.01590275764465332 total time spend for step 4 : 6.618822813034058 step5:split_time_score Mon Jul 21 12:15:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25131481'] 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 : [('25131481',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25131481) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373004139: {'path': 'temp/1753092897_2241190_1373004139_b09620bc83c01454f91a4d1a8a9c50f4.jpg', 'extension': 'jpg'}, 1373004142: {'path': 'temp/1753092897_2241190_1373004142_d73f3ded79f735836bfc1ac6bb61824b.jpg', 'extension': 'jpg'}, 1373004145: {'path': 'temp/1753092897_2241190_1373004145_de98003b8d5562de84050f43f745e2af.jpg', 'extension': 'jpg'}, 1373004093: {'path': 'temp/1753092897_2241190_1373004093_00e6ee360c71ac90743e22016fe03949.jpg', 'extension': 'jpg'}, 1373004096: {'path': 'temp/1753092897_2241190_1373004096_0f4abac0d8a95d64b7ce05cdae26c9ca.jpg', 'extension': 'jpg'}, 1373004099: {'path': 'temp/1753092897_2241190_1373004099_6fad6e2c4d2f4f0703801389e716463d.jpg', 'extension': 'jpg'}, 1373004117: {'path': 'temp/1753092897_2241190_1373004117_53a2dbcf767097651871fb5194109f06.jpg', 'extension': 'jpg'}, 1373004126: {'path': 'temp/1753092897_2241190_1373004126_114dd17baf12ebadaa6c971490ac6884.jpg', 'extension': 'jpg'}, 1373004137: {'path': 'temp/1753092897_2241190_1373004137_8e259901c13ee0dcb5c1a6ad7807cc97.jpg', 'extension': 'jpg'}, 1373004085: {'path': 'temp/1753092897_2241190_1373004085_aca4c402c2bdfcac80011a1a06bb7e79.jpg', 'extension': 'jpg'}, 1373004088: {'path': 'temp/1753092897_2241190_1373004088_0cd725b00b9763d394b3c9c734d18ef5.jpg', 'extension': 'jpg'}, 1373004090: {'path': 'temp/1753092897_2241190_1373004090_e9dc826f1d075755c70cf6ea4610c381.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 = 25131481; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25131481 group by h (('12', 69),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25131481 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 (25131481) 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 (25131481) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21072025 25131481 Nombre de photos uploadées : 69 / 23040 (0%) 21072025 25131481 Nombre de photos taguées (types de déchets): 0 / 69 (0%) 21072025 25131481 Nombre de photos taguées (volume) : 0 / 69 (0%) [{'photo_id': 1373002895, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/0431e16b734e19a741ec3831d508e2d0.jpg', 'username': None, 'uploaded_at': 1753092063, 'text': 'image_21072025_12_00_04_010140m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1373002867, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/42674c19abcfacd25c9eb9f304d800e8.jpg', 'username': None, 'uploaded_at': 1753092063, 'text': 'image_21072025_12_00_14_010136m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1373002841, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/54b041384f305e962af55921e20b045f.jpg', 'username': None, 'uploaded_at': 1753092063, 'text': 'image_21072025_12_00_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373002798, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b1e2c98e4c2dd3dc964d221d2ef0b021.jpg', 'username': None, 'uploaded_at': 1753092063, 'text': 'image_21072025_12_00_33_009124m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002961874008178711 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25131481, '2025-07-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1992378,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027914047241210938 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= 1992378 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25117802, 'dashboard_result_id': 12792505, '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_P25117802_21-07-2025_09_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25118162, 'dashboard_result_id': 12792506, '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_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25118583, 'dashboard_result_id': 12792507, '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_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25118867, 'dashboard_result_id': 12792508, '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_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25119309, 'dashboard_result_id': 12792509, '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_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25119655, 'dashboard_result_id': 12792510, '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_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25120043, 'dashboard_result_id': 12792511, '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_P25120043_21-07-2025_06_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25120070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120081, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25120433, 'dashboard_result_id': 12792512, '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_P25120433_21-07-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120470, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25120849, 'dashboard_result_id': 12792513, '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_P25120849_21-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120869, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25121295, 'dashboard_result_id': 12792514, '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_P25121295_21-07-2025_07_30_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25121311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121322, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25121721, 'dashboard_result_id': 12792515, '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_P25121721_21-07-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25121738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121747, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25122196, 'dashboard_result_id': 12792516, '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_P25122196_21-07-2025_08_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25122199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25122204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122210, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25122572, 'dashboard_result_id': 12792517, '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_P25122572_21-07-2025_08_17_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25122611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25122613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122622, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25123001, 'dashboard_result_id': 12792518, '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_P25123001_21-07-2025_08_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25123005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123016, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25123435, 'dashboard_result_id': 12792519, '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_P25123435_21-07-2025_08_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25123461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123471, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25124003, 'dashboard_result_id': 12792520, '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_P25124003_21-07-2025_09_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25124065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124077, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25124692, 'dashboard_result_id': 12792521, '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_P25124692_21-07-2025_09_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25124733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124740, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25125169, 'dashboard_result_id': 12792522, '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_P25125169_21-07-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125206, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25125720, 'dashboard_result_id': 12792523, '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_P25125720_21-07-2025_09_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125759, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25126214, 'dashboard_result_id': 12792524, '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_P25126214_21-07-2025_10_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25126220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126231, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25126652, 'dashboard_result_id': 12792525, '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_P25126652_21-07-2025_10_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25126665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126666, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25127139, 'dashboard_result_id': 12792526, '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_P25127139_21-07-2025_10_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25127150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127154, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25127580, 'dashboard_result_id': 12792527, '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_P25127580_21-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25127616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127627, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25128535, 'dashboard_result_id': 12792528, '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_P25128535_21-07-2025_11_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25128542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25128543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25128544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25128545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25128548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25128549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25128550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25128551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25128552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25128553, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25129258, 'dashboard_result_id': 12792529, '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_P25129258_21-07-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129271, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25129821, 'dashboard_result_id': 12792530, '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_P25129821_21-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129864, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25130289, 'dashboard_result_id': 12792531, '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_P25130289_21-07-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25130332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25130333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25130334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25130335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25130337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25130338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25130339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25130340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25130341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25130342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25130343, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25131061, 'dashboard_result_id': 12792532, '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_P25131061_21-07-2025_12_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131081, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 2000976, 'mtr_portfolio_id': 25131481, 'dashboard_result_id': 12792533, '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_P25131481_21-07-2025_12_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131500, '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 = 25117802 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': 3312464, 'mtr_portfolio_id': 25117802, 'created_at': datetime.datetime(2025, 7, 21, 9, 3, 58), 'result': '0.03440997870746703', 'result_long': None, 'result_double': None}] Qualite : 0.03440997870746703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25117802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25117802_21-07-2025_09_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25117802 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_P25117802_21-07-2025_09_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, 'pht': 3726}}" where mtr_portfolio_id = 25117802 and dashboard_run_id = 2000976 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`=25117802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792505, 0.03440997870746703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25117802_21-07-2025_09_03_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, '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 = 25118162 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': 3312503, 'mtr_portfolio_id': 25118162, 'created_at': datetime.datetime(2025, 7, 21, 5, 32, 58), 'result': '0.032502647683057155', 'result_long': None, 'result_double': None}] Qualite : 0.032502647683057155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118162_21-07-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118162 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_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, 'pht': 3726}}" where mtr_portfolio_id = 25118162 and dashboard_run_id = 2000976 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`=25118162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792506, 0.032502647683057155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, '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 = 25118583 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': 3312548, 'mtr_portfolio_id': 25118583, 'created_at': datetime.datetime(2025, 7, 21, 5, 46, 57), 'result': '0.03308538033732772', 'result_long': None, 'result_double': None}] Qualite : 0.03308538033732772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118583_21-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118583 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_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, 'pht': 3726}}" where mtr_portfolio_id = 25118583 and dashboard_run_id = 2000976 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`=25118583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792507, 0.03308538033732772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, '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 = 25118867 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': 3312576, 'mtr_portfolio_id': 25118867, 'created_at': datetime.datetime(2025, 7, 21, 6, 0, 30), 'result': '0.037794704530617076', 'result_long': None, 'result_double': None}] Qualite : 0.037794704530617076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118867_21-07-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118867 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_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, 'pht': 3726}}" where mtr_portfolio_id = 25118867 and dashboard_run_id = 2000976 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`=25118867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792508, 0.037794704530617076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, '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 = 25119309 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': 3312628, 'mtr_portfolio_id': 25119309, 'created_at': datetime.datetime(2025, 7, 21, 6, 16, 58), 'result': '0.027272049655271604', 'result_long': None, 'result_double': None}] Qualite : 0.027272049655271604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25119309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119309_21-07-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25119309 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_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, 'pht': 3726}}" where mtr_portfolio_id = 25119309 and dashboard_run_id = 2000976 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`=25119309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792509, 0.027272049655271604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, '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 = 25119655 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': 3312661, 'mtr_portfolio_id': 25119655, 'created_at': datetime.datetime(2025, 7, 21, 6, 33, 2), 'result': '0.0418259510549791', 'result_long': None, 'result_double': None}] Qualite : 0.0418259510549791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25119655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25119655 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_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, 'pht': 3726}}" where mtr_portfolio_id = 25119655 and dashboard_run_id = 2000976 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`=25119655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792510, 0.0418259510549791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, '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 = 25120043 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': 3312702, 'mtr_portfolio_id': 25120043, 'created_at': datetime.datetime(2025, 7, 21, 6, 46, 58), 'result': '0.03280485849518129', 'result_long': None, 'result_double': None}] Qualite : 0.03280485849518129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25120043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120043_21-07-2025_06_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25120043 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_P25120043_21-07-2025_06_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25120070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120081, 'pht': 3726}}" where mtr_portfolio_id = 25120043 and dashboard_run_id = 2000976 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`=25120043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792511, 0.03280485849518129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120043_21-07-2025_06_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25120070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120078, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120081, '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 = 25120433 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': 3312741, 'mtr_portfolio_id': 25120433, 'created_at': datetime.datetime(2025, 7, 21, 7, 2, 58), 'result': '0.028303493940871647', 'result_long': None, 'result_double': None}] Qualite : 0.028303493940871647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25120433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120433_21-07-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25120433 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_P25120433_21-07-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120470, 'pht': 3726}}" where mtr_portfolio_id = 25120433 and dashboard_run_id = 2000976 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`=25120433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792512, 0.028303493940871647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120433_21-07-2025_07_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120459, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120470, '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 = 25120849 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': 3312791, 'mtr_portfolio_id': 25120849, 'created_at': datetime.datetime(2025, 7, 21, 7, 16, 57), 'result': '0.03741647880597789', 'result_long': None, 'result_double': None}] Qualite : 0.03741647880597789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25120849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120849_21-07-2025_07_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25120849 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_P25120849_21-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120869, 'pht': 3726}}" where mtr_portfolio_id = 25120849 and dashboard_run_id = 2000976 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`=25120849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792513, 0.03741647880597789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25120849_21-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25120858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25120859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25120860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25120861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25120862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25120863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25120864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25120865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25120866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25120867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25120868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25120869, '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 = 25121295 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': 3312846, 'mtr_portfolio_id': 25121295, 'created_at': datetime.datetime(2025, 7, 21, 7, 30, 31), 'result': '0.057913604656304775', 'result_long': None, 'result_double': None}] Qualite : 0.057913604656304775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25121295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121295_21-07-2025_07_30_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25121295 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_P25121295_21-07-2025_07_30_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25121311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121322, 'pht': 3726}}" where mtr_portfolio_id = 25121295 and dashboard_run_id = 2000976 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`=25121295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792514, 0.057913604656304775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121295_21-07-2025_07_30_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25121311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121316, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121322, '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 = 25121721 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': 3312901, 'mtr_portfolio_id': 25121721, 'created_at': datetime.datetime(2025, 7, 21, 7, 46, 57), 'result': '0.04469200651161689', 'result_long': None, 'result_double': None}] Qualite : 0.04469200651161689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25121721 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121721_21-07-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25121721 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_P25121721_21-07-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25121738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121747, 'pht': 3726}}" where mtr_portfolio_id = 25121721 and dashboard_run_id = 2000976 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`=25121721 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792515, 0.04469200651161689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25121721_21-07-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25121736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25121737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25121738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25121739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25121740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25121741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25121742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25121743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25121744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25121745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25121746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25121747, '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 = 25122196 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': 3312950, 'mtr_portfolio_id': 25122196, 'created_at': datetime.datetime(2025, 7, 21, 8, 0, 58), 'result': '0.05153012025318089', 'result_long': None, 'result_double': None}] Qualite : 0.05153012025318089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25122196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122196_21-07-2025_08_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25122196 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_P25122196_21-07-2025_08_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25122199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25122204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122210, 'pht': 3726}}" where mtr_portfolio_id = 25122196 and dashboard_run_id = 2000976 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`=25122196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792516, 0.05153012025318089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122196_21-07-2025_08_00_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25122199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25122204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122210, '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 = 25122572 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': 3313014, 'mtr_portfolio_id': 25122572, 'created_at': datetime.datetime(2025, 7, 21, 8, 17, 27), 'result': '0.04399297328570406', 'result_long': None, 'result_double': None}] Qualite : 0.04399297328570406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25122572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122572_21-07-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25122572 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_P25122572_21-07-2025_08_17_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25122611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25122613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122622, 'pht': 3726}}" where mtr_portfolio_id = 25122572 and dashboard_run_id = 2000976 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`=25122572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792517, 0.04399297328570406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25122572_21-07-2025_08_17_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25122611, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25122612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25122613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25122614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25122615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25122616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25122617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25122618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25122619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25122620, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25122621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25122622, '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 = 25123001 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': 3313061, 'mtr_portfolio_id': 25123001, 'created_at': datetime.datetime(2025, 7, 21, 8, 30, 58), 'result': '0.04563874605983177', 'result_long': None, 'result_double': None}] Qualite : 0.04563874605983177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25123001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123001_21-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25123001 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_P25123001_21-07-2025_08_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25123005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123016, 'pht': 3726}}" where mtr_portfolio_id = 25123001 and dashboard_run_id = 2000976 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`=25123001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792518, 0.04563874605983177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123001_21-07-2025_08_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25123005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123007, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123016, '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 = 25123435 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': 3313122, 'mtr_portfolio_id': 25123435, 'created_at': datetime.datetime(2025, 7, 21, 8, 46, 57), 'result': '0.021387470139719648', 'result_long': None, 'result_double': None}] Qualite : 0.021387470139719648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25123435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123435_21-07-2025_08_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25123435 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_P25123435_21-07-2025_08_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25123461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123471, 'pht': 3726}}" where mtr_portfolio_id = 25123435 and dashboard_run_id = 2000976 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`=25123435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792519, 0.021387470139719648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25123435_21-07-2025_08_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25123460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25123461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25123462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25123463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25123464, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25123465, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25123466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25123467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25123468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25123469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25123470, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25123471, '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 = 25124003 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': 3313190, 'mtr_portfolio_id': 25124003, 'created_at': datetime.datetime(2025, 7, 21, 9, 0, 58), 'result': '0.024790441340515283', 'result_long': None, 'result_double': None}] Qualite : 0.024790441340515283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25124003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124003_21-07-2025_09_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25124003 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_P25124003_21-07-2025_09_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25124065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124077, 'pht': 3726}}" where mtr_portfolio_id = 25124003 and dashboard_run_id = 2000976 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`=25124003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792520, 0.024790441340515283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124003_21-07-2025_09_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25124065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124077, '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 = 25124692 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': 3313259, 'mtr_portfolio_id': 25124692, 'created_at': datetime.datetime(2025, 7, 21, 9, 17), 'result': '0.02335231198383595', 'result_long': None, 'result_double': None}] Qualite : 0.02335231198383595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25124692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124692_21-07-2025_09_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25124692 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_P25124692_21-07-2025_09_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25124733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124740, 'pht': 3726}}" where mtr_portfolio_id = 25124692 and dashboard_run_id = 2000976 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`=25124692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792521, 0.02335231198383595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25124692_21-07-2025_09_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25124729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25124730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25124731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25124732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25124733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25124734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25124735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25124736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25124737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25124738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25124739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25124740, '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 = 25125169 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': 3313309, 'mtr_portfolio_id': 25125169, 'created_at': datetime.datetime(2025, 7, 21, 9, 31, 1), 'result': '0.0257918562791543', 'result_long': None, 'result_double': None}] Qualite : 0.0257918562791543 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25125169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125169_21-07-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25125169 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_P25125169_21-07-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125206, 'pht': 3726}}" where mtr_portfolio_id = 25125169 and dashboard_run_id = 2000976 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`=25125169 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792522, 0.0257918562791543, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125169_21-07-2025_09_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125199, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125200, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125206, '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 = 25125720 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': 3313373, 'mtr_portfolio_id': 25125720, 'created_at': datetime.datetime(2025, 7, 21, 9, 46, 59), 'result': '0.026644239679640976', 'result_long': None, 'result_double': None}] Qualite : 0.026644239679640976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25125720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125720_21-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25125720 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_P25125720_21-07-2025_09_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125759, 'pht': 3726}}" where mtr_portfolio_id = 25125720 and dashboard_run_id = 2000976 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`=25125720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792523, 0.026644239679640976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25125720_21-07-2025_09_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25125748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25125749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25125750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25125751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25125752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25125753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25125754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25125755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25125756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25125757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25125758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25125759, '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 = 25126214 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': 3313425, 'mtr_portfolio_id': 25126214, 'created_at': datetime.datetime(2025, 7, 21, 10, 0, 30), 'result': '0.03345729665676193', 'result_long': None, 'result_double': None}] Qualite : 0.03345729665676193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25126214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126214_21-07-2025_10_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25126214 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_P25126214_21-07-2025_10_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25126220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126231, 'pht': 3726}}" where mtr_portfolio_id = 25126214 and dashboard_run_id = 2000976 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`=25126214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792524, 0.03345729665676193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126214_21-07-2025_10_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25126220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126231, '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 = 25126652 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': 3313479, 'mtr_portfolio_id': 25126652, 'created_at': datetime.datetime(2025, 7, 21, 10, 17), 'result': '0.04178154327730026', 'result_long': None, 'result_double': None}] Qualite : 0.04178154327730026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25126652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126652_21-07-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25126652 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_P25126652_21-07-2025_10_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25126665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126666, 'pht': 3726}}" where mtr_portfolio_id = 25126652 and dashboard_run_id = 2000976 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`=25126652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792525, 0.04178154327730026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25126652_21-07-2025_10_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25126655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25126656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25126657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25126658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25126659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25126660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25126661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25126662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25126663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25126665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25126666, '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 = 25127139 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': 3313524, 'mtr_portfolio_id': 25127139, 'created_at': datetime.datetime(2025, 7, 21, 10, 31), 'result': '0.043950352534047804', 'result_long': None, 'result_double': None}] Qualite : 0.043950352534047804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25127139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127139_21-07-2025_10_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25127139 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_P25127139_21-07-2025_10_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25127150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127154, 'pht': 3726}}" where mtr_portfolio_id = 25127139 and dashboard_run_id = 2000976 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`=25127139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792526, 0.043950352534047804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127139_21-07-2025_10_31_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25127150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127154, '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 = 25127580 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': 3313594, 'mtr_portfolio_id': 25127580, 'created_at': datetime.datetime(2025, 7, 21, 10, 47), 'result': '0.03339850728285444', 'result_long': None, 'result_double': None}] Qualite : 0.03339850728285444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25127580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127580_21-07-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25127580 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_P25127580_21-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25127616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127627, 'pht': 3726}}" where mtr_portfolio_id = 25127580 and dashboard_run_id = 2000976 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`=25127580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792527, 0.03339850728285444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25127580_21-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25127616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25127617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25127618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25127619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25127620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25127621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25127622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25127623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25127624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25127625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25127626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25127627, '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 = 25128535 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': 3313690, 'mtr_portfolio_id': 25128535, 'created_at': datetime.datetime(2025, 7, 21, 11, 0, 58), 'result': '0.051045375285523165', 'result_long': None, 'result_double': None}] Qualite : 0.051045375285523165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25128535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25128535_21-07-2025_11_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25128535 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_P25128535_21-07-2025_11_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25128542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25128543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25128544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25128545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25128548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25128549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25128550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25128551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25128552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25128553, 'pht': 3726}}" where mtr_portfolio_id = 25128535 and dashboard_run_id = 2000976 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`=25128535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792528, 0.051045375285523165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25128535_21-07-2025_11_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25128542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25128543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25128544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25128545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25128548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25128549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25128550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25128551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25128552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25128553, '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 = 25129258 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': 3313740, 'mtr_portfolio_id': 25129258, 'created_at': datetime.datetime(2025, 7, 21, 11, 16, 58), 'result': '0.0581431344604299', 'result_long': None, 'result_double': None}] Qualite : 0.0581431344604299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25129258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129258_21-07-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25129258 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_P25129258_21-07-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129271, 'pht': 3726}}" where mtr_portfolio_id = 25129258 and dashboard_run_id = 2000976 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`=25129258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792529, 0.0581431344604299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129258_21-07-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129271, '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 = 25129821 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': 3313786, 'mtr_portfolio_id': 25129821, 'created_at': datetime.datetime(2025, 7, 21, 11, 30, 59), 'result': '0.041976442848285736', 'result_long': None, 'result_double': None}] Qualite : 0.041976442848285736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25129821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129821_21-07-2025_11_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25129821 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_P25129821_21-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129864, 'pht': 3726}}" where mtr_portfolio_id = 25129821 and dashboard_run_id = 2000975 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`=25129821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792530, 0.041976442848285736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25129821_21-07-2025_11_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25129853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25129854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25129855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25129856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25129857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25129858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25129859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25129860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25129861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25129862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25129863, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25129864, '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 = 25130289 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': 3313843, 'mtr_portfolio_id': 25130289, 'created_at': datetime.datetime(2025, 7, 21, 11, 46, 58), 'result': '0.04854925222443973', 'result_long': None, 'result_double': None}] Qualite : 0.04854925222443973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25130289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25130289_21-07-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25130289 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_P25130289_21-07-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25130332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25130333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25130334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25130335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25130337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25130338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25130339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25130340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25130341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25130342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25130343, 'pht': 3726}}" where mtr_portfolio_id = 25130289 and dashboard_run_id = 2000975 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`=25130289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792531, 0.04854925222443973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25130289_21-07-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25130332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25130333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25130334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25130335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25130336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25130337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25130338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25130339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25130340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25130341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25130342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25130343, '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 = 25131061 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': 3313897, 'mtr_portfolio_id': 25131061, 'created_at': datetime.datetime(2025, 7, 21, 12, 0, 58), 'result': '0.053016262676952225', 'result_long': None, 'result_double': None}] Qualite : 0.053016262676952225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25131061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131061_21-07-2025_12_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25131061 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_P25131061_21-07-2025_12_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131081, 'pht': 3726}}" where mtr_portfolio_id = 25131061 and dashboard_run_id = 2000975 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`=25131061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792532, 0.053016262676952225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131061_21-07-2025_12_00_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131081, '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 = 25131481 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': 3313945, 'mtr_portfolio_id': 25131481, 'created_at': datetime.datetime(2025, 7, 21, 12, 14, 57), 'result': '0.05022230237221101', 'result_long': None, 'result_double': None}] Qualite : 0.05022230237221101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25131481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131481_21-07-2025_12_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25131481 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_P25131481_21-07-2025_12_14_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131500, 'pht': 3726}}" where mtr_portfolio_id = 25131481 and dashboard_run_id = 2000975 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`=25131481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12792533, 0.05022230237221101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25131481_21-07-2025_12_14_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25131489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25131490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25131491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25131492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25131493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25131494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25131495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25131496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25131497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25131498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25131499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25131500, '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 (25117802,25118162,25118583,25118867,25119309,25119655,25120043,25120433,25120849,25121295,25121721,25122196,25122572,25123001,25123435,25124003,25124692,25125169,25125720,25126214,25126652,25127139,25127580,25128535,25129258,25129821,25130289,25131061,25131481) result : ((1372964074,), (1372964101,), (1372964128,), (1372964152,), (1372964177,), (1372964403,), (1372964596,), (1372964606,), (1372964608,), (1372964610,), (1372964612,), (1372964614,), (1372964631,), (1372964635,), (1372964637,), (1372964641,), (1372964645,), (1372964648,), (1372964668,), (1372964691,), (1372964692,), (1372964693,), (1372964694,), (1372964695,), (1372964696,), (1372964720,), (1372964722,), (1372964723,), (1372964724,), (1372964725,), (1372964726,), (1372964739,), (1372964741,), (1372964742,), (1372964743,), (1372964744,), (1372964745,), (1372964758,), (1372964760,), (1372964761,), (1372964762,), (1372964764,), (1372964766,), (1372964792,), (1372964795,), (1372964798,), (1372964800,), (1372964802,), (1372964803,), (1372964831,), (1372964855,), (1372964857,), (1372964858,), (1372964860,), (1372964861,), (1372964862,), (1372964878,), (1372964880,), (1372964881,), (1372964883,), (1372964884,), (1372964885,), (1372964898,), (1372964900,), (1372964902,), (1372964904,), (1372964905,), (1372964906,), (1372964930,), (1372964933,), (1372964935,), (1372964936,), (1372964937,), (1372964938,), (1372967634,), (1372979480,), (1372979486,), (1372964945,), (1372964946,), (1372964947,), (1372964948,), (1372964949,), (1372964951,), (1372964959,), (1372964960,), (1372964962,), (1372964964,), (1372964966,), (1372964968,), (1372964981,), (1372964983,), (1372964984,), (1372964985,), (1372964986,), (1372964987,), (1372965001,), (1372965003,), (1372965005,), (1372965006,), (1372965007,), (1372965008,), (1372965018,), (1372965021,), (1372965023,), (1372965024,), (1372965025,), (1372965026,), (1372965046,), (1372965063,), (1372965083,), (1372965088,), (1372965091,), (1372965092,), (1372965093,), (1372965095,), (1372965142,), (1372965147,), (1372965151,), (1372965153,), (1372965154,), (1372965155,), (1372965171,), (1372965173,), (1372965176,), (1372965179,), (1372965180,), (1372965181,), (1372965193,), (1372965195,), (1372965196,), (1372965197,), (1372965198,), (1372965199,), (1372965212,), (1372965213,), (1372965214,), (1372965219,), (1372965220,), (1372965221,), (1372965262,), (1372965264,), (1372965265,), (1372965266,), (1372965267,), (1372965269,), (1372965296,), (1372965297,), (1372965298,), (1372965299,), (1372965300,), (1372965301,), (1372965318,), (1372965322,), (1372965326,), (1372965327,), (1372965329,), (1372965331,), (1372965381,), (1372965402,), (1372965404,), (1372965405,), (1372965408,), (1372965410,), (1372965412,), (1372965425,), (1372965426,), (1372965428,), (1372965430,), (1372965431,), (1372965432,), (1372965444,), (1372965448,), (1372965452,), (1372965454,), (1372965455,), (1372965456,), (1372965469,), (1372965471,), (1372965472,), (1372965474,), (1372965475,), (1372965476,), (1372965484,), (1372965486,), (1372965489,), (1372965491,), (1372965493,), (1372965494,), (1372965509,), (1372965530,), (1372965536,), (1372965539,), (1372965540,), (1372965541,), (1372965542,), (1372965552,), (1372965554,), (1372965555,), (1372965556,), (1372965557,), (1372965558,), (1372965568,), (1372965577,), (1372965581,), (1372965582,), (1372965583,), (1372965584,), (1372965601,), (1372965602,), (1372965603,), (1372965604,), (1372965606,), (1372965607,), (1372965629,), (1372965645,), (1372965650,), (1372965652,), (1372965656,), (1372965658,), (1372965660,), (1372965672,), (1372965678,), (1372965679,), (1372965681,), (1372965682,), (1372965683,), (1372965693,), (1372965696,), (1372965697,), (1372965699,), (1372965700,), (1372965701,), (1372965706,), (1372965709,), (1372965711,), (1372965713,), (1372965715,), (1372965718,), (1372965732,), (1372965733,), (1372965734,), (1372965735,), (1372965736,), (1372965738,), (1372965752,), (1372965753,), (1372965754,), (1372965755,), (1372965756,), (1372965757,), (1372965772,), (1372965774,), (1372965776,), (1372965778,), (1372965779,), (1372965781,), (1372965805,), (1372965808,), (1372965810,), (1372965811,), (1372965812,), (1372965813,), (1372965839,), (1372965842,), (1372965845,), (1372965847,), (1372965849,), (1372965850,), (1372965861,), (1372965882,), (1372965884,), (1372965886,), (1372965887,), (1372965888,), (1372965889,), (1372965907,), (1372965909,), (1372965910,), (1372965913,), (1372965914,), (1372965916,), (1372965928,), (1372965931,), (1372965933,), (1372965935,), (1372965936,), (1372965937,), (1372965942,), (1372965944,), (1372965946,), (1372965948,), (1372965949,), (1372965950,), (1372965968,), (1372966179,), (1372966220,), (1372966267,), (1372966312,), (1372966357,), (1372966434,), (1372967508,), (1372967622,), (1372967625,), (1372967628,), (1372967630,), (1372967633,), (1372967641,), (1372967659,), (1372967686,), (1372967690,), (1372967693,), (1372967695,), (1372967696,), (1372967697,), (1372967710,), (1372967711,), (1372967713,), (1372967715,), (1372967716,), (1372967717,), (1372967722,), (1372967724,), (1372967726,), (1372967727,), (1372967728,), (1372967729,), (1372967740,), (1372967764,), (1372967766,), (1372967767,), (1372967768,), (1372967769,), (1372967770,), (1372967780,), (1372967784,), (1372967788,), (1372967791,), (1372967793,), (1372967794,), (1372967802,), (1372967803,), (1372967805,), (1372967808,), (1372967810,), (1372967812,), (1372967836,), (1372967838,), (1372967839,), (1372967841,), (1372967842,), (1372967843,), (1372967871,), (1372967886,), (1372967888,), (1372967890,), (1372967891,), (1372967892,), (1372967893,), (1372967909,), (1372967911,), (1372967913,), (1372967914,), (1372967915,), (1372967916,), (1372967934,), (1372967936,), (1372967939,), (1372967940,), (1372967941,), (1372967942,), (1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,), (1372968367,), (1372968369,), (1372968371,), (1372968372,), (1372968379,), (1372968383,), (1372968403,), (1372968423,), (1372968425,), (1372968426,), (1372968428,), (1372968431,), (1372968434,), (1372968446,), (1372968452,), (1372968458,), (1372968460,), (1372968461,), (1372968463,), (1372968496,), (1372968510,), (1372968519,), (1372968524,), (1372968525,), (1372968526,), (1372968527,), (1372968547,), (1372968548,), (1372968550,), (1372968552,), (1372968554,), (1372968555,), (1372968574,), (1372968575,), (1372968576,), (1372968577,), (1372968578,), (1372968579,), (1372968593,), (1372968595,), (1372968596,), (1372968597,), (1372968599,), (1372968600,), (1372968618,), (1372968620,), (1372968622,), (1372968623,), (1372968624,), (1372968625,), (1372968672,), (1372968673,), (1372968674,), (1372968675,), (1372968677,), (1372968678,), (1372968709,), (1372968733,), (1372968738,), (1372968740,), (1372968743,), (1372968746,), (1372968749,), (1372968765,), (1372968768,), (1372968770,), (1372968772,), (1372968776,), (1372968779,), (1372968792,), (1372968794,), (1372968796,), (1372968798,), (1372968799,), (1372968800,), (1372968812,), (1372968813,), (1372968818,), (1372968819,), (1372968820,), (1372968821,), (1372968838,), (1372968840,), (1372968841,), (1372968843,), (1372968844,), (1372968845,), (1372968858,), (1372968862,), (1372968866,), (1372968868,), (1372968870,), (1372968871,), (1372968900,), (1372968903,), (1372968906,), (1372968907,), (1372968908,), (1372968909,), (1372968931,), (1372968933,), (1372968936,), (1372968938,), (1372968939,), (1372968941,), (1372968968,), (1372968971,), (1372968974,), (1372968975,), (1372968977,), (1372968979,), (1372968998,), (1372969023,), (1372969025,), (1372969026,), (1372969028,), (1372969029,), (1372969030,), (1372969040,), (1372969043,), (1372969044,), (1372969047,), (1372969049,), (1372969050,), (1372969068,), (1372969071,), (1372969073,), (1372969075,), (1372969077,), (1372969079,), (1372969087,), (1372969091,), (1372969093,), (1372969094,), (1372969096,), (1372969099,), (1372969120,), (1372969122,), (1372969124,), (1372969125,), (1372969128,), (1372969132,), (1372969319,), (1372969372,), (1372969428,), (1372969477,), (1372969530,), (1372969570,), (1372970012,), (1372970455,), (1372970336,), (1372970360,), (1372970382,), (1372970406,), (1372970430,), (1372970561,), (1372970587,), (1372970608,), (1372970610,), (1372970632,), (1372970638,), (1372970657,), (1372970660,), (1372970663,), (1372970664,), (1372970665,), (1372970666,), (1372970686,), (1372970692,), (1372970698,), (1372970700,), (1372970702,), (1372970704,), (1372970736,), (1372970738,), (1372970741,), (1372970742,), (1372970744,), (1372970746,), (1372970757,), (1372970759,), (1372970766,), (1372970772,), (1372970774,), (1372970777,), (1372970805,), (1372970833,), (1372970840,), (1372970844,), (1372970846,), (1372970848,), (1372970851,), (1372970878,), (1372970880,), (1372970881,), (1372970883,), (1372970885,), (1372970889,), (1372970909,), (1372970916,), (1372970920,), (1372970921,), (1372970924,), (1372970926,), (1372970956,), (1372970959,), (1372970961,), (1372970962,), (1372970964,), (1372970966,), (1372970989,), (1372971018,), (1372971021,), (1372971023,), (1372971026,), (1372971028,), (1372971032,), (1372971049,), (1372971052,), (1372971054,), (1372971060,), (1372971063,), (1372971066,), (1372971103,), (1372971106,), (1372971107,), (1372971111,), (1372971114,), (1372971116,), (1372971136,), (1372971143,), (1372971147,), (1372971148,), (1372971150,), (1372971154,), (1372971189,), (1372971190,), (1372971191,), (1372971192,), (1372971194,), (1372971196,), (1372971221,), (1372971224,), (1372971228,), (1372971231,), (1372971235,), (1372971239,), (1372971270,), (1372971272,), (1372971274,), (1372971275,), (1372971279,), (1372971282,), (1372971305,), (1372971308,), (1372971313,), (1372971315,), (1372971317,), (1372971319,), (1372971343,), (1372971345,), (1372971347,), (1372971349,), (1372971352,), (1372971354,), (1372971388,), (1372971390,), (1372971392,), (1372971395,), (1372971398,), (1372971401,), (1372971435,), (1372971439,), (1372971441,), (1372971444,), (1372971446,), (1372971448,), (1372971466,), (1372971468,), (1372971472,), (1372971477,), (1372971479,), (1372971481,), (1372971501,), (1372971502,), (1372971505,), (1372971508,), (1372971510,), (1372971512,), (1372971527,), (1372971535,), (1372971542,), (1372971544,), (1372971546,), (1372971548,), (1372971576,), (1372971578,), (1372971581,), (1372971583,), (1372971584,), (1372971585,), (1372971609,), (1372971613,), (1372971616,), (1372971618,), (1372971621,), (1372971623,), (1372971647,), (1372971649,), (1372971650,), (1372971652,), (1372971655,), (1372971658,), (1372971677,), (1372971680,), (1372971683,), (1372971684,), (1372971687,), (1372971689,), (1372971727,), (1372971730,), (1372971737,), (1372971747,), (1372971751,), (1372971757,), (1372971785,), (1372971817,), (1372971820,), (1372971823,), (1372971824,), (1372971827,), (1372971831,), (1372971852,), (1372971854,), (1372971856,), (1372971863,), (1372971874,), (1372971880,), (1372971895,), (1372971899,), (1372971902,), (1372971903,), (1372971907,), (1372971910,), (1372971928,), (1372971933,), (1372971935,), (1372971937,), (1372971939,), (1372971942,), (1372971963,), (1372971964,), (1372971967,), (1372971970,), (1372971973,), (1372971976,), (1372971995,), (1372972000,), (1372972003,), (1372972011,), (1372972019,), (1372972027,), (1372972048,), (1372972050,), (1372972053,), (1372972054,), (1372972057,), (1372972060,), (1372972085,), (1372972087,), (1372972090,), (1372972092,), (1372972095,), (1372972098,), (1372972130,), (1372972131,), (1372972132,), (1372972134,), (1372972136,), (1372972139,), (1372972182,), (1372972222,), (1372972225,), (1372972228,), (1372972230,), (1372972231,), (1372972233,), (1372972261,), (1372972263,), (1372972265,), (1372972266,), (1372972268,), (1372972270,), (1372972299,), (1372972302,), (1372972305,), (1372972306,), (1372972308,), (1372972310,), (1372972330,), (1372972339,), (1372972345,), (1372972347,), (1372972349,), (1372972351,), (1372972375,), (1372972377,), (1372972379,), (1372972382,), (1372972385,), (1372972388,), (1372972409,), (1372972416,), (1372972421,), (1372972424,), (1372972425,), (1372972428,), (1372972449,), (1372972453,), (1372972457,), (1372972462,), (1372972465,), (1372972468,), (1372972489,), (1372972493,), (1372972496,), (1372972498,), (1372972501,), (1372972505,), (1372972550,), (1372972553,), (1372972555,), (1372972558,), (1372972559,), (1372972563,), (1372972595,), (1372972631,), (1372972635,), (1372972638,), (1372972641,), (1372972643,), (1372972646,), (1372972668,), (1372972674,), (1372972676,), (1372972678,), (1372972681,), (1372972684,), (1372972707,), (1372972740,), (1372972782,), (1372972783,), (1372972784,), (1372972785,), (1372972786,), (1372972789,), (1372973036,), (1372973071,), (1372973104,), (1372973131,), (1372973163,), (1372973214,), (1372974567,), (1372974568,), (1372974675,), (1372974686,), (1372974688,), (1372974690,), (1372974692,), (1372974707,), (1372974708,), (1372974710,), (1372974713,), (1372974716,), (1372974720,), (1372974736,), (1372974738,), (1372974739,), (1372974741,), (1372974743,), (1372974745,), (1372974776,), (1372974778,), (1372974782,), (1372974785,), (1372974789,), (1372974793,), (1372974816,), (1372974818,), (1372974821,), (1372974823,), (1372974825,), (1372974828,), (1372974844,), (1372974845,), (1372974847,), (1372974849,), (1372974851,), (1372974854,), (1372974875,), (1372974877,), (1372974878,), (1372974880,), (1372974882,), (1372974884,), (1372974922,), (1372974925,), (1372974927,), (1372974929,), (1372974931,), (1372974933,), (1372974962,), (1372974963,), (1372974965,), (1372974967,), (1372974969,), (1372974971,), (1372975001,), (1372975010,), (1372975014,), (1372975016,), (1372975018,), (1372975020,), (1372975043,), (1372975048,), (1372975052,), (1372975054,), (1372975057,), (1372975059,), (1372975083,), (1372975125,), (1372975156,), (1372975159,), (1372975161,), (1372975163,), (1372975166,), (1372975169,), (1372975198,), (1372975200,), (1372975202,), (1372975204,), (1372975205,), (1372975207,), (1372975220,), (1372975221,), (1372975222,), (1372975223,), (1372975225,), (1372975227,), (1372975252,), (1372975254,), (1372975255,), (1372975257,), (1372975259,), (1372975261,), (1372975283,), (1372975287,), (1372975290,), (1372975292,), (1372975295,), (1372975297,), (1372975323,), (1372975327,), (1372975331,), (1372975332,), (1372975334,), (1372975336,), (1372975356,), (1372975370,), (1372975376,), (1372975379,), (1372975382,), (1372975385,), (1372975408,), (1372975410,), (1372975412,), (1372975413,), (1372975415,), (1372975417,), (1372975445,), (1372975477,), (1372975478,), (1372975480,), (1372975483,), (1372975486,), (1372975489,), (1372975506,), (1372975516,), (1372975517,), (1372975519,), (1372975521,), (1372975524,), (1372975556,), (1372975558,), (1372975559,), (1372975562,), (1372975565,), (1372975568,), (1372975594,), (1372975595,), (1372975598,), (1372975601,), (1372975604,), (1372975606,), (1372975630,), (1372975631,), (1372975633,), (1372975635,), (1372975637,), (1372975639,), (1372975663,), (1372975664,), (1372975666,), (1372975668,), (1372975670,), (1372975672,), (1372975699,), (1372975701,), (1372975702,), (1372975704,), (1372975706,), (1372975708,), (1372975729,), (1372975731,), (1372975734,), (1372975736,), (1372975739,), (1372975741,), (1372975774,), (1372975776,), (1372975777,), (1372975779,), (1372975781,), (1372975783,), (1372975920,), (1372975971,), (1372976011,), (1372976039,), (1372976075,), (1372976088,), (1372976244,), (1372976247,), (1372976249,), (1372976250,), (1372976253,), (1372976255,), (1372976274,), (1372976276,), (1372976278,), (1372976280,), (1372976283,), (1372976285,), (1372976308,), (1372976310,), (1372976312,), (1372976313,), (1372976315,), (1372976317,), (1372976330,), (1372976331,), (1372976332,), (1372976333,), (1372976335,), (1372976337,), (1372976358,), (1372976359,), (1372976361,), (1372976362,), (1372976364,), (1372976367,), (1372976394,), (1372976397,), (1372976398,), (1372976399,), (1372976400,), (1372976403,), (1372976426,), (1372976427,), (1372976428,), (1372976429,), (1372976431,), (1372976433,), (1372976453,), (1372976455,), (1372976457,), (1372976459,), (1372976462,), (1372976465,), (1372976516,), (1372976519,), (1372976522,), (1372976525,), (1372976529,), (1372976533,), (1372976554,), (1372976557,), (1372976560,), (1372976562,), (1372976567,), (1372976571,), (1372976685,), (1372976687,), (1372976690,), (1372976712,), (1372976740,), (1372976764,), (1372976854,), (1372976869,), (1372976873,), (1372976880,), (1372976902,), (1372976906,), (1372976992,), (1372976995,), (1372976996,), (1372977008,), (1372977033,), (1372977056,), (1372977080,), (1372977082,), (1372977086,), (1372977095,), (1372977112,), (1372977115,), (1372977189,), (1372977213,), (1372977236,), (1372977237,), (1372977253,), (1372977256,), (1372977349,), (1372977351,), (1372977353,), (1372977354,), (1372977355,), (1372977358,), (1372977381,), (1372977385,), (1372977388,), (1372977389,), (1372977392,), (1372977394,), (1372977413,), (1372977415,), (1372977417,), (1372977418,), (1372977420,), (1372977422,), (1372977467,), (1372977469,), (1372977470,), (1372977472,), (1372977474,), (1372977476,), (1372977493,), (1372977591,), (1372977593,), (1372977596,), (1372977598,), (1372977601,), (1372977603,), (1372977616,), (1372977619,), (1372977621,), (1372977623,), (1372977625,), (1372977629,), (1372977652,), (1372977654,), (1372977658,), (1372977660,), (1372977663,), (1372977666,), (1372977680,), (1372977681,), (1372977688,), (1372977689,), (1372977692,), (1372977695,), (1372977718,), (1372977719,), (1372977725,), (1372977762,), (1372977810,), (1372977862,), (1372978382,), (1372978436,), (1372978490,), (1372978566,), (1372978620,), (1372978672,), (1372979441,), (1372979788,), (1372979818,), (1372979844,), (1372979872,), (1372979899,), (1372980070,), (1372980280,), (1372980283,), (1372980286,), (1372980287,), (1372980289,), (1372980291,), (1372980297,), (1372980349,), (1372980353,), (1372980357,), (1372980358,), (1372980360,), (1372980365,), (1372980417,), (1372980420,), (1372980423,), (1372980441,), (1372980443,), (1372980445,), (1372980584,), (1372980588,), (1372980601,), (1372980603,), (1372980605,), (1372980607,), (1372980679,), (1372980713,), (1372980720,), (1372980724,), (1372980727,), (1372980729,), (1372980753,), (1372980755,), (1372980756,), (1372980758,), (1372980760,), (1372980763,), (1372980783,), (1372980784,), (1372980787,), (1372980789,), (1372980797,), (1372980799,), (1372980839,), (1372980841,), (1372980842,), (1372980844,), (1372980846,), (1372980848,), (1372980866,), (1372980867,), (1372980869,), (1372980871,), (1372980874,), (1372980876,), (1372980915,), (1372980938,), (1372980941,), (1372980943,), (1372980945,), (1372980948,), (1372980951,), (1372980979,), (1372980987,), (1372980990,), (1372980991,), (1372980994,), (1372980997,), (1372981032,), (1372981034,), (1372981067,), (1372981069,), (1372981072,), (1372981074,), (1372981106,), (1372981122,), (1372981123,), (1372981124,), (1372981126,), (1372981128,), (1372981241,), (1372981243,), (1372981244,), (1372981245,), (1372981247,), (1372981249,), (1372981276,), (1372981279,), (1372981280,), (1372981284,), (1372981288,), (1372981292,), (1372981318,), (1372981350,), (1372981355,), (1372981356,), (1372981358,), (1372981360,), (1372981363,), (1372981381,), (1372981394,), (1372981395,), (1372981397,), (1372981399,), (1372981406,), (1372981432,), (1372981501,), (1372981520,), (1372981523,), (1372981526,), (1372981528,), (1372981531,), (1372981534,), (1372981557,), (1372981560,), (1372981563,), (1372981565,), (1372981587,), (1372981591,), (1372981613,), (1372981647,), (1372981651,), (1372981652,), (1372981655,), (1372981658,), (1372981671,), (1372981673,), (1372981675,), (1372981676,), (1372981679,), (1372981684,), (1372981702,), (1372981704,), (1372981705,), (1372981707,), (1372981710,), (1372981712,), (1372981840,), (1372981841,), (1372981842,), (1372981843,), (1372981845,), (1372981847,), (1372981871,), (1372981872,), (1372981873,), (1372981874,), (1372981875,), (1372981877,), (1372981906,), (1372981907,), (1372981908,), (1372981910,), (1372981912,), (1372981914,), (1372981943,), (1372981944,), (1372981945,), (1372981950,), (1372981952,), (1372981953,), (1372981979,), (1372982000,), (1372982005,), (1372982030,), (1372982058,), (1372982094,), (1372982122,), (1372982148,), (1372982151,), (1372982152,), (1372982155,), (1372982159,), (1372982162,), (1372982174,), (1372982175,), (1372982179,), (1372982182,), (1372982185,), (1372982187,), (1372982207,), (1372982208,), (1372982209,), (1372982210,), (1372982212,), (1372982214,), (1372982234,), (1372982235,), (1372982236,), (1372982237,), (1372982239,), (1372982241,), (1372982264,), (1372982265,), (1372982266,), (1372982267,), (1372982268,), (1372982270,), (1372982292,), (1372982294,), (1372982297,), (1372982299,), (1372982302,), (1372982305,), (1372982329,), (1372982331,), (1372982333,), (1372982334,), (1372982336,), (1372982338,), (1372982375,), (1372982377,), (1372982378,), (1372982381,), (1372982383,), (1372982385,), (1372982420,), (1372982446,), (1372982447,), (1372982449,), (1372982451,), (1372982452,), (1372982454,), (1372982476,), (1372982478,), (1372982479,), (1372982481,), (1372982483,), (1372982485,), (1372982503,), (1372982505,), (1372982507,), (1372982509,), (1372982511,), (1372982513,), (1372982539,), (1372982541,), (1372982542,), (1372982550,), (1372982552,), (1372982556,), (1372982586,), (1372982588,), (1372982589,), (1372982590,), (1372982592,), (1372982595,), (1372982623,), (1372982624,), (1372982626,), (1372982628,), (1372982630,), (1372982632,), (1372982652,), (1372982653,), (1372982654,), (1372982655,), (1372982656,), (1372982658,), (1372982690,), (1372982692,), (1372982694,), (1372982696,), (1372982698,), (1372982700,), (1372982748,), (1372982752,), (1372982754,), (1372982756,), (1372982759,), (1372982761,), (1372982788,), (1372982817,), (1372982819,), (1372982821,), (1372982823,), (1372982825,), (1372982828,), (1372982848,), (1372982855,), (1372982858,), (1372982860,), (1372982864,), (1372982866,), (1372982885,), (1372982888,), (1372982890,), (1372982892,), (1372982894,), (1372982896,), (1372982915,), (1372982917,), (1372982918,), (1372982920,), (1372982921,), (1372982924,), (1372982945,), (1372982947,), (1372982950,), (1372982952,), (1372982955,), (1372982957,), (1372983030,), (1372983050,), (1372983070,), (1372983095,), (1372983119,), (1372983147,), (1372983851,), (1372984371,), (1372984411,), (1372984454,), (1372984492,), (1372984519,), (1372984743,), (1372984746,), (1372984749,), (1372984759,), (1372984783,), (1372984807,), (1372984874,), (1372984876,), (1372984878,), (1372984879,), (1372984881,), (1372984883,), (1372984905,), (1372984907,), (1372984908,), (1372984910,), (1372984911,), (1372984913,), (1372984931,), (1372984933,), (1372984934,), (1372984936,), (1372984938,), (1372984940,), (1372984963,), (1372984965,), (1372984966,), (1372984967,), (1372984969,), (1372984971,), (1372984994,), (1372984995,), (1372984996,), (1372984997,), (1372984999,), (1372985001,), (1372985025,), (1372985026,), (1372985027,), (1372985028,), (1372985030,), (1372985032,), (1372985057,), (1372985059,), (1372985061,), (1372985063,), (1372985066,), (1372985069,), (1372985092,), (1372985093,), (1372985094,), (1372985095,), (1372985097,), (1372985099,), (1372985152,), (1372985155,), (1372985158,), (1372985160,), (1372985162,), (1372985165,), (1372985183,), (1372985208,), (1372985211,), (1372985214,), (1372985218,), (1372985220,), (1372985222,), (1372985244,), (1372985246,), (1372985248,), (1372985251,), (1372985253,), (1372985256,), (1372985276,), (1372985304,), (1372985305,), (1372985308,), (1372985314,), (1372985316,), (1372985318,), (1372985340,), (1372985341,), (1372985344,), (1372985346,), (1372985348,), (1372985350,), (1372985366,), (1372985367,), (1372985369,), (1372985371,), (1372985373,), (1372985374,), (1372985392,), (1372985394,), (1372985395,), (1372985397,), (1372985399,), (1372985401,), (1372985421,), (1372985423,), (1372985425,), (1372985427,), (1372985430,), (1372985433,), (1372985476,), (1372985478,), (1372985479,), (1372985481,), (1372985484,), (1372985487,), (1372985507,), (1372985534,), (1372985537,), (1372985540,), (1372985541,), (1372985545,), (1372985547,), (1372985580,), (1372985583,), (1372985586,), (1372985588,), (1372985591,), (1372985594,), (1372985619,), (1372985621,), (1372985622,), (1372985624,), (1372985626,), (1372985629,), (1372985647,), (1372985648,), (1372985649,), (1372985650,), (1372985653,), (1372985654,), (1372985682,), (1372985685,), (1372985687,), (1372985689,), (1372985691,), (1372985693,), (1372985721,), (1372985723,), (1372985725,), (1372985726,), (1372985728,), (1372985730,), (1372985756,), (1372985758,), (1372985760,), (1372985763,), (1372985767,), (1372985769,), (1372985786,), (1372985789,), (1372985790,), (1372985792,), (1372985794,), (1372985797,), (1372985860,), (1372985862,), (1372985865,), (1372985867,), (1372985868,), (1372985871,), (1372985990,), (1372986122,), (1372986124,), (1372986126,), (1372986129,), (1372986133,), (1372986147,), (1372986164,), (1372986171,), (1372986176,), (1372986178,), (1372986181,), (1372986183,), (1372986198,), (1372986205,), (1372986207,), (1372986209,), (1372986211,), (1372986214,), (1372986230,), (1372986231,), (1372986233,), (1372986235,), (1372986237,), (1372986240,), (1372986262,), (1372986274,), (1372986285,), (1372986287,), (1372986288,), (1372986290,), (1372986458,), (1372986460,), (1372986461,), (1372986463,), (1372986466,), (1372986468,), (1372986498,), (1372986499,), (1372986500,), (1372986501,), (1372986503,), (1372986505,), (1372986552,), (1372986553,), (1372986554,), (1372986555,), (1372986570,), (1372986598,), (1372986831,), (1372986851,), (1372986867,), (1372986873,), (1372986895,), (1372986905,), (1372987034,), (1372987040,), (1372987045,), (1372987073,), (1372987100,), (1372987111,), (1372987144,), (1372987146,), (1372987153,), (1372987183,), (1372987222,), (1372987272,), (1372987718,), (1372987724,), (1372987734,), (1372987762,), (1372987765,), (1372987768,), (1372987871,), (1372987897,), (1372987922,), (1372987943,), (1372987979,), (1372988017,), (1372988111,), (1372988336,), (1372988337,), (1372988341,), (1372988347,), (1372988349,), (1372988351,), (1372988444,), (1372988448,), (1372988450,), (1372988453,), (1372988456,), (1372988464,), (1372988553,), (1372988555,), (1372988556,), (1372988558,), (1372988579,), (1372988584,), (1372988686,), (1372988741,), (1372988789,), (1372988796,), (1372988810,), (1372988820,), (1372988960,), (1372988966,), (1372988969,), (1372988994,), (1372989056,), (1372989122,), (1372989185,), (1372989604,), (1372989644,), (1372989660,), (1372989669,), (1372989678,), (1372989688,), (1372989855,), (1372989878,), (1372989898,), (1372989900,), (1372989902,), (1372989906,), (1372990037,), (1372990041,), (1372990044,), (1372990047,), (1372990073,), (1372990101,), (1372990221,), (1372990358,), (1372990403,), (1372990449,), (1372990497,), (1372990533,), (1372990559,), (1372991012,), (1372991064,), (1372991130,), (1372991182,), (1372991237,), (1372991293,), (1372992342,), (1372992373,), (1372992408,), (1372992439,), (1372992490,), (1372992560,), (1372992915,), (1372992965,), (1372993016,), (1372993044,), (1372993089,), (1372993126,), (1372993694,), (1372994061,), (1372994082,), (1372994083,), (1372994102,), (1372994128,), (1372994142,), (1372994467,), (1372994508,), (1372994546,), (1372994591,), (1372994615,), (1372994650,), (1372994881,), (1372994901,), (1372994903,), (1372994912,), (1372994922,), (1372994924,), (1372995050,), (1372995271,), (1372995295,), (1372995300,), (1372995305,), (1372995318,), (1372995326,), (1372995442,), (1372995454,), (1372995477,), (1372995502,), (1372995580,), (1372995621,), (1372995927,), (1372995937,), (1372995941,), (1372995965,), (1372995968,), (1372995972,), (1372996087,), (1372996091,), (1372996093,), (1372996095,), (1372996098,), (1372996100,), (1372996418,), (1372996419,), (1372996421,), (1372996423,), (1372996426,), (1372996429,), (1372996530,), (1372996561,), (1372996596,), (1372996618,), (1372996621,), (1372996626,), (1372996762,), (1372996764,), (1372996766,), (1372996769,), (1372996773,), (1372996775,), (1372996806,), (1372996810,), (1372996812,), (1372996813,), (1372996816,), (1372996819,), (1372996845,), (1372996885,), (1372996886,), (1372996887,), (1372996894,), (1372996908,), (1372996915,), (1372997003,), (1372997013,), (1372997015,), (1372997017,), (1372997019,), (1372997022,), (1372997045,), (1372997047,), (1372997049,), (1372997051,), (1372997053,), (1372997056,), (1372997079,), (1372997081,), (1372997083,), (1372997085,), (1372997087,), (1372997090,), (1372997125,), (1372997132,), (1372997134,), (1372997136,), (1372997139,), (1372997141,), (1372997200,), (1372997204,), (1372997208,), (1372997210,), (1372997212,), (1372997215,), (1372997263,), (1372997378,), (1372997508,), (1372997525,), (1372997538,), (1372997549,), (1372997550,), (1372997572,), (1372997604,), (1372997606,), (1372997608,), (1372997610,), (1372997613,), (1372997615,), (1372997636,), (1372997655,), (1372997657,), (1372997659,), (1372997660,), (1372997662,), (1372997663,), (1372997694,), (1372997703,), (1372997705,), (1372997706,), (1372997708,), (1372997710,), (1372997777,), (1372997780,), (1372997783,), (1372997785,), (1372997787,), (1372997789,), (1372997805,), (1372997821,), (1372997827,), (1372997833,), (1372997835,), (1372997838,), (1372997877,), (1372997878,), (1372997880,), (1372997882,), (1372997884,), (1372997886,), (1372997997,), (1372998401,), (1372998420,), (1372998422,), (1372998431,), (1372998460,), (1372998462,), (1372998602,), (1372998627,), (1372998631,), (1372998633,), (1372998636,), (1372998639,), (1372998725,), (1372998749,), (1372998754,), (1372998755,), (1372998778,), (1372998794,), (1372999044,), (1372999198,), (1372999201,), (1372999202,), (1372999204,), (1372999207,), (1372999209,), (1372999367,), (1372999421,), (1372999477,), (1372999510,), (1372999531,), (1372999539,), (1372999600,), (1372999605,), (1372999609,), (1372999610,), (1372999612,), (1372999624,), (1372999665,), (1372999676,), (1372999679,), (1372999680,), (1372999682,), (1372999684,), (1372999759,), (1372999761,), (1372999762,), (1372999764,), (1372999767,), (1372999772,), (1372999791,), (1372999815,), (1372999817,), (1372999820,), (1372999823,), (1372999825,), (1372999828,), (1372999857,), (1372999865,), (1372999885,), (1372999921,), (1372999926,), (1372999929,), (1372999980,), (1372999983,), (1372999986,), (1372999989,), (1372999991,), (1372999994,), (1373000086,), (1373000250,), (1373000288,), (1373000290,), (1373000302,), (1373000334,), (1373000340,), (1373000344,), (1373000363,), (1373000365,), (1373000366,), (1373000368,), (1373000371,), (1373000375,), (1373000392,), (1373000394,), (1373000397,), (1373000398,), (1373000401,), (1373000419,), (1373000506,), (1373000510,), (1373000514,), (1373000515,), (1373000519,), (1373000523,), (1373000630,), (1373000662,), (1373000666,), (1373000669,), (1373000672,), (1373000674,), (1373000677,), (1373000717,), (1373000726,), (1373000729,), (1373000731,), (1373000735,), (1373000737,), (1373000795,), (1373000797,), (1373000814,), (1373000815,), (1373000816,), (1373000818,), (1373000866,), (1373000905,), (1373000906,), (1373000908,), (1373000910,), (1373000912,), (1373000914,), (1373000942,), (1373000950,), (1373000953,), (1373000957,), (1373000960,), (1373000963,), (1373001598,), (1373001649,), (1373001698,), (1373001768,), (1373001847,), (1373001928,), (1373002701,), (1373002750,), (1373002798,), (1373002841,), (1373002867,), (1373002895,), (1373003225,), (1373003639,), (1373003641,), (1373003643,), (1373003657,), (1373003684,), (1373003686,), (1373003717,), (1373003719,), (1373003731,), (1373003732,), (1373003734,), (1373003736,), (1373003797,), (1373003799,), (1373003800,), (1373003802,), (1373003804,), (1373003806,), (1373003817,), (1373003859,), (1373003860,), (1373003861,), (1373003862,), (1373003864,), (1373003866,), (1373003888,), (1373003889,), (1373003891,), (1373003893,), (1373003895,), (1373003897,), (1373003934,), (1373003935,), (1373003936,), (1373003937,), (1373003939,), (1373003941,), (1373003959,), (1373003961,), (1373003969,), (1373003974,), (1373003976,), (1373003978,), (1373004016,), (1373004018,), (1373004019,), (1373004021,), (1373004023,), (1373004025,), (1373004050,), (1373004085,), (1373004088,), (1373004090,), (1373004093,), (1373004096,), (1373004099,), (1373004117,), (1373004126,), (1373004137,), (1373004139,), (1373004142,), (1373004145,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21072025': {'nb_upload': 69, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25131481]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] map_info['map_portfolio_photo'] : {25131481: [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085, 1373004050, 1373004025, 1373004023, 1373004021, 1373004019, 1373004018, 1373004016, 1373003978, 1373003976, 1373003974, 1373003969, 1373003961, 1373003959, 1373003941, 1373003939, 1373003937, 1373003936, 1373003935, 1373003934, 1373003897, 1373003895, 1373003893, 1373003891, 1373003889, 1373003888, 1373003866, 1373003864, 1373003862, 1373003861, 1373003860, 1373003859, 1373003817, 1373003806, 1373003804, 1373003802, 1373003800, 1373003799, 1373003797, 1373003736, 1373003734, 1373003732, 1373003731, 1373003719, 1373003717, 1373003686, 1373003684, 1373003657, 1373003643, 1373003641, 1373003639, 1373003225, 1373002895, 1373002867, 1373002841, 1373002798, 1373002750, 1373002701]} final : True mtd_id 4302 list_pids : [1373004145, 1373004142, 1373004139, 1373004137, 1373004126, 1373004117, 1373004099, 1373004096, 1373004093, 1373004090, 1373004088, 1373004085] Looping around the photos to save general results len do output : 1 /25131481Didn'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, '3313945') ('4302', '25131481', '1373004145', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945') ('4302', None, None, None, None, None, None, None, '3313945') ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25131481', 'None', None, None, None, None, '3313945'), ('4302', '25131481', '1373004145', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004142', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004139', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004137', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004126', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004117', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004099', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004096', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004093', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004090', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004088', None, None, None, None, None, '3313945'), ('4302', '25131481', '1373004085', None, None, None, None, None, '3313945')] time used for this insertion : 0.01366114616394043 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7565288543701172 time spend to save output : 0.015872955322265625 total time spend for step 5 : 1.7724018096923828 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 (3313945) 2.35user 2.43system 0:11.44elapsed 41%CPU (0avgtext+0avgdata 160676maxresident)k 168inputs+19448outputs (0major+75614minor)pagefaults 0swaps