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 : 3409926 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 (4261044) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4261044) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639188 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4261044'] with mtr_portfolio_ids : ['29639188'] and first list_photo_ids : [] new path : /proc/3409926/ Name: python3 Umask: 0002 State: R (running) Tgid: 3409926 Ngid: 0 Pid: 3409926 PPid: 3409925 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3409926 NSpid: 3409926 NSpgid: 3408527 NSsid: 3408527 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104560 kB VmRSS: 104560 kB RssAnon: 66288 kB RssFile: 38272 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3409926', 'Ngid': '0', 'Pid': '3409926', 'PPid': '3409925', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3409926', 'NSpid': '3409926', 'NSpgid': '3408527', 'NSsid': '3408527', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104560 kB', 'VmRSS': '104560 kB', 'RssAnon': '66288 kB', 'RssFile': '38272 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '3409926', '1113364', '0', '1113364', '872092', '104560', b'', 'marlene', '4261044') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29639188) 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 (4261044 ) ) 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 (29639188) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400634246, 'portfolio_id': 29639188}, {'photo_id': 1400634244, 'portfolio_id': 29639188}, {'photo_id': 1400634235, 'portfolio_id': 29639188}, {'photo_id': 1400634232, 'portfolio_id': 29639188}, {'photo_id': 1400634194, 'portfolio_id': 29639188}, {'photo_id': 1400634192, 'portfolio_id': 29639188}, {'photo_id': 1400634189, 'portfolio_id': 29639188}, {'photo_id': 1400634158, 'portfolio_id': 29639188}, {'photo_id': 1400634156, 'portfolio_id': 29639188}, {'photo_id': 1400634137, 'portfolio_id': 29639188}, {'photo_id': 1400634133, 'portfolio_id': 29639188}, {'photo_id': 1400634131, 'portfolio_id': 29639188}, {'photo_id': 1400634128, 'portfolio_id': 29639188}, {'photo_id': 1400634125, 'portfolio_id': 29639188}, {'photo_id': 1400634097, 'portfolio_id': 29639188}, {'photo_id': 1400634094, 'portfolio_id': 29639188}, {'photo_id': 1400634092, 'portfolio_id': 29639188}, {'photo_id': 1400634090, 'portfolio_id': 29639188}, {'photo_id': 1400634068, 'portfolio_id': 29639188}, {'photo_id': 1400634066, 'portfolio_id': 29639188}, {'photo_id': 1400634064, 'portfolio_id': 29639188}, {'photo_id': 1400634062, 'portfolio_id': 29639188}, {'photo_id': 1400634040, 'portfolio_id': 29639188}, {'photo_id': 1400634037, 'portfolio_id': 29639188}, {'photo_id': 1400634027, 'portfolio_id': 29639188}, {'photo_id': 1400634024, 'portfolio_id': 29639188}, {'photo_id': 1400634021, 'portfolio_id': 29639188}, {'photo_id': 1400634018, 'portfolio_id': 29639188}, {'photo_id': 1400633997, 'portfolio_id': 29639188}, {'photo_id': 1400633993, 'portfolio_id': 29639188}, {'photo_id': 1400633988, 'portfolio_id': 29639188}, {'photo_id': 1400633986, 'portfolio_id': 29639188}, {'photo_id': 1400633966, 'portfolio_id': 29639188}, {'photo_id': 1400633964, 'portfolio_id': 29639188}, {'photo_id': 1400633962, 'portfolio_id': 29639188}, {'photo_id': 1400633956, 'portfolio_id': 29639188}, {'photo_id': 1400633953, 'portfolio_id': 29639188}, {'photo_id': 1400633951, 'portfolio_id': 29639188}, {'photo_id': 1400633949, 'portfolio_id': 29639188}, {'photo_id': 1400633946, 'portfolio_id': 29639188}, {'photo_id': 1400633944, 'portfolio_id': 29639188}, {'photo_id': 1400633941, 'portfolio_id': 29639188}, {'photo_id': 1400633938, 'portfolio_id': 29639188}, {'photo_id': 1400633935, 'portfolio_id': 29639188}, {'photo_id': 1400633932, 'portfolio_id': 29639188}, {'photo_id': 1400633919, 'portfolio_id': 29639188}, {'photo_id': 1400633916, 'portfolio_id': 29639188}, {'photo_id': 1400633912, 'portfolio_id': 29639188}, {'photo_id': 1400633909, 'portfolio_id': 29639188}, {'photo_id': 1400633907, 'portfolio_id': 29639188}, {'photo_id': 1400633904, 'portfolio_id': 29639188}, {'photo_id': 1400633874, 'portfolio_id': 29639188}, {'photo_id': 1400633872, 'portfolio_id': 29639188}, {'photo_id': 1400633870, 'portfolio_id': 29639188}, {'photo_id': 1400633868, 'portfolio_id': 29639188}, {'photo_id': 1400633866, 'portfolio_id': 29639188}, {'photo_id': 1400633845, 'portfolio_id': 29639188}, {'photo_id': 1400633842, 'portfolio_id': 29639188}, {'photo_id': 1400633839, 'portfolio_id': 29639188}, {'photo_id': 1400633824, 'portfolio_id': 29639188}, {'photo_id': 1400633820, 'portfolio_id': 29639188}, {'photo_id': 1400633817, 'portfolio_id': 29639188}, {'photo_id': 1400633815, 'portfolio_id': 29639188}, {'photo_id': 1400633813, 'portfolio_id': 29639188}, {'photo_id': 1400633795, 'portfolio_id': 29639188}, {'photo_id': 1400633792, 'portfolio_id': 29639188}] map_portfolio_id_photo_id: {29639188: [1400634246, 1400634244, 1400634235, 1400634232, 1400634194, 1400634192, 1400634189, 1400634158, 1400634156, 1400634137, 1400634133, 1400634131, 1400634128, 1400634125, 1400634097, 1400634094, 1400634092, 1400634090, 1400634068, 1400634066, 1400634064, 1400634062, 1400634040, 1400634037, 1400634027, 1400634024, 1400634021, 1400634018, 1400633997, 1400633993, 1400633988, 1400633986, 1400633966, 1400633964, 1400633962, 1400633956, 1400633953, 1400633951, 1400633949, 1400633946, 1400633944, 1400633941, 1400633938, 1400633935, 1400633932, 1400633919, 1400633916, 1400633912, 1400633909, 1400633907, 1400633904, 1400633874, 1400633872, 1400633870, 1400633868, 1400633866, 1400633845, 1400633842, 1400633839, 1400633824, 1400633820, 1400633817, 1400633815, 1400633813, 1400633795, 1400633792]} ##### 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.019457578659057617 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 23 02:32:58 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 (29639188) 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 : 29639188 get user id for portfolio 29639188 get sub ptf for main ptf 29639188, type 3726 and hashtags ['Carton_brun', 'flou', 'plastique', 'cartonnette', 'Teint_Dans_La_Masse', 'autre_refus', 'metal', 'Carton_gris', 'mal_croppe', 'kraft', 'papier', 'environnement'] 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`=29639188 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','mal_croppe','kraft','papier','environnement')) 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`=29639188 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','mal_croppe','kraft','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29639188, 'sub_port_id': 29639196, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237721, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29639188, 'sub_port_id': 29639197, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237722, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'metal': {'main_port_id': 29639188, 'sub_port_id': 29639198, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237723, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'cartonnette': {'main_port_id': 29639188, 'sub_port_id': 29639199, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237724, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'papier': {'main_port_id': 29639188, 'sub_port_id': 29639200, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237725, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'flou': {'main_port_id': 29639188, 'sub_port_id': 29639201, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237726, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'kraft': {'main_port_id': 29639188, 'sub_port_id': 29639202, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237727, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'plastique': {'main_port_id': 29639188, 'sub_port_id': 29639203, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237728, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'Carton_gris': {'main_port_id': 29639188, 'sub_port_id': 29639204, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237729, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'autre_refus': {'main_port_id': 29639188, 'sub_port_id': 29639205, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237730, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'mal_croppe': {'main_port_id': 29639188, 'sub_port_id': 29639206, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237731, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}, 'environnement': {'main_port_id': 29639188, 'sub_port_id': 29639207, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237732, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639196 , 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=29639188 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 (29639196) result : ((1400633858,), (1400633981,), (1400634013,), (1400634086,), (1400634087,), (1400634110,), (1400634111,), (1400634119,), (1400634149,), (1400634150,), (1400634184,), (1400634185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639197 , 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=29639188 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 (29639197) result : ((1400634004,), (1400634080,), (1400634081,), (1400634082,), (1400634083,), (1400634084,), (1400634106,), (1400634173,), (1400634174,), (1400634175,), (1400634176,), (1400634209,), (1400634210,), (1400634211,), (1400634212,), (1400634213,), (1400634214,), (1400634215,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639198 , 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=29639188 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 (29639198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639199 , 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=29639188 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 (29639199) result : ((1400633856,), (1400633857,), (1400633978,), (1400633979,), (1400633980,), (1400634179,), (1400634180,), (1400634181,), (1400634182,), (1400634183,), (1400634241,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639200 , 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=29639188 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 (29639200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639201 , 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=29639188 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 (29639201) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639202 , 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=29639188 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 (29639202) result : ((1400633982,), (1400634007,), (1400634008,), (1400634009,), (1400634088,), (1400634115,), (1400634171,), (1400634172,), (1400634218,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639203 , 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=29639188 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 (29639203) result : ((1400633860,), (1400634112,), (1400634113,), (1400634114,), (1400634120,), (1400634121,), (1400634151,), (1400634187,), (1400634188,), (1400634242,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639204 , 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=29639188 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 (29639204) result : ((1400634050,), (1400634085,), (1400634109,), (1400634117,), (1400634118,), (1400634177,), (1400634178,), (1400634217,), (1400634239,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639205 , 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=29639188 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 (29639205) result : ((1400634005,), (1400634012,), (1400634108,), (1400634116,), (1400634148,), (1400634216,), (1400634238,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639206 , 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=29639188 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 (29639206) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29639207 , 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=29639188 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 (29639207) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29639188) result : ((1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=29639188 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','mal_croppe','kraft','papier','environnement')) 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`=29639188 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','flou','plastique','cartonnette','Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','mal_croppe','kraft','papier','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29639188, 'sub_port_id': 29639221, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237745, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 29639188, 'sub_port_id': 29639222, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237746, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'metal': {'main_port_id': 29639188, 'sub_port_id': 29639223, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237747, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'cartonnette': {'main_port_id': 29639188, 'sub_port_id': 29639224, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237748, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'papier': {'main_port_id': 29639188, 'sub_port_id': 29639225, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237749, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'flou': {'main_port_id': 29639188, 'sub_port_id': 29639226, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237750, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'kraft': {'main_port_id': 29639188, 'sub_port_id': 29639227, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237751, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'plastique': {'main_port_id': 29639188, 'sub_port_id': 29639228, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237752, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'Carton_gris': {'main_port_id': 29639188, 'sub_port_id': 29639229, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237753, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'autre_refus': {'main_port_id': 29639188, 'sub_port_id': 29639230, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237754, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'mal_croppe': {'main_port_id': 29639188, 'sub_port_id': 29639231, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237755, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}, 'environnement': {'main_port_id': 29639188, 'sub_port_id': 29639232, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20237756, 'last_updated_at': datetime.datetime(2025, 12, 23, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 23, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 23, 2, 17, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29639232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29639207 lien utilise dans velours : https://marlene.fotonower.com/velours/29639221,29639222,29639223,29639224,29639225,29639226,29639227,29639228,29639229,29639230,29639231,29639232?tags=Carton_brun,Teint_Dans_La_Masse,metal,cartonnette,papier,flou,kraft,plastique,Carton_gris,autre_refus,mal_croppe,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29639188]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400634246, 1400634244, 1400634235, 1400634232] map_info['map_portfolio_photo'] : {29639188: [1400634246, 1400634244, 1400634235, 1400634232, 1400634194, 1400634192, 1400634189, 1400634158, 1400634156, 1400634137, 1400634133, 1400634131, 1400634128, 1400634125, 1400634097, 1400634094, 1400634092, 1400634090, 1400634068, 1400634066, 1400634064, 1400634062, 1400634040, 1400634037, 1400634027, 1400634024, 1400634021, 1400634018, 1400633997, 1400633993, 1400633988, 1400633986, 1400633966, 1400633964, 1400633962, 1400633956, 1400633953, 1400633951, 1400633949, 1400633946, 1400633944, 1400633941, 1400633938, 1400633935, 1400633932, 1400633919, 1400633916, 1400633912, 1400633909, 1400633907, 1400633904, 1400633874, 1400633872, 1400633870, 1400633868, 1400633866, 1400633845, 1400633842, 1400633839, 1400633824, 1400633820, 1400633817, 1400633815, 1400633813, 1400633795, 1400633792]} final : False mtd_id 4302 list_pids : [1400634246, 1400634244, 1400634235, 1400634232] Looping around the photos to save general results len do output : 1 /29639188. 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, '4261044') ('4302', '29639188', '1400634246', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '29639188', "{'Carton_brun': 29639196, 'Teint_Dans_La_Masse': 29639197, 'metal': 29639198, 'cartonnette': 29639199, 'papier': 29639200, 'flou': 29639201, 'kraft': 29639202, 'plastique': 29639203, 'Carton_gris': 29639204, 'autre_refus': 29639205, 'mal_croppe': 29639206, 'environnement': 29639207}", None, None, None, None, '4261044'), ('4302', '29639188', '1400634246', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044')] time used for this insertion : 0.014890193939208984 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7750580310821533 time spend to save output : 0.01516103744506836 total time spend for step 1 : 1.7902190685272217 step2:final Tue Dec 23 02:33:00 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 (29639188) 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 29639188 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400633795,1400633792,1400633824,1400633820,1400633817,1400633815,1400633813,1400633845,1400633842,1400633839,1400633874,1400633872,1400633870,1400633868,1400633866,1400633956,1400633919,1400633953,1400633916,1400633912,1400633951,1400633909,1400633949,1400633946,1400633907,1400633944,1400633904,1400633941,1400633938,1400633935,1400633932,1400633966,1400633964,1400633962,1400633997,1400633993,1400633988,1400633986,1400634027,1400634024,1400634021,1400634018,1400634040,1400634037,1400634068,1400634066,1400634064,1400634062,1400634097,1400634094,1400634092,1400634090,1400634137,1400634133,1400634131,1400634128,1400634125,1400634158,1400634156,1400634194,1400634246,1400634192,1400634244,1400634189,1400634235,1400634232); 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([29639188]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} new output for save of step final : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} [1400634246, 1400634244, 1400634235, 1400634232] map_info['map_portfolio_photo'] : {29639188: [1400634246, 1400634244, 1400634235, 1400634232, 1400634194, 1400634192, 1400634189, 1400634158, 1400634156, 1400634137, 1400634133, 1400634131, 1400634128, 1400634125, 1400634097, 1400634094, 1400634092, 1400634090, 1400634068, 1400634066, 1400634064, 1400634062, 1400634040, 1400634037, 1400634027, 1400634024, 1400634021, 1400634018, 1400633997, 1400633993, 1400633988, 1400633986, 1400633966, 1400633964, 1400633962, 1400633956, 1400633953, 1400633951, 1400633949, 1400633946, 1400633944, 1400633941, 1400633938, 1400633935, 1400633932, 1400633919, 1400633916, 1400633912, 1400633909, 1400633907, 1400633904, 1400633874, 1400633872, 1400633870, 1400633868, 1400633866, 1400633845, 1400633842, 1400633839, 1400633824, 1400633820, 1400633817, 1400633815, 1400633813, 1400633795, 1400633792]} final : False mtd_id 4302 list_pids : [1400634246, 1400634244, 1400634235, 1400634232] Looping around the photos to save general results len do output : 4 /1400634246.Didn't retrieve data . /1400634244.Didn't retrieve data . /1400634235.Didn't retrieve data . /1400634232.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, '4261044') ('4302', '29639188', '1400634246', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044') 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', '29639188', '1400634246', '0.05262910396961983', None, None, None, None, '4261044'), ('4302', '29639188', '1400634244', '0.05262910396961983', None, None, None, None, '4261044'), ('4302', '29639188', '1400634235', '0.05262910396961983', None, None, None, None, '4261044'), ('4302', '29639188', '1400634232', '0.05262910396961983', None, None, None, None, '4261044')] time used for this insertion : 0.016954660415649414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08868408203125 time spend to save output : 0.017239093780517578 total time spend for step 2 : 0.10592317581176758 step3:velours_tree Tue Dec 23 02:33:00 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 : {29639188: [{'Carton_brun': 29639196, 'Teint_Dans_La_Masse': 29639197, 'metal': 29639198, 'cartonnette': 29639199, 'papier': 29639200, 'flou': 29639201, 'kraft': 29639202, 'plastique': 29639203, 'Carton_gris': 29639204, 'autre_refus': 29639205, 'mal_croppe': 29639206, 'environnement': 29639207}]} input_args_next_step : {29639188: ()} output_args : {29639188: [{'Carton_brun': 29639196, 'Teint_Dans_La_Masse': 29639197, 'metal': 29639198, 'cartonnette': 29639199, 'papier': 29639200, 'flou': 29639201, 'kraft': 29639202, 'plastique': 29639203, 'Carton_gris': 29639204, 'autre_refus': 29639205, 'mal_croppe': 29639206, 'environnement': 29639207}]} args : 29639188 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 29639196, 'Teint_Dans_La_Masse': 29639197, 'metal': 29639198, 'cartonnette': 29639199, 'papier': 29639200, 'flou': 29639201, 'kraft': 29639202, 'plastique': 29639203, 'Carton_gris': 29639204, 'autre_refus': 29639205, 'mal_croppe': 29639206, 'environnement': 29639207},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29639188) 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([29639188]) 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.3314015865325928 time spend to save output : 6.532669067382812e-05 total time spend for step 3 : 0.3314669132232666 step4:send_mail_cod Tue Dec 23 02:33:01 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 : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} input_args_next_step : {1400634246: ()} output_args : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} args : 1400634246 depend.output_id : 0 input_args_next_step : {1400634246: ('0.05262910396961983',), 1400634244: ()} output_args : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} args : 1400634244 depend.output_id : 0 input_args_next_step : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ()} output_args : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} args : 1400634235 depend.output_id : 0 input_args_next_step : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ()} output_args : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',)} args : 1400634232 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 : {29639188: [{'Carton_brun': 29639196, 'Teint_Dans_La_Masse': 29639197, 'metal': 29639198, 'cartonnette': 29639199, 'papier': 29639200, 'flou': 29639201, 'kraft': 29639202, 'plastique': 29639203, 'Carton_gris': 29639204, 'autre_refus': 29639205, 'mal_croppe': 29639206, 'environnement': 29639207}]} input_args_next_step : {1400634246: ('0.05262910396961983',), 1400634244: ('0.05262910396961983',), 1400634235: ('0.05262910396961983',), 1400634232: ('0.05262910396961983',), 29639188: ()} output_args : {29639188: [{'Carton_brun': 29639196, 'Teint_Dans_La_Masse': 29639197, 'metal': 29639198, 'cartonnette': 29639199, 'papier': 29639200, 'flou': 29639201, 'kraft': 29639202, 'plastique': 29639203, 'Carton_gris': 29639204, 'autre_refus': 29639205, 'mal_croppe': 29639206, 'environnement': 29639207}]} args : 29639188 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 :5, first value : ('0.05262910396961983',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29639188) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1400634246,1400634244,1400634235,1400634232) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400634232 begin to download photo : 1400634235 begin to download photo : 1400634244 begin to download photo : 1400634246 download finish for photo 1400634244 download finish for photo 1400634232 download finish for photo 1400634246 download finish for photo 1400634235 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette296391981766453581/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P29639188_23-12-2025_02_33_01.pdf 29639198 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296391981766453581 29639199 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400633856: '1766452705_247862_1400633795_06286bb9631adc14c60ab3c15f44bdce_rle_crop_4078765212_0.png', 1400633857: '1766452705_247862_1400633792_487d4002a6753c67c83857956ad4ebcf_rle_crop_4078765235_0.png', 1400633978: '1766452945_261054_1400633868_77ac34151b5bf7f968cc51f3a624e3b2_rle_crop_4078765805_0.png', 1400633979: '1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765814_0.png', 1400633980: '1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765812_0.png', 1400634179: '1766453346_286413_1400633949_1abda4d339064f801424b3d9aa35d7a5_rle_crop_4078767076_0.png', 1400634180: '1766453346_286413_1400633944_a1fbb41cb5da97f2d6a4bc3c8b52bd89_rle_crop_4078767094_0.png', 1400634181: '1766453346_286413_1400633941_bea09505073939e63051e42cac57eab5_rle_crop_4078767102_0.png', 1400634182: '1766453346_286413_1400633909_cf50a86b3c7a35451536a64a5effbf1f_rle_crop_4078767177_0.png', 1400634183: '1766453346_286413_1400633904_a1eef058c46e2113726319d09f467bd3_rle_crop_4078767195_0.png', 1400634241: '1766453466_294540_1400634066_272aa852401e4152819b7dc540cab688_rle_crop_4078767476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/90cdc653e6d2dc3a5491e617a1c2c69e_73574501.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/a89f88c01dec1f8f7c8f0f315b1ac447_8544291.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c8a581bde01057bfbfc58b5175f05b58_68657766.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0f9474efce5da1d6bf7b9c903a4b63bd_84961919.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e1264705a9df236a117ca5080f1dbf87_93218084.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/67e535e233a30042df01b154e62c54ac_20243122.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c012cfa3e975d337a6d383b629ae9b0f_70814548.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/9347ce7a21416abaee9591d592694fad_17732320.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/67e535e233a30042df01b154e62c54ac_22692558.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c012cfa3e975d337a6d383b629ae9b0f_66520047.png change filename to text .imagette296391991766453581/ imagette296391991766453581/1766453346_286413_1400633949_1abda4d339064f801424b3d9aa35d7a5_rle_crop_4078767076_0.png.png imagette296391991766453581/1766452945_261054_1400633868_77ac34151b5bf7f968cc51f3a624e3b2_rle_crop_4078765805_0.png.png imagette296391991766453581/1766453346_286413_1400633909_cf50a86b3c7a35451536a64a5effbf1f_rle_crop_4078767177_0.png.png imagette296391991766453581/1766453346_286413_1400633941_bea09505073939e63051e42cac57eab5_rle_crop_4078767102_0.png.png imagette296391991766453581/1766453346_286413_1400633944_a1fbb41cb5da97f2d6a4bc3c8b52bd89_rle_crop_4078767094_0.png.png imagette296391991766453581/1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765812_0.png.png imagette296391991766453581/1766453346_286413_1400633904_a1eef058c46e2113726319d09f467bd3_rle_crop_4078767195_0.png.png imagette296391991766453581/1766453466_294540_1400634066_272aa852401e4152819b7dc540cab688_rle_crop_4078767476_0.png.png imagette296391991766453581/1766452705_247862_1400633792_487d4002a6753c67c83857956ad4ebcf_rle_crop_4078765235_0.png.png imagette296391991766453581/1766452705_247862_1400633795_06286bb9631adc14c60ab3c15f44bdce_rle_crop_4078765212_0.png.png imagette296391991766453581/1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765814_0.png.png imagette296392011766453582/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ebdd409d22af2785df86cffe0ba407be_46884355.png imagette296391991766453581 29639201 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296392011766453582 29639202 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400633982: '1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765820_0.png', 1400634007: '1766452987_263514_1400633820_c4c9d4545fdcab360fb0f3439534d110_rle_crop_4078765934_0.png', 1400634008: '1766452987_263514_1400633817_84ac2dfad243f05fcbbed1a166883c7a_rle_crop_4078765947_0.png', 1400634009: '1766452987_263514_1400633815_3dbbaee6ad530753367d0b0d107a58f4_rle_crop_4078765962_0.png', 1400634088: '1766453186_277721_1400634018_bb8fb34176d7fb24dc15741efeb6b9ef_rle_crop_4078766316_0.png', 1400634115: '1766453226_278344_1400634027_d59a6936cab9b325f10e9b203d63246b_rle_crop_4078766432_0.png', 1400634171: '1766453366_288227_1400633956_062b2bcac73c90318df80375695a69d5_rle_crop_4078767116_0.png', 1400634172: '1766453366_288227_1400633919_53b569478e16963d37d5c1e1d862d922_rle_crop_4078767159_0.png', 1400634218: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767322_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/8303188242d3a6a5a7dfc71b95d3d705_26609956.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/3377c8b87f1b104e3f1ed00433ada855_95122571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/edf18b21aa63a1e5c1676a5f301806f8_14269719.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f8c796f56780c42c2c126fc139b77daf_10589705.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4ad7279c1fbe2f9b55636bb1236b795e_60105545.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/059f3862df247f570faca51b80156aee_72562243.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4087081360d9181e7f74e8ad196a61cf_1131027.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4087081360d9181e7f74e8ad196a61cf_80122497.png change filename to text .imagette296392021766453582/ imagette296392021766453582/1766453186_277721_1400634018_bb8fb34176d7fb24dc15741efeb6b9ef_rle_crop_4078766316_0.png.png imagette296392021766453582/1766453366_288227_1400633956_062b2bcac73c90318df80375695a69d5_rle_crop_4078767116_0.png.png imagette296392021766453582/1766452987_263514_1400633817_84ac2dfad243f05fcbbed1a166883c7a_rle_crop_4078765947_0.png.png imagette296392021766453582/1766453366_288227_1400633919_53b569478e16963d37d5c1e1d862d922_rle_crop_4078767159_0.png.png imagette296392021766453582/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767322_0.png.png imagette296392021766453582/1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765820_0.png.png imagette296392021766453582/1766452987_263514_1400633820_c4c9d4545fdcab360fb0f3439534d110_rle_crop_4078765934_0.png.png imagette296392021766453582/1766453226_278344_1400634027_d59a6936cab9b325f10e9b203d63246b_rle_crop_4078766432_0.png.png imagette296392021766453582/1766452987_263514_1400633815_3dbbaee6ad530753367d0b0d107a58f4_rle_crop_4078765962_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b3d086319302b6d0ecbc1111518e4272_70406953.png imagette296392021766453582 29639203 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400633860: '1766452705_247862_1400633795_06286bb9631adc14c60ab3c15f44bdce_rle_crop_4078765215_0.png', 1400634112: '1766453226_278344_1400633993_23c27b0ee39c92cf1266bd2f69f4f578_rle_crop_4078766451_0.png', 1400634113: '1766453226_278344_1400633988_f2857d8c092bfb657372e37c1ed3291b_rle_crop_4078766462_0.png', 1400634114: '1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766469_0.png', 1400634120: '1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766594_0.png', 1400634121: '1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766583_0.png', 1400634151: '1766453307_285086_1400633938_217251eea5a21bb30b3c4e389319f0f0_rle_crop_4078766688_0.png', 1400634187: '1766453346_286413_1400633944_a1fbb41cb5da97f2d6a4bc3c8b52bd89_rle_crop_4078767097_0.png', 1400634188: '1766453346_286413_1400633904_a1eef058c46e2113726319d09f467bd3_rle_crop_4078767198_0.png', 1400634242: '1766453466_294540_1400634062_7ddcefe75e836e4aeadc84ee3a42d06b_rle_crop_4078767519_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f5b7258ca12ee4ea918fb913400052f0_25366167.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c73ed5d7f9f011ef6c4473c6c3c865fd_91408893.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/0a1580928d8537a6da57968d290c1997_31037407.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/59cfad5bb2e1499f696e96e0320cf85e_94830257.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f2157fc9814d76eb313cc013df641bbf_36776264.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/67fc7bb10352773715d6d2e64e18f49f_60704634.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/78279c6bd0add621826a1821ea9aecd1_93131180.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/db050718984775be280c8e832f386991_82822216.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/db050718984775be280c8e832f386991_85866641.png change filename to text .imagette296392031766453582/ imagette296392031766453582/1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766594_0.png.png imagette296392031766453582/1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766469_0.png.png imagette296392031766453582/1766453226_278344_1400633988_f2857d8c092bfb657372e37c1ed3291b_rle_crop_4078766462_0.png.png imagette296392031766453582/1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766583_0.png.png imagette296392031766453582/1766453307_285086_1400633938_217251eea5a21bb30b3c4e389319f0f0_rle_crop_4078766688_0.png.png imagette296392031766453582/1766453466_294540_1400634062_7ddcefe75e836e4aeadc84ee3a42d06b_rle_crop_4078767519_0.png.png imagette296392031766453582/1766452705_247862_1400633795_06286bb9631adc14c60ab3c15f44bdce_rle_crop_4078765215_0.png.png imagette296392031766453582/1766453346_286413_1400633904_a1eef058c46e2113726319d09f467bd3_rle_crop_4078767198_0.png.png imagette296392031766453582/1766453226_278344_1400633993_23c27b0ee39c92cf1266bd2f69f4f578_rle_crop_4078766451_0.png.png imagette296392031766453582/1766453346_286413_1400633944_a1fbb41cb5da97f2d6a4bc3c8b52bd89_rle_crop_4078767097_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ff762615244fa2c99f65ea5621c7ae96_9055828.png imagette296392031766453582 29639205 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400634005: '1766452987_263514_1400633817_84ac2dfad243f05fcbbed1a166883c7a_rle_crop_4078765945_0.png', 1400634012: '1766453005_265230_1400633839_5d79fa90ca8dd8a2236cd79c9f8e94da_rle_crop_4078766035_0.png', 1400634108: '1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766466_0.png', 1400634116: '1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766585_0.png', 1400634148: '1766453307_285086_1400633966_6f4793bafeb76abd984bea0a4fbb3366_rle_crop_4078766677_0.png', 1400634216: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767323_0.png', 1400634238: '1766453466_294540_1400634064_c7438cdf9d389b0ea9a60de77bc0c912_rle_crop_4078767489_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/b745b37abaa1abf580fceeba9a399842_97207947.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f915906a0d78a96ca87552a9b699e3b7_80905939.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/f08d1e0732ae2eb6eafae96662ed116b_6504303.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/650c61abdeaecd1cb9cdadc39648c0e0_25014257.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/2f48cfa9f017d2e5c1b0cd25a740039a_70158700.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c9d56a2fbbc9338fb3ae87a4cc5b848d_56474946.png change filename to text .imagette296392051766453583/ imagette296392051766453583/1766453005_265230_1400633839_5d79fa90ca8dd8a2236cd79c9f8e94da_rle_crop_4078766035_0.png.png imagette296392051766453583/1766452987_263514_1400633817_84ac2dfad243f05fcbbed1a166883c7a_rle_crop_4078765945_0.png.png imagette296392051766453583/1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766466_0.png.png imagette296392051766453583/1766453307_285086_1400633966_6f4793bafeb76abd984bea0a4fbb3366_rle_crop_4078766677_0.png.png imagette296392051766453583/1766453466_294540_1400634064_c7438cdf9d389b0ea9a60de77bc0c912_rle_crop_4078767489_0.png.png imagette296392051766453583/1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766585_0.png.png imagette296392051766453583/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767323_0.png.png imagette296392061766453584/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e9e0bd7c6a44a32fd7d6a3cd2819d457_80015967.png imagette296392051766453583 29639206 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296392061766453584 29639196 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400633858: '1766452705_247862_1400633795_06286bb9631adc14c60ab3c15f44bdce_rle_crop_4078765217_0.png', 1400633981: '1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765817_0.png', 1400634013: '1766453005_265230_1400633842_e26abfb4d479b28599049e032a2316ab_rle_crop_4078766024_0.png', 1400634086: '1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766299_0.png', 1400634087: '1766453186_277721_1400634018_bb8fb34176d7fb24dc15741efeb6b9ef_rle_crop_4078766314_0.png', 1400634110: '1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766475_0.png', 1400634111: '1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766473_0.png', 1400634119: '1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766589_0.png', 1400634149: '1766453307_285086_1400633938_217251eea5a21bb30b3c4e389319f0f0_rle_crop_4078766690_0.png', 1400634150: '1766453307_285086_1400633938_217251eea5a21bb30b3c4e389319f0f0_rle_crop_4078766693_0.png', 1400634184: '1766453346_286413_1400633949_1abda4d339064f801424b3d9aa35d7a5_rle_crop_4078767073_0.png', 1400634185: '1766453346_286413_1400633909_cf50a86b3c7a35451536a64a5effbf1f_rle_crop_4078767174_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d20997695ad344b87e2de5f501eb0eb9_53280282.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/da4b1356659b781abf8ae3ef4e1e3083_72843302.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/09cf9ac3fdc68b8d9e75bf5ff8badb8c_53665209.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/d4b8ee9b3a43f137cbebf833cdf4b2b3_41735495.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/daf477cdf0cb728153e860fec5d449a5_88778108.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/13d7aa1d8c404a5b9b3b348449420ac7_90827154.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/7ffe6a9892e933d5695683351d0b7279_75728087.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/96a960a6f8f23aff44a51bf636442c1d_41981883.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/63a77d9f23e2836f26c12932bb530a06_31443548.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/6f575547fdee6ddc37f34fc00b0e210a_92963608.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e993e3a7ef8208c87814bb990a6c8208_4809263.png change filename to text .imagette296391961766453584/ imagette296391961766453584/1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766475_0.png.png imagette296391961766453584/1766453005_265230_1400633842_e26abfb4d479b28599049e032a2316ab_rle_crop_4078766024_0.png.png imagette296391961766453584/1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766299_0.png.png imagette296391961766453584/1766452945_261054_1400633866_f4d7eae540237c9f72677ff2b4b758e2_rle_crop_4078765817_0.png.png imagette296391961766453584/1766453226_278344_1400633986_74d131e182fb907d6f38971619f51d3f_rle_crop_4078766473_0.png.png imagette296391961766453584/1766453346_286413_1400633949_1abda4d339064f801424b3d9aa35d7a5_rle_crop_4078767073_0.png.png imagette296391961766453584/1766453186_277721_1400634018_bb8fb34176d7fb24dc15741efeb6b9ef_rle_crop_4078766314_0.png.png imagette296391961766453584/1766453346_286413_1400633909_cf50a86b3c7a35451536a64a5effbf1f_rle_crop_4078767174_0.png.png imagette296391961766453584/1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766589_0.png.png imagette296391961766453584/1766453307_285086_1400633938_217251eea5a21bb30b3c4e389319f0f0_rle_crop_4078766693_0.png.png imagette296391961766453584/1766453307_285086_1400633938_217251eea5a21bb30b3c4e389319f0f0_rle_crop_4078766690_0.png.png imagette296391961766453584/1766452705_247862_1400633795_06286bb9631adc14c60ab3c15f44bdce_rle_crop_4078765217_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e993e3a7ef8208c87814bb990a6c8208_72194888.png imagette296391961766453584 29639197 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400634175: '1766453346_286413_1400633909_cf50a86b3c7a35451536a64a5effbf1f_rle_crop_4078767176_0.png', 1400634215: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767326_0.png', 1400634214: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767325_0.png', 1400634213: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767333_0.png', 1400634212: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767331_0.png', 1400634211: '1766453425_292404_1400634092_2c1ed165f46ccfc185cff65884085897_rle_crop_4078767310_0.png', 1400634210: '1766453425_292404_1400634092_2c1ed165f46ccfc185cff65884085897_rle_crop_4078767316_0.png', 1400634209: '1766453425_292404_1400634092_2c1ed165f46ccfc185cff65884085897_rle_crop_4078767314_0.png', 1400634176: '1766453346_286413_1400633907_8a2ba7bfcc997d6ec9021829e10b4f46_rle_crop_4078767186_0.png', 1400634004: '1766452987_263514_1400633813_ddf30597f46697fa671501f7ef11749b_rle_crop_4078765973_0.png', 1400634174: '1766453346_286413_1400633946_c33debef152392471938f67a143b8477_rle_crop_4078767085_0.png', 1400634173: '1766453346_286413_1400633949_1abda4d339064f801424b3d9aa35d7a5_rle_crop_4078767075_0.png', 1400634106: '1766453226_278344_1400634027_d59a6936cab9b325f10e9b203d63246b_rle_crop_4078766437_0.png', 1400634084: '1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766294_0.png', 1400634083: '1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766302_0.png', 1400634082: '1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766293_0.png', 1400634081: '1766453186_277721_1400634024_24c062328e448d9747bcb4e401b233f5_rle_crop_4078766280_0.png', 1400634080: '1766453186_277721_1400634024_24c062328e448d9747bcb4e401b233f5_rle_crop_4078766284_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4b9f30c15f8bc7376cb79578c3dbec58_63905248.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/04378390d27113a80067194ce5c40ad7_39821345.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/14a9342ec89ece8bb98fc6fbd75d3261_42840197.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/8f3b8c3752c8400a8f1bf8ec7b77a452_48030993.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/e595848cb4f887c72ddd59dee0547313_2430750.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/35f8674ef4f0e683a0df39fc12d341e5_26006726.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4fd9baba2baab1a69d7a0c9660ecf786_67918003.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/51ea5ba347a21913456e3e96d71c2cf2_39152646.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/41684fcfc072714dba95500d17e4b2fc_62173.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/749607484adfeb1bd29bdc68d979f8fe_64584110.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/41684fcfc072714dba95500d17e4b2fc_34973700.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4b9f30c15f8bc7376cb79578c3dbec58_48448152.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ea6f44acc1407159dd61ef338689f2ec_60609220.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/4497b08319fab74ad7baca8f4ba86336_64221077.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/309fd53e861b8434decc1328a4eca276_26761165.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/376b19bd32ee2a62d721a36ba27eb4c2_9107695.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/8533cc04523450ba3f0b1b5e76a24244_93410381.png change filename to text .imagette296391971766453584/ imagette296391971766453584/1766453425_292404_1400634092_2c1ed165f46ccfc185cff65884085897_rle_crop_4078767314_0.png.png imagette296391971766453584/1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766294_0.png.png imagette296391971766453584/1766452987_263514_1400633813_ddf30597f46697fa671501f7ef11749b_rle_crop_4078765973_0.png.png imagette296391971766453584/1766453186_277721_1400634024_24c062328e448d9747bcb4e401b233f5_rle_crop_4078766284_0.png.png imagette296391971766453584/1766453425_292404_1400634092_2c1ed165f46ccfc185cff65884085897_rle_crop_4078767316_0.png.png imagette296391971766453584/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767325_0.png.png imagette296391971766453584/1766453346_286413_1400633949_1abda4d339064f801424b3d9aa35d7a5_rle_crop_4078767075_0.png.png imagette296391971766453584/1766453186_277721_1400634024_24c062328e448d9747bcb4e401b233f5_rle_crop_4078766280_0.png.png imagette296391971766453584/1766453346_286413_1400633946_c33debef152392471938f67a143b8477_rle_crop_4078767085_0.png.png imagette296391971766453584/1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766302_0.png.png imagette296391971766453584/1766453226_278344_1400634027_d59a6936cab9b325f10e9b203d63246b_rle_crop_4078766437_0.png.png imagette296391971766453584/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767331_0.png.png imagette296391971766453584/1766453425_292404_1400634092_2c1ed165f46ccfc185cff65884085897_rle_crop_4078767310_0.png.png imagette296391971766453584/1766453346_286413_1400633907_8a2ba7bfcc997d6ec9021829e10b4f46_rle_crop_4078767186_0.png.png imagette296391971766453584/1766453186_277721_1400634021_caacaf3bae3ddda21f82a26e0bf15216_rle_crop_4078766293_0.png.png imagette296391971766453584/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767333_0.png.png imagette296391971766453584/1766453346_286413_1400633909_cf50a86b3c7a35451536a64a5effbf1f_rle_crop_4078767176_0.png.png imagette296391971766453584/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767326_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/47a3807b0540fe8edb043dd53edcbeb9_92556688.png imagette296391971766453584 29639204 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400634050: '1766453106_271043_1400633824_35ae45446824ad7d3bb52631e310593a_rle_crop_4078766080_0.png', 1400634085: '1766453186_277721_1400634018_bb8fb34176d7fb24dc15741efeb6b9ef_rle_crop_4078766317_0.png', 1400634109: '1766453226_278344_1400633993_23c27b0ee39c92cf1266bd2f69f4f578_rle_crop_4078766446_0.png', 1400634117: '1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766575_0.png', 1400634118: '1766453245_280065_1400633964_1e5a5c4ef6593f0aeb71894a2f02af83_rle_crop_4078766600_0.png', 1400634177: '1766453346_286413_1400633953_008aed9c97bc125c6f1cffa5f525e60d_rle_crop_4078767042_0.png', 1400634178: '1766453346_286413_1400633916_329d2ceb2d83f8eb31d82ddac7ed1517_rle_crop_4078767130_0.png', 1400634217: '1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767320_0.png', 1400634239: '1766453466_294540_1400634064_c7438cdf9d389b0ea9a60de77bc0c912_rle_crop_4078767492_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/025228b3b95a7ea243e4b976c3231b71_91099679.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/34e331c1b3a0fe7380f0e9898c490991_99379869.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ad7ce33a60f73bd2517506d8642ba400_15908842.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c4dc1f5c0ea1b2a9ad19b9dc6541ec3f_18209194.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/8fab889dfdc0eadf8c8bf197f3e17dde_31958881.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/95561cc8eba9ab91243184e16bc5ef6d_82814087.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/95561cc8eba9ab91243184e16bc5ef6d_9802987.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/18d22a435998dec1998ad4cf9d951075_64545171.png change filename to text .imagette296392041766453586/ imagette296392041766453586/1766453245_280065_1400633964_1e5a5c4ef6593f0aeb71894a2f02af83_rle_crop_4078766600_0.png.png imagette296392041766453586/1766453106_271043_1400633824_35ae45446824ad7d3bb52631e310593a_rle_crop_4078766080_0.png.png imagette296392041766453586/1766453425_292404_1400634090_389af637e9a8f237bea4a800a0c518b3_rle_crop_4078767320_0.png.png imagette296392041766453586/1766453245_280065_1400633997_fba9dca01bfc6e4302c375bd7cc69274_rle_crop_4078766575_0.png.png imagette296392041766453586/1766453466_294540_1400634064_c7438cdf9d389b0ea9a60de77bc0c912_rle_crop_4078767492_0.png.png imagette296392041766453586/1766453226_278344_1400633993_23c27b0ee39c92cf1266bd2f69f4f578_rle_crop_4078766446_0.png.png imagette296392041766453586/1766453186_277721_1400634018_bb8fb34176d7fb24dc15741efeb6b9ef_rle_crop_4078766317_0.png.png imagette296392041766453586/1766453346_286413_1400633916_329d2ceb2d83f8eb31d82ddac7ed1517_rle_crop_4078767130_0.png.png imagette296392041766453586/1766453346_286413_1400633953_008aed9c97bc125c6f1cffa5f525e60d_rle_crop_4078767042_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/ec5863d3741128fd1d36f39638af715b_31126531.png imagette296392041766453586 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29639188 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29639221,29639222,29639223,29639224,29639225,29639226,29639227,29639228,29639229,29639230,29639231,29639232?tags=Carton_brun,Teint_Dans_La_Masse,metal,cartonnette,papier,flou,kraft,plastique,Carton_gris,autre_refus,mal_croppe,environnement your option no_mail is active, we will not send the real mail to your client args[1400634246] : ('0.05262910396961983',) no score found for photo 1400634246 We are sending mail with results at report@fotonower.com args[1400634244] : ('0.05262910396961983',) no score found for photo 1400634244 We are sending mail with results at report@fotonower.com args[1400634235] : ('0.05262910396961983',) no score found for photo 1400634235 We are sending mail with results at report@fotonower.com args[1400634232] : ('0.05262910396961983',) no score found for photo 1400634232 We are sending mail with results at report@fotonower.com refus_total : 0.05262910396961983 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639188 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_P29639188_23-12-2025_02_33_01.pdf results_Auto_P29639188_23-12-2025_02_33_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.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','29639188','results_Auto_P29639188_23-12-2025_02_33_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf','pdf','','0.26','0.05262910396961983') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29639188]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400634246, 1400634244, 1400634235, 1400634232] map_info['map_portfolio_photo'] : {29639188: [1400634246, 1400634244, 1400634235, 1400634232, 1400634194, 1400634192, 1400634189, 1400634158, 1400634156, 1400634137, 1400634133, 1400634131, 1400634128, 1400634125, 1400634097, 1400634094, 1400634092, 1400634090, 1400634068, 1400634066, 1400634064, 1400634062, 1400634040, 1400634037, 1400634027, 1400634024, 1400634021, 1400634018, 1400633997, 1400633993, 1400633988, 1400633986, 1400633966, 1400633964, 1400633962, 1400633956, 1400633953, 1400633951, 1400633949, 1400633946, 1400633944, 1400633941, 1400633938, 1400633935, 1400633932, 1400633919, 1400633916, 1400633912, 1400633909, 1400633907, 1400633904, 1400633874, 1400633872, 1400633870, 1400633868, 1400633866, 1400633845, 1400633842, 1400633839, 1400633824, 1400633820, 1400633817, 1400633815, 1400633813, 1400633795, 1400633792]} final : False mtd_id 4302 list_pids : [1400634246, 1400634244, 1400634235, 1400634232] 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, '4261044') ('4302', '29639188', '1400634246', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '29639188', '1400634246', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044')] time used for this insertion : 0.01715564727783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.788021087646484 time spend to save output : 0.01732802391052246 total time spend for step 4 : 6.805349111557007 step5:split_time_score Tue Dec 23 02:33:07 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 : ['29639188'] 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 : [('29639188',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29639188) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400634244: {'path': 'temp/1766453581_3409926_1400634244_a8220805eacba701dfb80ab7196ddc99.jpg', 'extension': 'jpg'}, 1400634232: {'path': 'temp/1766453581_3409926_1400634232_1b793add4eb45e7db1e468ca9ac6ad16.jpg', 'extension': 'jpg'}, 1400634246: {'path': 'temp/1766453581_3409926_1400634246_d3cda8550d63aaf3ff3f9d5b785e6146.jpg', 'extension': 'jpg'}, 1400634235: {'path': 'temp/1766453581_3409926_1400634235_50047c46f68075cc7d867c95f39708e3.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 = 29639188; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29639188 group by h (('02', 66),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29639188 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 (29639188) 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 (29639188) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23122025 29639188 Nombre de photos uploadées : 66 / 23040 (0%) 23122025 29639188 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 23122025 29639188 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1400633795, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/06286bb9631adc14c60ab3c15f44bdce.jpg', 'username': None, 'uploaded_at': 1766452567, 'text': 'image_23122025_02_15_04_010155m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400633792, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/487d4002a6753c67c83857956ad4ebcf.jpg', 'username': None, 'uploaded_at': 1766452567, 'text': 'image_23122025_02_15_24_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1400633824, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/35ae45446824ad7d3bb52631e310593a.jpg', 'username': None, 'uploaded_at': 1766452627, 'text': 'image_23122025_02_15_44_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1400633820, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/23/c4c9d4545fdcab360fb0f3439534d110.jpg', 'username': None, 'uploaded_at': 1766452627, 'text': 'image_23122025_02_16_04_010145m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028443336486816406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29639188, '2025-12-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2776859,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24016737937927246 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= 2776859 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29636316, 'dashboard_result_id': 18637895, '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_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29636749, 'dashboard_result_id': 18637896, '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_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29637002, 'dashboard_result_id': 18637897, '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_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29637369, 'dashboard_result_id': 18637898, '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_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29638070, 'dashboard_result_id': 18637899, '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_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29638385, 'dashboard_result_id': 18637900, '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_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29638771, 'dashboard_result_id': 18637901, '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_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}"}, {'dashboat_entry_day': 2776859, 'dashboard_run_id': 2783895, 'mtr_portfolio_id': 29639188, 'dashboard_result_id': 18637902, '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_P29639188_23-12-2025_02_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, '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 = 29636316 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': 4260623, 'mtr_portfolio_id': 29636316, 'created_at': datetime.datetime(2025, 12, 23, 0, 20, 58), 'result': '0.040700966366868756', 'result_long': None, 'result_double': None}] Qualite : 0.040700966366868756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_00_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636316 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_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, 'pht': 3726}}" where mtr_portfolio_id = 29636316 and dashboard_run_id = 2783895 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`=29636316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637895, 0.040700966366868756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636316_23-12-2025_00_20_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29636330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636332, '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 = 29636749 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': 4260664, 'mtr_portfolio_id': 29636749, 'created_at': datetime.datetime(2025, 12, 23, 0, 33, 29), 'result': '0.19526065960367417', 'result_long': None, 'result_double': None}] Qualite : 0.19526065960367417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29636749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_00_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29636749 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_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, 'pht': 3726}}" where mtr_portfolio_id = 29636749 and dashboard_run_id = 2783895 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`=29636749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637896, 0.19526065960367417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29636749_23-12-2025_00_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29636751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29636752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29636753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29636754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29636755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29636756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29636757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29636758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29636759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29636760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29636761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29636762, '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 = 29637002 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': 4260689, 'mtr_portfolio_id': 29637002, 'created_at': datetime.datetime(2025, 12, 23, 0, 46, 58), 'result': '0.06958774364948957', 'result_long': None, 'result_double': None}] Qualite : 0.06958774364948957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637002 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_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, 'pht': 3726}}" where mtr_portfolio_id = 29637002 and dashboard_run_id = 2783895 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`=29637002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637897, 0.06958774364948957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637002_23-12-2025_00_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29637006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637017, '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 = 29637369 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': 4260736, 'mtr_portfolio_id': 29637369, 'created_at': datetime.datetime(2025, 12, 23, 1, 3, 29), 'result': '0.0429940679226893', 'result_long': None, 'result_double': None}] Qualite : 0.0429940679226893 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29637369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_01_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29637369 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_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, 'pht': 3726}}" where mtr_portfolio_id = 29637369 and dashboard_run_id = 2783895 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`=29637369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637898, 0.0429940679226893, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29637369_23-12-2025_01_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29637374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29637375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29637376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29637377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29637378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29637379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29637380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29637381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29637382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29637383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29637384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29637385, '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 = 29638070 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': 4260869, 'mtr_portfolio_id': 29638070, 'created_at': datetime.datetime(2025, 12, 23, 1, 48, 58), 'result': '0.0407676713805383', 'result_long': None, 'result_double': None}] Qualite : 0.0407676713805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638070 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_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, 'pht': 3726}}" where mtr_portfolio_id = 29638070 and dashboard_run_id = 2783895 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`=29638070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637899, 0.0407676713805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638070_23-12-2025_01_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29638072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638083, '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 = 29638385 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': 4260911, 'mtr_portfolio_id': 29638385, 'created_at': datetime.datetime(2025, 12, 23, 2, 3, 29), 'result': '0.04063360586330179', 'result_long': None, 'result_double': None}] Qualite : 0.04063360586330179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_02_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638385 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_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, 'pht': 3726}}" where mtr_portfolio_id = 29638385 and dashboard_run_id = 2783897 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`=29638385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637900, 0.04063360586330179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638385_23-12-2025_02_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638401, '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 = 29638771 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': 4260986, 'mtr_portfolio_id': 29638771, 'created_at': datetime.datetime(2025, 12, 23, 2, 16, 59), 'result': '0.06310366418016748', 'result_long': None, 'result_double': None}] Qualite : 0.06310366418016748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29638771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29638771 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_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, 'pht': 3726}}" where mtr_portfolio_id = 29638771 and dashboard_run_id = 2783897 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`=29638771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637901, 0.06310366418016748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29638771_23-12-2025_02_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29638796, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29638797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29638798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29638799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29638800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29638801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29638802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29638803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29638804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29638805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29638806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29638807, '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 = 29639188 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': 4261044, 'mtr_portfolio_id': 29639188, 'created_at': datetime.datetime(2025, 12, 23, 2, 33), 'result': '0.05262910396961983', 'result_long': None, 'result_double': None}] Qualite : 0.05262910396961983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29639188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29639188 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_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, 'pht': 3726}}" where mtr_portfolio_id = 29639188 and dashboard_run_id = 2783897 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`=29639188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18637902, 0.05262910396961983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29639188_23-12-2025_02_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29639196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29639197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29639198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29639199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29639201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29639203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29639204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29639205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29639206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29639207, '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 (29636316,29636749,29637002,29637369,29638070,29638385,29638771,29639188) result : ((1400619724,), (1400619761,), (1400619795,), (1400619831,), (1400620155,), (1400620158,), (1400620162,), (1400620784,), (1400620848,), (1400620936,), (1400620977,), (1400621034,), (1400621529,), (1400621566,), (1400621601,), (1400621636,), (1400621861,), (1400621863,), (1400621865,), (1400621868,), (1400621872,), (1400621875,), (1400621941,), (1400621976,), (1400622114,), (1400622141,), (1400622147,), (1400622251,), (1400622252,), (1400622253,), (1400622255,), (1400622259,), (1400622277,), (1400622278,), (1400622279,), (1400622280,), (1400622296,), (1400622298,), (1400622428,), (1400622430,), (1400622432,), (1400622437,), (1400622471,), (1400622495,), (1400622678,), (1400622679,), (1400622682,), (1400622714,), (1400622732,), (1400622737,), (1400622771,), (1400622774,), (1400623012,), (1400623007,), (1400623010,), (1400623033,), (1400623035,), (1400623053,), (1400623054,), (1400623217,), (1400623220,), (1400623223,), (1400623243,), (1400623246,), (1400623247,), (1400623249,), (1400623265,), (1400623267,), (1400623268,), (1400623270,), (1400623273,), (1400623310,), (1400623313,), (1400623339,), (1400623341,), (1400623344,), (1400623335,), (1400623337,), (1400623338,), (1400623362,), (1400623364,), (1400623365,), (1400623382,), (1400623384,), (1400623386,), (1400623388,), (1400623392,), (1400623395,), (1400623411,), (1400623413,), (1400623414,), (1400623428,), (1400623454,), (1400623455,), (1400623456,), (1400623458,), (1400623472,), (1400623474,), (1400623476,), (1400623494,), (1400623495,), (1400623496,), (1400623497,), (1400623500,), (1400623513,), (1400623514,), (1400623535,), (1400623536,), (1400623557,), (1400623559,), (1400623561,), (1400623565,), (1400623568,), (1400623570,), (1400623576,), (1400623579,), (1400623583,), (1400623584,), (1400623586,), (1400623588,), (1400623601,), (1400623604,), (1400623606,), (1400623609,), (1400623612,), (1400623620,), (1400623622,), (1400623623,), (1400623629,), (1400623632,), (1400623640,), (1400623643,), (1400623644,), (1400623650,), (1400623652,), (1400623655,), (1400623688,), (1400623686,), (1400623702,), (1400623703,), (1400623704,), (1400623706,), (1400623730,), (1400623731,), (1400623732,), (1400623734,), (1400623737,), (1400623754,), (1400623756,), (1400623758,), (1400623760,), (1400623779,), (1400623797,), (1400623799,), (1400623800,), (1400623801,), (1400623803,), (1400623804,), (1400623821,), (1400623822,), (1400623823,), (1400623825,), (1400623838,), (1400623839,), (1400623840,), (1400623842,), (1400623865,), (1400623867,), (1400623870,), (1400623871,), (1400623889,), (1400623891,), (1400623892,), (1400623893,), (1400623910,), (1400623911,), (1400623912,), (1400623929,), (1400623931,), (1400623934,), (1400623936,), (1400623955,), (1400623958,), (1400623959,), (1400623982,), (1400623986,), (1400623990,), (1400623995,), (1400623999,), (1400624341,), (1400624377,), (1400624410,), (1400624431,), (1400624434,), (1400624437,), (1400627807,), (1400627824,), (1400627825,), (1400627826,), (1400627844,), (1400627846,), (1400627848,), (1400627865,), (1400627867,), (1400627868,), (1400627869,), (1400627872,), (1400627887,), (1400627888,), (1400627889,), (1400627890,), (1400627895,), (1400627917,), (1400627918,), (1400627919,), (1400627941,), (1400627943,), (1400627945,), (1400627949,), (1400627952,), (1400627954,), (1400627974,), (1400627978,), (1400627979,), (1400627980,), (1400627983,), (1400627986,), (1400627998,), (1400627999,), (1400628021,), (1400628023,), (1400628025,), (1400628027,), (1400628043,), (1400628044,), (1400628045,), (1400628046,), (1400628073,), (1400628074,), (1400628075,), (1400628091,), (1400628097,), (1400628099,), (1400628103,), (1400628106,), (1400628129,), (1400628122,), (1400628124,), (1400628125,), (1400628126,), (1400628143,), (1400628144,), (1400628183,), (1400628184,), (1400628185,), (1400628208,), (1400628209,), (1400628210,), (1400628212,), (1400628239,), (1400628241,), (1400628263,), (1400628264,), (1400628265,), (1400628268,), (1400628271,), (1400628275,), (1400628289,), (1400628290,), (1400628291,), (1400628307,), (1400628309,), (1400628311,), (1400628312,), (1400628337,), (1400628338,), (1400628339,), (1400628340,), (1400628359,), (1400628362,), (1400628393,), (1400628396,), (1400628398,), (1400628400,), (1400628404,), (1400628418,), (1400628420,), (1400628421,), (1400628454,), (1400628457,), (1400628497,), (1400628501,), (1400628504,), (1400628509,), (1400628513,), (1400628685,), (1400628719,), (1400628755,), (1400628985,), (1400629050,), (1400629124,), (1400629186,), (1400629255,), (1400628574,), (1400628610,), (1400628644,), (1400629551,), (1400629649,), (1400629717,), (1400629789,), (1400629870,), (1400630303,), (1400630307,), (1400630310,), (1400630317,), (1400630319,), (1400630332,), (1400630453,), (1400630480,), (1400630485,), (1400630487,), (1400630634,), (1400630636,), (1400630692,), (1400630700,), (1400630759,), (1400630768,), (1400630866,), (1400630869,), (1400631220,), (1400631274,), (1400631308,), (1400631837,), (1400631840,), (1400631843,), (1400631846,), (1400631991,), (1400631994,), (1400632005,), (1400632039,), (1400632154,), (1400632155,), (1400632157,), (1400632159,), (1400632175,), (1400632177,), (1400632180,), (1400632183,), (1400632186,), (1400632189,), (1400632204,), (1400632207,), (1400632210,), (1400632212,), (1400632215,), (1400633129,), (1400633132,), (1400633134,), (1400633163,), (1400633165,), (1400633166,), (1400633168,), (1400633616,), (1400633640,), (1400633672,), (1400633695,), (1400633704,), (1400633707,), (1400633733,), (1400633756,), (1400633758,), (1400633760,), (1400633764,), (1400633797,), (1400633792,), (1400633795,), (1400633813,), (1400633815,), (1400633817,), (1400633820,), (1400633824,), (1400633839,), (1400633842,), (1400633845,), (1400633866,), (1400633868,), (1400633870,), (1400633872,), (1400633874,), (1400633904,), (1400633907,), (1400633909,), (1400633912,), (1400633916,), (1400633919,), (1400633932,), (1400633935,), (1400633938,), (1400633941,), (1400633944,), (1400633946,), (1400633949,), (1400633951,), (1400633953,), (1400633956,), (1400633962,), (1400633964,), (1400633966,), (1400633986,), (1400633988,), (1400633993,), (1400633997,), (1400634018,), (1400634021,), (1400634024,), (1400634027,), (1400634037,), (1400634040,), (1400634062,), (1400634064,), (1400634066,), (1400634068,), (1400634090,), (1400634092,), (1400634094,), (1400634097,), (1400634125,), (1400634128,), (1400634131,), (1400634133,), (1400634137,), (1400634156,), (1400634158,), (1400634189,), (1400634192,), (1400634194,), (1400634232,), (1400634235,), (1400634244,), (1400634246,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23122025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29639188]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400634246, 1400634244, 1400634235, 1400634232] map_info['map_portfolio_photo'] : {29639188: [1400634246, 1400634244, 1400634235, 1400634232, 1400634194, 1400634192, 1400634189, 1400634158, 1400634156, 1400634137, 1400634133, 1400634131, 1400634128, 1400634125, 1400634097, 1400634094, 1400634092, 1400634090, 1400634068, 1400634066, 1400634064, 1400634062, 1400634040, 1400634037, 1400634027, 1400634024, 1400634021, 1400634018, 1400633997, 1400633993, 1400633988, 1400633986, 1400633966, 1400633964, 1400633962, 1400633956, 1400633953, 1400633951, 1400633949, 1400633946, 1400633944, 1400633941, 1400633938, 1400633935, 1400633932, 1400633919, 1400633916, 1400633912, 1400633909, 1400633907, 1400633904, 1400633874, 1400633872, 1400633870, 1400633868, 1400633866, 1400633845, 1400633842, 1400633839, 1400633824, 1400633820, 1400633817, 1400633815, 1400633813, 1400633795, 1400633792]} final : True mtd_id 4302 list_pids : [1400634246, 1400634244, 1400634235, 1400634232] Looping around the photos to save general results len do output : 1 /29639188Didn'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, '4261044') ('4302', '29639188', '1400634246', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044') ('4302', None, None, None, None, None, None, None, '4261044') ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '29639188', 'None', None, None, None, None, '4261044'), ('4302', '29639188', '1400634246', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634244', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634235', None, None, None, None, None, '4261044'), ('4302', '29639188', '1400634232', None, None, None, None, None, '4261044')] time used for this insertion : 0.016987085342407227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8963994979858398 time spend to save output : 0.017183780670166016 total time spend for step 5 : 0.9135832786560059 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 (4261044) 2.12user 2.48system 0:13.35elapsed 34%CPU (0avgtext+0avgdata 164848maxresident)k 168inputs+13608outputs (0major+67053minor)pagefaults 0swaps