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 : 1102322 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 (3248364) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3248364) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705055 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3248364'] with mtr_portfolio_ids : ['24705055'] and first list_photo_ids : [] new path : /proc/1102322/ Name: python3 Umask: 0002 State: R (running) Tgid: 1102322 Ngid: 0 Pid: 1102322 PPid: 1102321 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1102322 NSpid: 1102322 NSpgid: 1101777 NSsid: 1101777 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100132 kB VmRSS: 100132 kB RssAnon: 59800 kB RssFile: 40332 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 524 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 39 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1102322', 'Ngid': '0', 'Pid': '1102322', 'PPid': '1102321', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1102322', 'NSpid': '1102322', 'NSpgid': '1101777', 'NSsid': '1101777', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100132 kB', 'VmRSS': '100132 kB', 'RssAnon': '59800 kB', 'RssFile': '40332 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '524 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '39', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '1102322', '1106864', '0', '1106864', '865616', '100132', b'', 'marlene', '3248364') 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 (24705055) 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 (3248364 ) ) 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 (24705055) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371110996, 'portfolio_id': 24705055}, {'photo_id': 1371110994, 'portfolio_id': 24705055}, {'photo_id': 1371110992, 'portfolio_id': 24705055}, {'photo_id': 1371110989, 'portfolio_id': 24705055}, {'photo_id': 1371110985, 'portfolio_id': 24705055}, {'photo_id': 1371110980, 'portfolio_id': 24705055}, {'photo_id': 1371110969, 'portfolio_id': 24705055}, {'photo_id': 1371110968, 'portfolio_id': 24705055}, {'photo_id': 1371110965, 'portfolio_id': 24705055}, {'photo_id': 1371110960, 'portfolio_id': 24705055}, {'photo_id': 1371110956, 'portfolio_id': 24705055}, {'photo_id': 1371110951, 'portfolio_id': 24705055}, {'photo_id': 1371110939, 'portfolio_id': 24705055}, {'photo_id': 1371110938, 'portfolio_id': 24705055}, {'photo_id': 1371110936, 'portfolio_id': 24705055}, {'photo_id': 1371110933, 'portfolio_id': 24705055}, {'photo_id': 1371110929, 'portfolio_id': 24705055}, {'photo_id': 1371110919, 'portfolio_id': 24705055}, {'photo_id': 1371110915, 'portfolio_id': 24705055}, {'photo_id': 1371110913, 'portfolio_id': 24705055}, {'photo_id': 1371110911, 'portfolio_id': 24705055}, {'photo_id': 1371110907, 'portfolio_id': 24705055}, {'photo_id': 1371110903, 'portfolio_id': 24705055}, {'photo_id': 1371110898, 'portfolio_id': 24705055}, {'photo_id': 1371110877, 'portfolio_id': 24705055}, {'photo_id': 1371110876, 'portfolio_id': 24705055}, {'photo_id': 1371110872, 'portfolio_id': 24705055}, {'photo_id': 1371110867, 'portfolio_id': 24705055}, {'photo_id': 1371110863, 'portfolio_id': 24705055}, {'photo_id': 1371110859, 'portfolio_id': 24705055}, {'photo_id': 1371110828, 'portfolio_id': 24705055}, {'photo_id': 1371110825, 'portfolio_id': 24705055}, {'photo_id': 1371110821, 'portfolio_id': 24705055}, {'photo_id': 1371110816, 'portfolio_id': 24705055}, {'photo_id': 1371110811, 'portfolio_id': 24705055}, {'photo_id': 1371110804, 'portfolio_id': 24705055}, {'photo_id': 1371110793, 'portfolio_id': 24705055}, {'photo_id': 1371110791, 'portfolio_id': 24705055}, {'photo_id': 1371110789, 'portfolio_id': 24705055}, {'photo_id': 1371110787, 'portfolio_id': 24705055}, {'photo_id': 1371110782, 'portfolio_id': 24705055}, {'photo_id': 1371110778, 'portfolio_id': 24705055}, {'photo_id': 1371110771, 'portfolio_id': 24705055}, {'photo_id': 1371110766, 'portfolio_id': 24705055}, {'photo_id': 1371110763, 'portfolio_id': 24705055}, {'photo_id': 1371110751, 'portfolio_id': 24705055}, {'photo_id': 1371110735, 'portfolio_id': 24705055}, {'photo_id': 1371110730, 'portfolio_id': 24705055}, {'photo_id': 1371110720, 'portfolio_id': 24705055}, {'photo_id': 1371110718, 'portfolio_id': 24705055}, {'photo_id': 1371110715, 'portfolio_id': 24705055}, {'photo_id': 1371110710, 'portfolio_id': 24705055}, {'photo_id': 1371110705, 'portfolio_id': 24705055}, {'photo_id': 1371110700, 'portfolio_id': 24705055}, {'photo_id': 1371110685, 'portfolio_id': 24705055}, {'photo_id': 1371110683, 'portfolio_id': 24705055}, {'photo_id': 1371110679, 'portfolio_id': 24705055}, {'photo_id': 1371110677, 'portfolio_id': 24705055}, {'photo_id': 1371110673, 'portfolio_id': 24705055}, {'photo_id': 1371110664, 'portfolio_id': 24705055}, {'photo_id': 1371110647, 'portfolio_id': 24705055}, {'photo_id': 1371110645, 'portfolio_id': 24705055}, {'photo_id': 1371110642, 'portfolio_id': 24705055}, {'photo_id': 1371110637, 'portfolio_id': 24705055}, {'photo_id': 1371110631, 'portfolio_id': 24705055}, {'photo_id': 1371110626, 'portfolio_id': 24705055}, {'photo_id': 1371110601, 'portfolio_id': 24705055}, {'photo_id': 1371110599, 'portfolio_id': 24705055}, {'photo_id': 1371110596, 'portfolio_id': 24705055}, {'photo_id': 1371110591, 'portfolio_id': 24705055}, {'photo_id': 1371110588, 'portfolio_id': 24705055}, {'photo_id': 1371110575, 'portfolio_id': 24705055}, {'photo_id': 1371110568, 'portfolio_id': 24705055}, {'photo_id': 1371110566, 'portfolio_id': 24705055}, {'photo_id': 1371110563, 'portfolio_id': 24705055}, {'photo_id': 1371110560, 'portfolio_id': 24705055}, {'photo_id': 1371110554, 'portfolio_id': 24705055}, {'photo_id': 1371110550, 'portfolio_id': 24705055}, {'photo_id': 1371110530, 'portfolio_id': 24705055}, {'photo_id': 1371110529, 'portfolio_id': 24705055}, {'photo_id': 1371110527, 'portfolio_id': 24705055}, {'photo_id': 1371110524, 'portfolio_id': 24705055}, {'photo_id': 1371110509, 'portfolio_id': 24705055}, {'photo_id': 1371110504, 'portfolio_id': 24705055}, {'photo_id': 1371110494, 'portfolio_id': 24705055}, {'photo_id': 1371110492, 'portfolio_id': 24705055}, {'photo_id': 1371110481, 'portfolio_id': 24705055}, {'photo_id': 1371110475, 'portfolio_id': 24705055}, {'photo_id': 1371110471, 'portfolio_id': 24705055}, {'photo_id': 1371110469, 'portfolio_id': 24705055}] map_portfolio_id_photo_id: {24705055: [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951, 1371110939, 1371110938, 1371110936, 1371110933, 1371110929, 1371110919, 1371110915, 1371110913, 1371110911, 1371110907, 1371110903, 1371110898, 1371110877, 1371110876, 1371110872, 1371110867, 1371110863, 1371110859, 1371110828, 1371110825, 1371110821, 1371110816, 1371110811, 1371110804, 1371110793, 1371110791, 1371110789, 1371110787, 1371110782, 1371110778, 1371110771, 1371110766, 1371110763, 1371110751, 1371110735, 1371110730, 1371110720, 1371110718, 1371110715, 1371110710, 1371110705, 1371110700, 1371110685, 1371110683, 1371110679, 1371110677, 1371110673, 1371110664, 1371110647, 1371110645, 1371110642, 1371110637, 1371110631, 1371110626, 1371110601, 1371110599, 1371110596, 1371110591, 1371110588, 1371110575, 1371110568, 1371110566, 1371110563, 1371110560, 1371110554, 1371110550, 1371110530, 1371110529, 1371110527, 1371110524, 1371110509, 1371110504, 1371110494, 1371110492, 1371110481, 1371110475, 1371110471, 1371110469]} ##### 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.020194292068481445 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jul 8 01:46:28 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 (24705055) 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 : 24705055 get user id for portfolio 24705055 get sub ptf for main ptf 24705055, type 3726 and hashtags ['environnement', 'papier', 'plastique', 'Teint_Dans_La_Masse', 'kraft', 'autre_refus', 'Carton_gris', 'mal_croppe', 'cartonnette', 'flou', 'metal', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24705055 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','kraft','autre_refus','Carton_gris','mal_croppe','cartonnette','flou','metal','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24705055 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','kraft','autre_refus','Carton_gris','mal_croppe','cartonnette','flou','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 24705055, 'sub_port_id': 24705082, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611423, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'mal_croppe': {'main_port_id': 24705055, 'sub_port_id': 24705083, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611424, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 24705055, 'sub_port_id': 24705084, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611425, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'flou': {'main_port_id': 24705055, 'sub_port_id': 24705085, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611426, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'Carton_gris': {'main_port_id': 24705055, 'sub_port_id': 24705086, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611427, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'plastique': {'main_port_id': 24705055, 'sub_port_id': 24705087, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611428, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'kraft': {'main_port_id': 24705055, 'sub_port_id': 24705088, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611429, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'Carton_brun': {'main_port_id': 24705055, 'sub_port_id': 24705089, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611430, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'environnement': {'main_port_id': 24705055, 'sub_port_id': 24705090, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611431, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'cartonnette': {'main_port_id': 24705055, 'sub_port_id': 24705091, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611432, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'autre_refus': {'main_port_id': 24705055, 'sub_port_id': 24705092, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611433, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}, 'metal': {'main_port_id': 24705055, 'sub_port_id': 24705093, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611434, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24705082 , 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=24705055 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 (24705082) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705083 , 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=24705055 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 (24705083) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705084 , 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=24705055 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 (24705084) result : ((1371110665,), (1371110666,), (1371110691,), (1371110693,), (1371110694,), (1371110732,), (1371110733,), (1371110734,), (1371110736,), (1371110741,), (1371110742,), (1371110743,), (1371110744,), (1371110745,), (1371110746,), (1371110747,), (1371110748,), (1371110749,), (1371110750,), (1371110752,), (1371110753,), (1371110754,), (1371110755,), (1371110756,), (1371110757,), (1371110758,), (1371110759,), (1371110830,), (1371110831,), (1371110840,), (1371110841,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705085 , 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=24705055 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 (24705085) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705086 , 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=24705055 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 (24705086) result : ((1371110667,), (1371110835,), (1371110836,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705087 , 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=24705055 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 (24705087) result : ((1371110850,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705088 , 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=24705055 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 (24705088) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705089 , 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=24705055 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 (24705089) result : ((1371110578,), (1371110579,), (1371110580,), (1371110581,), (1371110582,), (1371110583,), (1371110584,), (1371110585,), (1371110586,), (1371110587,), (1371110671,), (1371110672,), (1371110674,), (1371110675,), (1371110844,), (1371110845,), (1371110846,), (1371110848,), (1371110849,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705090 , 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=24705055 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 (24705090) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705091 , 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=24705055 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 (24705091) result : ((1371110670,), (1371110695,), (1371110739,), (1371110837,), (1371110838,), (1371110839,), (1371110842,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705092 , 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=24705055 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 (24705092) result : ((1371110832,), (1371110833,), (1371110834,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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 24705093 , 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=24705055 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 (24705093) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24705055) result : ((1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) 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 (1371110700) 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`=24705055 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','kraft','autre_refus','Carton_gris','mal_croppe','cartonnette','flou','metal','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24705055 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','kraft','autre_refus','Carton_gris','mal_croppe','cartonnette','flou','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 24705055, 'sub_port_id': 24705094, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611435, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'mal_croppe': {'main_port_id': 24705055, 'sub_port_id': 24705095, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611436, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24705055, 'sub_port_id': 24705096, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611437, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'flou': {'main_port_id': 24705055, 'sub_port_id': 24705097, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611438, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'Carton_gris': {'main_port_id': 24705055, 'sub_port_id': 24705098, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611439, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'plastique': {'main_port_id': 24705055, 'sub_port_id': 24705099, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611440, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'kraft': {'main_port_id': 24705055, 'sub_port_id': 24705100, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611441, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'Carton_brun': {'main_port_id': 24705055, 'sub_port_id': 24705101, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611442, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'environnement': {'main_port_id': 24705055, 'sub_port_id': 24705102, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611443, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'cartonnette': {'main_port_id': 24705055, 'sub_port_id': 24705103, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611444, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'autre_refus': {'main_port_id': 24705055, 'sub_port_id': 24705104, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611445, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}, 'metal': {'main_port_id': 24705055, 'sub_port_id': 24705105, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16611446, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 44, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705088 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705092 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24705105,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24705093 lien utilise dans velours : https://www.fotonower.com/velours/24705094,24705095,24705096,24705097,24705098,24705099,24705100,24705101,24705102,24705103,24705104,24705105?tags=papier,mal_croppe,Teint_Dans_La_Masse,flou,Carton_gris,plastique,kraft,Carton_brun,environnement,cartonnette,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24705055]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] map_info['map_portfolio_photo'] : {24705055: [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951, 1371110939, 1371110938, 1371110936, 1371110933, 1371110929, 1371110919, 1371110915, 1371110913, 1371110911, 1371110907, 1371110903, 1371110898, 1371110877, 1371110876, 1371110872, 1371110867, 1371110863, 1371110859, 1371110828, 1371110825, 1371110821, 1371110816, 1371110811, 1371110804, 1371110793, 1371110791, 1371110789, 1371110787, 1371110782, 1371110778, 1371110771, 1371110766, 1371110763, 1371110751, 1371110735, 1371110730, 1371110720, 1371110718, 1371110715, 1371110710, 1371110705, 1371110700, 1371110685, 1371110683, 1371110679, 1371110677, 1371110673, 1371110664, 1371110647, 1371110645, 1371110642, 1371110637, 1371110631, 1371110626, 1371110601, 1371110599, 1371110596, 1371110591, 1371110588, 1371110575, 1371110568, 1371110566, 1371110563, 1371110560, 1371110554, 1371110550, 1371110530, 1371110529, 1371110527, 1371110524, 1371110509, 1371110504, 1371110494, 1371110492, 1371110481, 1371110475, 1371110471, 1371110469]} final : False mtd_id 4302 list_pids : [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] Looping around the photos to save general results len do output : 1 /24705055. 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, '3248364') ('4302', '24705055', '1371110996', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364') 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, '24705055', "{'papier': 24705082, 'mal_croppe': 24705083, 'Teint_Dans_La_Masse': 24705084, 'flou': 24705085, 'Carton_gris': 24705086, 'plastique': 24705087, 'kraft': 24705088, 'Carton_brun': 24705089, 'environnement': 24705090, 'cartonnette': 24705091, 'autre_refus': 24705092, 'metal': 24705093}", None, None, None, None, '3248364'), ('4302', '24705055', '1371110996', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364')] time used for this insertion : 0.14876151084899902 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4390733242034912 time spend to save output : 0.14905095100402832 total time spend for step 1 : 0.5881242752075195 step2:final Tue Jul 8 01:46:29 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 (24705055) 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 24705055 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371110494,1371110492,1371110481,1371110475,1371110471,1371110469,1371110530,1371110529,1371110527,1371110524,1371110509,1371110504,1371110568,1371110566,1371110563,1371110560,1371110554,1371110550,1371110601,1371110599,1371110596,1371110591,1371110588,1371110575,1371110647,1371110645,1371110642,1371110637,1371110631,1371110626,1371110685,1371110683,1371110679,1371110677,1371110673,1371110664,1371110720,1371110718,1371110715,1371110710,1371110705,1371110700,1371110771,1371110766,1371110763,1371110751,1371110735,1371110730,1371110793,1371110791,1371110789,1371110787,1371110782,1371110778,1371110828,1371110825,1371110821,1371110816,1371110811,1371110804,1371110877,1371110876,1371110872,1371110867,1371110863,1371110859,1371110919,1371110915,1371110913,1371110911,1371110907,1371110903,1371110898,1371110939,1371110938,1371110936,1371110933,1371110929,1371110969,1371110968,1371110965,1371110960,1371110956,1371110951,1371110996,1371110994,1371110992,1371110989,1371110985,1371110980); 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([24705055]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} new output for save of step final : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] map_info['map_portfolio_photo'] : {24705055: [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951, 1371110939, 1371110938, 1371110936, 1371110933, 1371110929, 1371110919, 1371110915, 1371110913, 1371110911, 1371110907, 1371110903, 1371110898, 1371110877, 1371110876, 1371110872, 1371110867, 1371110863, 1371110859, 1371110828, 1371110825, 1371110821, 1371110816, 1371110811, 1371110804, 1371110793, 1371110791, 1371110789, 1371110787, 1371110782, 1371110778, 1371110771, 1371110766, 1371110763, 1371110751, 1371110735, 1371110730, 1371110720, 1371110718, 1371110715, 1371110710, 1371110705, 1371110700, 1371110685, 1371110683, 1371110679, 1371110677, 1371110673, 1371110664, 1371110647, 1371110645, 1371110642, 1371110637, 1371110631, 1371110626, 1371110601, 1371110599, 1371110596, 1371110591, 1371110588, 1371110575, 1371110568, 1371110566, 1371110563, 1371110560, 1371110554, 1371110550, 1371110530, 1371110529, 1371110527, 1371110524, 1371110509, 1371110504, 1371110494, 1371110492, 1371110481, 1371110475, 1371110471, 1371110469]} final : False mtd_id 4302 list_pids : [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] Looping around the photos to save general results len do output : 12 /1371110996.Didn't retrieve data . /1371110994.Didn't retrieve data . /1371110992.Didn't retrieve data . /1371110989.Didn't retrieve data . /1371110985.Didn't retrieve data . /1371110980.Didn't retrieve data . /1371110969.Didn't retrieve data . /1371110968.Didn't retrieve data . /1371110965.Didn't retrieve data . /1371110960.Didn't retrieve data . /1371110956.Didn't retrieve data . /1371110951.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, '3248364') ('4302', '24705055', '1371110996', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364') 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', '24705055', '1371110996', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110994', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110992', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110989', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110985', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110980', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110969', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110968', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110965', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110960', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110956', '0.04872368510622181', None, None, None, None, '3248364'), ('4302', '24705055', '1371110951', '0.04872368510622181', None, None, None, None, '3248364')] time used for this insertion : 0.133436918258667 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.18203449249267578 time spend to save output : 0.13403701782226562 total time spend for step 2 : 0.3160715103149414 step3:velours_tree Tue Jul 8 01:46:29 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 : {24705055: [{'papier': 24705082, 'mal_croppe': 24705083, 'Teint_Dans_La_Masse': 24705084, 'flou': 24705085, 'Carton_gris': 24705086, 'plastique': 24705087, 'kraft': 24705088, 'Carton_brun': 24705089, 'environnement': 24705090, 'cartonnette': 24705091, 'autre_refus': 24705092, 'metal': 24705093}]} input_args_next_step : {24705055: ()} output_args : {24705055: [{'papier': 24705082, 'mal_croppe': 24705083, 'Teint_Dans_La_Masse': 24705084, 'flou': 24705085, 'Carton_gris': 24705086, 'plastique': 24705087, 'kraft': 24705088, 'Carton_brun': 24705089, 'environnement': 24705090, 'cartonnette': 24705091, 'autre_refus': 24705092, 'metal': 24705093}]} args : 24705055 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 : ({'papier': 24705082, 'mal_croppe': 24705083, 'Teint_Dans_La_Masse': 24705084, 'flou': 24705085, 'Carton_gris': 24705086, 'plastique': 24705087, 'kraft': 24705088, 'Carton_brun': 24705089, 'environnement': 24705090, 'cartonnette': 24705091, 'autre_refus': 24705092, 'metal': 24705093},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24705055) 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([24705055]) 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.29247426986694336 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.292525053024292 step4:send_mail_cod Tue Jul 8 01:46:30 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 : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} input_args_next_step : {1371110996: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110996 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110994 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110992 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110989 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110985 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110980 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110969 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110968 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110965 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110960 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110956 depend.output_id : 0 input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ()} output_args : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',)} args : 1371110951 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 : {24705055: [{'papier': 24705082, 'mal_croppe': 24705083, 'Teint_Dans_La_Masse': 24705084, 'flou': 24705085, 'Carton_gris': 24705086, 'plastique': 24705087, 'kraft': 24705088, 'Carton_brun': 24705089, 'environnement': 24705090, 'cartonnette': 24705091, 'autre_refus': 24705092, 'metal': 24705093}]} input_args_next_step : {1371110996: ('0.04872368510622181',), 1371110994: ('0.04872368510622181',), 1371110992: ('0.04872368510622181',), 1371110989: ('0.04872368510622181',), 1371110985: ('0.04872368510622181',), 1371110980: ('0.04872368510622181',), 1371110969: ('0.04872368510622181',), 1371110968: ('0.04872368510622181',), 1371110965: ('0.04872368510622181',), 1371110960: ('0.04872368510622181',), 1371110956: ('0.04872368510622181',), 1371110951: ('0.04872368510622181',), 24705055: ()} output_args : {24705055: [{'papier': 24705082, 'mal_croppe': 24705083, 'Teint_Dans_La_Masse': 24705084, 'flou': 24705085, 'Carton_gris': 24705086, 'plastique': 24705087, 'kraft': 24705088, 'Carton_brun': 24705089, 'environnement': 24705090, 'cartonnette': 24705091, 'autre_refus': 24705092, 'metal': 24705093}]} args : 24705055 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.04872368510622181',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24705055) 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 (1371110996,1371110994,1371110992,1371110989,1371110985,1371110980,1371110969,1371110968,1371110965,1371110960,1371110956,1371110951) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371110951 begin to download photo : 1371110965 begin to download photo : 1371110980 begin to download photo : 1371110992 download finish for photo 1371110980 begin to download photo : 1371110985 download finish for photo 1371110965 download finish for photo 1371110951 begin to download photo : 1371110968 begin to download photo : 1371110956 download finish for photo 1371110992 begin to download photo : 1371110994 download finish for photo 1371110968 begin to download photo : 1371110969 download finish for photo 1371110985 begin to download photo : 1371110989 download finish for photo 1371110956 begin to download photo : 1371110960 download finish for photo 1371110994 begin to download photo : 1371110996 download finish for photo 1371110989 download finish for photo 1371110969 download finish for photo 1371110960 download finish for photo 1371110996 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247050831751931990/ imagette247050851751931990/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24705055_08-07-2025_01_46_30.pdf 24705083 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=24705083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247050831751931990 24705085 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=24705085 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247050851751931990 24705087 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=24705087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371110850: '1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423519_0.png'} change filename to text .imagette247050871751931990/ imagette247050871751931990/1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423519_0.png.png imagette247050881751931990/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1e752e1ff5dfb42decea356eb1579ff0_32875105.png imagette247050871751931990 24705088 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=24705088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247050881751931990 24705091 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=24705091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371110670: '1751931326_3139311_1371110504_9a67137964b32de70892b7049b022248_rle_crop_3875422641_0.png', 1371110695: '1751931365_2022620_1371110560_42787ded7b23cf0add8dd6163eb125d7_rle_crop_3875422812_0.png', 1371110739: '1751931447_2027507_1371110645_5082334a98792f19a010c73497a02d49_rle_crop_3875423157_0.png', 1371110837: '1751931567_3144884_1371110720_443c13b9d73dcf1810859a76a7756f07_rle_crop_3875423496_0.png', 1371110838: '1751931567_3144884_1371110720_443c13b9d73dcf1810859a76a7756f07_rle_crop_3875423504_0.png', 1371110839: '1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423533_0.png', 1371110842: '1751931605_2032733_1371110664_60ffba470779dbb17a8446810b93a6f7_rle_crop_3875423632_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/188c678fdfbf3b0ef43081392924a20b_39312105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4ee139055d9613c69c3d5a457fa7ae3a_21513557.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e4fd515344b0ab2ada13f7a1ef72b588_51730290.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8bad05fed3696518b641dbf55a44078c_76987403.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4f4f997370624b21c2aa57d8fa35e196_37604054.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e22eb85b371f8ce2dc9b5600edde8576_19729789.png change filename to text .imagette247050911751931990/ imagette247050911751931990/1751931567_3144884_1371110720_443c13b9d73dcf1810859a76a7756f07_rle_crop_3875423496_0.png.png imagette247050911751931990/1751931326_3139311_1371110504_9a67137964b32de70892b7049b022248_rle_crop_3875422641_0.png.png imagette247050911751931990/1751931365_2022620_1371110560_42787ded7b23cf0add8dd6163eb125d7_rle_crop_3875422812_0.png.png imagette247050911751931990/1751931447_2027507_1371110645_5082334a98792f19a010c73497a02d49_rle_crop_3875423157_0.png.png imagette247050911751931990/1751931567_3144884_1371110720_443c13b9d73dcf1810859a76a7756f07_rle_crop_3875423504_0.png.png imagette247050911751931990/1751931605_2032733_1371110664_60ffba470779dbb17a8446810b93a6f7_rle_crop_3875423632_0.png.png imagette247050911751931990/1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423533_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/42c4f25185e4a434bd9178e67a71bdbf_81182364.png imagette247050911751931990 24705092 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=24705092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371110832: '1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423514_0.png', 1371110833: '1751931567_3144884_1371110705_bc779bd3c6acd01af7ffd02b168d17e8_rle_crop_3875423582_0.png', 1371110834: '1751931567_3144884_1371110700_dac98f184b97ed5cc57db2b355c5deb6_rle_crop_3875423598_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8d1f70f304697b4a78a1adcc6d4b41d8_20782785.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/60963b187f3d1990693b086a3270948e_95575579.png change filename to text .imagette247050921751931990/ imagette247050921751931990/1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423514_0.png.png imagette247050921751931990/1751931567_3144884_1371110700_dac98f184b97ed5cc57db2b355c5deb6_rle_crop_3875423598_0.png.png imagette247050921751931990/1751931567_3144884_1371110705_bc779bd3c6acd01af7ffd02b168d17e8_rle_crop_3875423582_0.png.png imagette247050931751931991/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/811bd9cffb2c1479f03d19b8e20fd23b_25095687.png imagette247050921751931990 24705093 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=24705093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247050931751931991 24705084 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=24705084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371110747: '1751931447_3142289_1371110596_f24bd31ec81145c492992bc1f21ad685_rle_crop_3875423178_0.png', 1371110841: '1751931605_2032733_1371110679_2264a6d57410ba103754177e2f7bd76d_rle_crop_3875423578_0.png', 1371110840: '1751931605_2032733_1371110683_a8c080c36bd1e54ebf68cf4cbe8d29f8_rle_crop_3875423549_0.png', 1371110831: '1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423537_0.png', 1371110830: '1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423517_0.png', 1371110759: '1751931447_3142289_1371110575_0924b8f84a734ef18420364e2d96ed16_rle_crop_3875423242_0.png', 1371110758: '1751931447_3142289_1371110575_0924b8f84a734ef18420364e2d96ed16_rle_crop_3875423241_0.png', 1371110757: '1751931447_3142289_1371110575_0924b8f84a734ef18420364e2d96ed16_rle_crop_3875423244_0.png', 1371110756: '1751931447_3142289_1371110588_674e07f8b9350d279191b39c9c6711ae_rle_crop_3875423226_0.png', 1371110755: '1751931447_3142289_1371110588_674e07f8b9350d279191b39c9c6711ae_rle_crop_3875423221_0.png', 1371110754: '1751931447_3142289_1371110588_674e07f8b9350d279191b39c9c6711ae_rle_crop_3875423227_0.png', 1371110753: '1751931447_3142289_1371110591_4ce6fd482802fddc2f7f1c5f120a87a0_rle_crop_3875423209_0.png', 1371110752: '1751931447_3142289_1371110591_4ce6fd482802fddc2f7f1c5f120a87a0_rle_crop_3875423206_0.png', 1371110750: '1751931447_3142289_1371110591_4ce6fd482802fddc2f7f1c5f120a87a0_rle_crop_3875423210_0.png', 1371110749: '1751931447_3142289_1371110596_f24bd31ec81145c492992bc1f21ad685_rle_crop_3875423176_0.png', 1371110748: '1751931447_3142289_1371110596_f24bd31ec81145c492992bc1f21ad685_rle_crop_3875423175_0.png', 1371110665: '1751931326_3139311_1371110524_2f65f9221cb4ec5770f3fbc13b48579b_rle_crop_3875422624_0.png', 1371110746: '1751931447_3142289_1371110599_fddfe0c38f2e77e395d58d00eab8d0cc_rle_crop_3875423148_0.png', 1371110745: '1751931447_3142289_1371110599_fddfe0c38f2e77e395d58d00eab8d0cc_rle_crop_3875423146_0.png', 1371110744: '1751931447_3142289_1371110599_fddfe0c38f2e77e395d58d00eab8d0cc_rle_crop_3875423149_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/251df03ad330df637d91c20b1f0eb26e_91012887.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0adc42abac55208a288d089e5d603980_55751468.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3a58a668db1f7e9b968d8b2138119d34_74650569.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e0b50956546d93273c5372619783779d_51542140.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a08e542a130646e2eac0296222a6ac81_44369755.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2428e75c58cf339f4e9203cbdd1df214_28235681.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fe6ee48bba96debe97be670ca0436004_53050411.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f0640ee11298167c663b7e36d07e812b_7317654.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/dbffb1074808951643692df63f7beda7_9777311.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0f969e393131abf1603bd3568e94d79e_53660833.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c26b490d54899a88ada56e4cb3575503_84687680.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/90f02518a8cf319e0830aee084d7b840_32512780.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5e5ca1a0c34691157c43e05657b27839_36778347.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/74b1d0d023eacb39296b208b256bb76c_42095869.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b5e0cea4acf2100a7be9d00c4f9566c2_3814116.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a3b3e8ddaa1de4a9e2c96b992c4e952f_53999288.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2b1bf61c65982ebe9c4bcce72b9760f6_81486033.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9965dd3f178d5c01194a1c2a946f6741_11899489.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/02541109ecc58c18fc0f6ce346b548c2_15956596.png change filename to text .imagette247050841751931991/ imagette247050841751931991/1751931447_3142289_1371110588_674e07f8b9350d279191b39c9c6711ae_rle_crop_3875423221_0.png.png imagette247050841751931991/1751931605_2032733_1371110679_2264a6d57410ba103754177e2f7bd76d_rle_crop_3875423578_0.png.png imagette247050841751931991/1751931605_2032733_1371110683_a8c080c36bd1e54ebf68cf4cbe8d29f8_rle_crop_3875423549_0.png.png imagette247050841751931991/1751931447_3142289_1371110599_fddfe0c38f2e77e395d58d00eab8d0cc_rle_crop_3875423146_0.png.png imagette247050841751931991/1751931447_3142289_1371110575_0924b8f84a734ef18420364e2d96ed16_rle_crop_3875423244_0.png.png imagette247050841751931991/1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423517_0.png.png imagette247050841751931991/1751931447_3142289_1371110591_4ce6fd482802fddc2f7f1c5f120a87a0_rle_crop_3875423210_0.png.png imagette247050841751931991/1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423537_0.png.png imagette247050841751931991/1751931447_3142289_1371110588_674e07f8b9350d279191b39c9c6711ae_rle_crop_3875423227_0.png.png imagette247050841751931991/1751931326_3139311_1371110524_2f65f9221cb4ec5770f3fbc13b48579b_rle_crop_3875422624_0.png.png imagette247050841751931991/1751931447_3142289_1371110596_f24bd31ec81145c492992bc1f21ad685_rle_crop_3875423178_0.png.png imagette247050841751931991/1751931447_3142289_1371110575_0924b8f84a734ef18420364e2d96ed16_rle_crop_3875423242_0.png.png imagette247050841751931991/1751931447_3142289_1371110599_fddfe0c38f2e77e395d58d00eab8d0cc_rle_crop_3875423148_0.png.png imagette247050841751931991/1751931447_3142289_1371110575_0924b8f84a734ef18420364e2d96ed16_rle_crop_3875423241_0.png.png imagette247050841751931991/1751931447_3142289_1371110588_674e07f8b9350d279191b39c9c6711ae_rle_crop_3875423226_0.png.png imagette247050841751931991/1751931447_3142289_1371110591_4ce6fd482802fddc2f7f1c5f120a87a0_rle_crop_3875423206_0.png.png imagette247050841751931991/1751931447_3142289_1371110599_fddfe0c38f2e77e395d58d00eab8d0cc_rle_crop_3875423149_0.png.png imagette247050841751931991/1751931447_3142289_1371110596_f24bd31ec81145c492992bc1f21ad685_rle_crop_3875423175_0.png.png imagette247050841751931991/1751931447_3142289_1371110596_f24bd31ec81145c492992bc1f21ad685_rle_crop_3875423176_0.png.png imagette247050841751931991/1751931447_3142289_1371110591_4ce6fd482802fddc2f7f1c5f120a87a0_rle_crop_3875423209_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/63b7cb2c3e23d298d5d996e85ed89c9e_52371560.png imagette247050841751931991 24705086 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=24705086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371110667: '1751931326_3139311_1371110529_622a4cbc03b686c2c44b171bdd3e4566_rle_crop_3875422599_0.png', 1371110835: '1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423512_0.png', 1371110836: '1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423534_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/05d0a6eca9aa5ca96b7dec1ef59ba890_61651109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bb9ef71c761fdaa7d6281c5e89250ae0_26103834.png change filename to text .imagette247050861751931992/ imagette247050861751931992/1751931326_3139311_1371110529_622a4cbc03b686c2c44b171bdd3e4566_rle_crop_3875422599_0.png.png imagette247050861751931992/1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423534_0.png.png imagette247050861751931992/1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423512_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/88a500166c6e5933d5f301dfe8b4b9a5_47511709.png imagette247050861751931992 24705089 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=24705089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371110587: '1751931207_3136576_1371110469_56f2b369d7a06303f56518dbea888c20_rle_crop_3875422271_0.png', 1371110849: '1751931605_2032733_1371110673_a8f14ca8dc8f3ea883deaf80a02b4964_rle_crop_3875423619_0.png', 1371110848: '1751931605_2032733_1371110677_733b754d3e19be05b35be1e96c3c2d00_rle_crop_3875423608_0.png', 1371110846: '1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423535_0.png', 1371110845: '1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423518_0.png', 1371110844: '1751931567_3144884_1371110720_443c13b9d73dcf1810859a76a7756f07_rle_crop_3875423501_0.png', 1371110675: '1751931326_3139311_1371110529_622a4cbc03b686c2c44b171bdd3e4566_rle_crop_3875422606_0.png', 1371110674: '1751931326_3139311_1371110529_622a4cbc03b686c2c44b171bdd3e4566_rle_crop_3875422608_0.png', 1371110672: '1751931326_3139311_1371110530_f0c56573e6b1efe9fd409bfe3585dc77_rle_crop_3875422586_0.png', 1371110671: '1751931326_3139311_1371110530_f0c56573e6b1efe9fd409bfe3585dc77_rle_crop_3875422589_0.png', 1371110578: '1751931207_3136576_1371110494_ceea9a1903b3a8e45d8c9eb27f8becd5_rle_crop_3875422231_0.png', 1371110586: '1751931207_3136576_1371110469_56f2b369d7a06303f56518dbea888c20_rle_crop_3875422275_0.png', 1371110585: '1751931207_3136576_1371110471_5fe8af2fa09927c0ff824233dcd4cadd_rle_crop_3875422263_0.png', 1371110584: '1751931207_3136576_1371110471_5fe8af2fa09927c0ff824233dcd4cadd_rle_crop_3875422264_0.png', 1371110583: '1751931207_3136576_1371110475_6903cad64290baf567d8f9db56c8d542_rle_crop_3875422253_0.png', 1371110582: '1751931207_3136576_1371110475_6903cad64290baf567d8f9db56c8d542_rle_crop_3875422257_0.png', 1371110581: '1751931207_3136576_1371110481_98e86727d98918a5446c78e693fa8ec0_rle_crop_3875422248_0.png', 1371110580: '1751931207_3136576_1371110492_989384bb26d67623e60fa5faebde939b_rle_crop_3875422237_0.png', 1371110579: '1751931207_3136576_1371110492_989384bb26d67623e60fa5faebde939b_rle_crop_3875422238_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f25e102105d3e6638f947096b3bd8572_89417444.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1af439d7742dfdd341326ea343218efa_34635206.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/11afd3b231b802592f14977445cd0056_17779208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c8fcdb6d3b02d870948e63229181d421_26646813.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b70bb47ebc63ba2e94579ef4f3839a14_40155365.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/594182753fef0efc6e73a32661500f1e_74462884.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/84c48ac628338de2618fda29225c2b51_75517383.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9a3bd8824adbf3d0ee1400a0401ed00e_81888729.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/24719fedfeb165f632c14b98215f9f58_40058809.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cf5f508c0159d3cb85ea2dc4cd099dc8_73706907.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f055c2f4d71411f7ecec05c8ecee8956_65218944.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e8a4d010747bbd7558c4421777366896_50766990.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f3129d778de6530aa73f5f23da60938f_69602241.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/39f0e8a1dc92ad59bf894ed8fd3bcd36_22351333.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1a9815e9eede889c84995c3cb50ad605_52004762.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b4ceec898719d026ef1b1c64a77f3d91_95772825.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6dc2841db63029fabfec37a55f73da8b_67066460.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cff48e4eb146438ddf907a74b574c37b_68967930.png change filename to text .imagette247050891751931992/ imagette247050891751931992/1751931605_2032733_1371110673_a8f14ca8dc8f3ea883deaf80a02b4964_rle_crop_3875423619_0.png.png imagette247050891751931992/1751931207_3136576_1371110481_98e86727d98918a5446c78e693fa8ec0_rle_crop_3875422248_0.png.png imagette247050891751931992/1751931207_3136576_1371110494_ceea9a1903b3a8e45d8c9eb27f8becd5_rle_crop_3875422231_0.png.png imagette247050891751931992/1751931207_3136576_1371110469_56f2b369d7a06303f56518dbea888c20_rle_crop_3875422271_0.png.png imagette247050891751931992/1751931605_2032733_1371110677_733b754d3e19be05b35be1e96c3c2d00_rle_crop_3875423608_0.png.png imagette247050891751931992/1751931207_3136576_1371110471_5fe8af2fa09927c0ff824233dcd4cadd_rle_crop_3875422264_0.png.png imagette247050891751931992/1751931207_3136576_1371110492_989384bb26d67623e60fa5faebde939b_rle_crop_3875422238_0.png.png imagette247050891751931992/1751931207_3136576_1371110469_56f2b369d7a06303f56518dbea888c20_rle_crop_3875422275_0.png.png imagette247050891751931992/1751931567_3144884_1371110720_443c13b9d73dcf1810859a76a7756f07_rle_crop_3875423501_0.png.png imagette247050891751931992/1751931326_3139311_1371110529_622a4cbc03b686c2c44b171bdd3e4566_rle_crop_3875422608_0.png.png imagette247050891751931992/1751931567_3144884_1371110715_9ecbf27376a6c5468ef14d7ecd127338_rle_crop_3875423535_0.png.png imagette247050891751931992/1751931326_3139311_1371110530_f0c56573e6b1efe9fd409bfe3585dc77_rle_crop_3875422586_0.png.png imagette247050891751931992/1751931326_3139311_1371110529_622a4cbc03b686c2c44b171bdd3e4566_rle_crop_3875422606_0.png.png imagette247050891751931992/1751931207_3136576_1371110492_989384bb26d67623e60fa5faebde939b_rle_crop_3875422237_0.png.png imagette247050891751931992/1751931207_3136576_1371110471_5fe8af2fa09927c0ff824233dcd4cadd_rle_crop_3875422263_0.png.png imagette247050891751931992/1751931207_3136576_1371110475_6903cad64290baf567d8f9db56c8d542_rle_crop_3875422257_0.png.png imagette247050891751931992/1751931567_3144884_1371110718_97edf8f1a7078ff664e58c91e51fcbfb_rle_crop_3875423518_0.png.png imagette247050891751931992/1751931207_3136576_1371110475_6903cad64290baf567d8f9db56c8d542_rle_crop_3875422253_0.png.png imagette247050891751931992/1751931326_3139311_1371110530_f0c56573e6b1efe9fd409bfe3585dc77_rle_crop_3875422589_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0e71fe5ecffde1059125f6acf527e112_28180617.png imagette247050891751931992 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24705055 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24705094,24705095,24705096,24705097,24705098,24705099,24705100,24705101,24705102,24705103,24705104,24705105?tags=papier,mal_croppe,Teint_Dans_La_Masse,flou,Carton_gris,plastique,kraft,Carton_brun,environnement,cartonnette,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1371110996] : ('0.04872368510622181',) no score found for photo 1371110996 We are sending mail with results at report@fotonower.com args[1371110994] : ('0.04872368510622181',) no score found for photo 1371110994 We are sending mail with results at report@fotonower.com args[1371110992] : ('0.04872368510622181',) no score found for photo 1371110992 We are sending mail with results at report@fotonower.com args[1371110989] : ('0.04872368510622181',) no score found for photo 1371110989 We are sending mail with results at report@fotonower.com args[1371110985] : ('0.04872368510622181',) no score found for photo 1371110985 We are sending mail with results at report@fotonower.com args[1371110980] : ('0.04872368510622181',) no score found for photo 1371110980 We are sending mail with results at report@fotonower.com args[1371110969] : ('0.04872368510622181',) no score found for photo 1371110969 We are sending mail with results at report@fotonower.com args[1371110968] : ('0.04872368510622181',) no score found for photo 1371110968 We are sending mail with results at report@fotonower.com args[1371110965] : ('0.04872368510622181',) no score found for photo 1371110965 We are sending mail with results at report@fotonower.com args[1371110960] : ('0.04872368510622181',) no score found for photo 1371110960 We are sending mail with results at report@fotonower.com args[1371110956] : ('0.04872368510622181',) no score found for photo 1371110956 We are sending mail with results at report@fotonower.com args[1371110951] : ('0.04872368510622181',) no score found for photo 1371110951 We are sending mail with results at report@fotonower.com refus_total : 0.04872368510622181 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=24705055 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_P24705055_08-07-2025_01_46_30.pdf results_Auto_P24705055_08-07-2025_01_46_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.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','24705055','results_Auto_P24705055_08-07-2025_01_46_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf','pdf','','0.23','0.04872368510622181') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24705055]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] map_info['map_portfolio_photo'] : {24705055: [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951, 1371110939, 1371110938, 1371110936, 1371110933, 1371110929, 1371110919, 1371110915, 1371110913, 1371110911, 1371110907, 1371110903, 1371110898, 1371110877, 1371110876, 1371110872, 1371110867, 1371110863, 1371110859, 1371110828, 1371110825, 1371110821, 1371110816, 1371110811, 1371110804, 1371110793, 1371110791, 1371110789, 1371110787, 1371110782, 1371110778, 1371110771, 1371110766, 1371110763, 1371110751, 1371110735, 1371110730, 1371110720, 1371110718, 1371110715, 1371110710, 1371110705, 1371110700, 1371110685, 1371110683, 1371110679, 1371110677, 1371110673, 1371110664, 1371110647, 1371110645, 1371110642, 1371110637, 1371110631, 1371110626, 1371110601, 1371110599, 1371110596, 1371110591, 1371110588, 1371110575, 1371110568, 1371110566, 1371110563, 1371110560, 1371110554, 1371110550, 1371110530, 1371110529, 1371110527, 1371110524, 1371110509, 1371110504, 1371110494, 1371110492, 1371110481, 1371110475, 1371110471, 1371110469]} final : False mtd_id 4302 list_pids : [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] 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, '3248364') ('4302', '24705055', '1371110996', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364') 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', '24705055', '1371110996', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364')] time used for this insertion : 0.11478996276855469 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.5292885303497314 time spend to save output : 0.11507248878479004 total time spend for step 4 : 4.6443610191345215 step5:split_time_score Tue Jul 8 01:46:34 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 : ['24705055'] 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 : [('24705055',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24705055) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371110980: {'path': 'temp/1751931990_1102322_1371110980_8658e9e151e77e364ea958deec87c34a.jpg', 'extension': 'jpg'}, 1371110985: {'path': 'temp/1751931990_1102322_1371110985_fcbcfcae63d50627c8cfdfc9c7dc652d.jpg', 'extension': 'jpg'}, 1371110989: {'path': 'temp/1751931990_1102322_1371110989_ef21ba7c569f0f401b3981ba3b09b72d.jpg', 'extension': 'jpg'}, 1371110965: {'path': 'temp/1751931990_1102322_1371110965_04d5bd47921bdd404d8d56ddd1836f4d.jpg', 'extension': 'jpg'}, 1371110968: {'path': 'temp/1751931990_1102322_1371110968_fe85b74a93ea01387c8587901665b2a3.jpg', 'extension': 'jpg'}, 1371110969: {'path': 'temp/1751931990_1102322_1371110969_952bb92c263d700ba2ad31c151d152fb.jpg', 'extension': 'jpg'}, 1371110951: {'path': 'temp/1751931990_1102322_1371110951_a42d208bd54e418498bc55ab6655a15c.jpg', 'extension': 'jpg'}, 1371110956: {'path': 'temp/1751931990_1102322_1371110956_1b351231f64484fcfd336018d2b7f5ee.jpg', 'extension': 'jpg'}, 1371110960: {'path': 'temp/1751931990_1102322_1371110960_5822830c6773ede941963cac3667acb8.jpg', 'extension': 'jpg'}, 1371110992: {'path': 'temp/1751931990_1102322_1371110992_1dc38b3136b62958eda157b435dd0345.jpg', 'extension': 'jpg'}, 1371110994: {'path': 'temp/1751931990_1102322_1371110994_2febba5ca59440caa263334a0bb10849.jpg', 'extension': 'jpg'}, 1371110996: {'path': 'temp/1751931990_1102322_1371110996_cc29a9404ef8b1054ad0784c00251b82.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 = 24705055; (('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 = 24705055 group by h (('01', 90),) 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=24705055 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 (24705055) 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 (24705055) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24705055 Nombre de photos uploadées : 90 / 23040 (0%) 08072025 24705055 Nombre de photos taguées (types de déchets): 0 / 90 (0%) 08072025 24705055 Nombre de photos taguées (volume) : 0 / 90 (0%) [{'photo_id': 1371110494, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ceea9a1903b3a8e45d8c9eb27f8becd5.jpg', 'username': None, 'uploaded_at': 1751931063, 'text': 'image_08072025_01_30_04_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371110492, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/989384bb26d67623e60fa5faebde939b.jpg', 'username': None, 'uploaded_at': 1751931063, 'text': 'image_08072025_01_30_14_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371110481, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/98e86727d98918a5446c78e693fa8ec0.jpg', 'username': None, 'uploaded_at': 1751931063, 'text': 'image_08072025_01_30_24_010132m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371110475, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6903cad64290baf567d8f9db56c8d542.jpg', 'username': None, 'uploaded_at': 1751931063, 'text': 'image_08072025_01_30_35_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ?????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004152059555053711 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24705055, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03035593032836914 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12257488, '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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12257489, '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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12257490, '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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12257491, '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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12257492, '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_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24704667, 'dashboard_result_id': 12257493, '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_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968008, 'mtr_portfolio_id': 24705055, 'dashboard_result_id': 12257494, '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_P24705055_08-07-2025_01_44_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 = 24702229 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': 3248100, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 0, 16, 29), 'result': '0.03432764518805383', 'result_long': None, 'result_double': None}] Qualite : 0.03432764518805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1968008 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257488, 0.03432764518805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3248151, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 0, 32, 58), 'result': '0.029028561484370358', 'result_long': None, 'result_double': None}] Qualite : 0.029028561484370358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1968008 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257489, 0.029028561484370358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3248189, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 0, 46, 30), 'result': '0.0338677238874439', 'result_long': None, 'result_double': None}] Qualite : 0.0338677238874439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1968008 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257490, 0.0338677238874439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3248233, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 1, 0, 58), 'result': '0.03287787548647065', 'result_long': None, 'result_double': None}] Qualite : 0.03287787548647065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1968008 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257491, 0.03287787548647065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3248282, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 1, 16, 30), 'result': '0.05429139786994954', 'result_long': None, 'result_double': None}] Qualite : 0.05429139786994954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1968007 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257492, 0.05429139786994954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24704667 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': 3248323, 'mtr_portfolio_id': 24704667, 'created_at': datetime.datetime(2025, 7, 8, 1, 33), 'result': '0.051405322418618504', 'result_long': None, 'result_double': None}] Qualite : 0.051405322418618504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704667 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_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}" where mtr_portfolio_id = 24704667 and dashboard_run_id = 1968007 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`=24704667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257493, 0.051405322418618504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, '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 = 24705055 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': 3248364, 'mtr_portfolio_id': 24705055, 'created_at': datetime.datetime(2025, 7, 8, 1, 46, 29), 'result': '0.04872368510622181', 'result_long': None, 'result_double': None}] Qualite : 0.04872368510622181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705055 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_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}" where mtr_portfolio_id = 24705055 and dashboard_run_id = 1968007 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`=24705055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12257494, 0.04872368510622181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 (24702229,24702755,24703205,24703713,24704184,24704667,24705055) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,), (1371109850,), (1371109861,), (1371109865,), (1371109869,), (1371109872,), (1371109874,), (1371109890,), (1371109896,), (1371109901,), (1371109904,), (1371109906,), (1371109907,), (1371109923,), (1371109934,), (1371109938,), (1371109947,), (1371109949,), (1371109950,), (1371109965,), (1371109970,), (1371109972,), (1371109973,), (1371109974,), (1371109975,), (1371109989,), (1371110002,), (1371110006,), (1371110008,), (1371110010,), (1371110012,), (1371110035,), (1371110038,), (1371110040,), (1371110042,), (1371110044,), (1371110045,), (1371110060,), (1371110073,), (1371110078,), (1371110080,), (1371110082,), (1371110083,), (1371110093,), (1371110097,), (1371110101,), (1371110105,), (1371110109,), (1371110110,), (1371110117,), (1371110124,), (1371110139,), (1371110143,), (1371110146,), (1371110147,), (1371110167,), (1371110170,), (1371110173,), (1371110177,), (1371110180,), (1371110182,), (1371110189,), (1371110192,), (1371110205,), (1371110208,), (1371110210,), (1371110212,), (1371110234,), (1371110238,), (1371110242,), (1371110246,), (1371110251,), (1371110254,), (1371110264,), (1371110267,), (1371110281,), (1371110284,), (1371110287,), (1371110289,), (1371110311,), (1371110314,), (1371110317,), (1371110320,), (1371110323,), (1371110325,), (1371110336,), (1371110353,), (1371110355,), (1371110359,), (1371110362,), (1371110364,), (1371110383,), (1371110388,), (1371110392,), (1371110396,), (1371110399,), (1371110401,), (1371110410,), (1371110418,), (1371110434,), (1371110442,), (1371110446,), (1371110448,), (1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 90, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24705055]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] map_info['map_portfolio_photo'] : {24705055: [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951, 1371110939, 1371110938, 1371110936, 1371110933, 1371110929, 1371110919, 1371110915, 1371110913, 1371110911, 1371110907, 1371110903, 1371110898, 1371110877, 1371110876, 1371110872, 1371110867, 1371110863, 1371110859, 1371110828, 1371110825, 1371110821, 1371110816, 1371110811, 1371110804, 1371110793, 1371110791, 1371110789, 1371110787, 1371110782, 1371110778, 1371110771, 1371110766, 1371110763, 1371110751, 1371110735, 1371110730, 1371110720, 1371110718, 1371110715, 1371110710, 1371110705, 1371110700, 1371110685, 1371110683, 1371110679, 1371110677, 1371110673, 1371110664, 1371110647, 1371110645, 1371110642, 1371110637, 1371110631, 1371110626, 1371110601, 1371110599, 1371110596, 1371110591, 1371110588, 1371110575, 1371110568, 1371110566, 1371110563, 1371110560, 1371110554, 1371110550, 1371110530, 1371110529, 1371110527, 1371110524, 1371110509, 1371110504, 1371110494, 1371110492, 1371110481, 1371110475, 1371110471, 1371110469]} final : True mtd_id 4302 list_pids : [1371110996, 1371110994, 1371110992, 1371110989, 1371110985, 1371110980, 1371110969, 1371110968, 1371110965, 1371110960, 1371110956, 1371110951] Looping around the photos to save general results len do output : 1 /24705055Didn'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, '3248364') ('4302', '24705055', '1371110996', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364') ('4302', None, None, None, None, None, None, None, '3248364') ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364') 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, '24705055', 'None', None, None, None, None, '3248364'), ('4302', '24705055', '1371110996', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110994', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110992', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110989', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110985', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110980', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110969', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110968', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110965', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110960', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110956', None, None, None, None, None, '3248364'), ('4302', '24705055', '1371110951', None, None, None, None, None, '3248364')] time used for this insertion : 0.1552746295928955 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6915323734283447 time spend to save output : 0.15555810928344727 total time spend for step 5 : 0.847090482711792 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 (3248364) 2.10user 2.05system 0:10.81elapsed 38%CPU (0avgtext+0avgdata 161644maxresident)k 0inputs+12800outputs (5major+66756minor)pagefaults 0swaps