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 : 1601242 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 (4143110) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4143110) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037953 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4143110'] with mtr_portfolio_ids : ['29037953'] and first list_photo_ids : [] new path : /proc/1601242/ Name: python3 Umask: 0002 State: R (running) Tgid: 1601242 Ngid: 0 Pid: 1601242 PPid: 1601241 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1601242 NSpid: 1601242 NSpgid: 1599702 NSsid: 1599702 VmPeak: 1113408 kB VmSize: 1113384 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105152 kB VmRSS: 105152 kB RssAnon: 66364 kB RssFile: 38788 kB RssShmem: 0 kB VmData: 872112 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 636 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: 42 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1601242', 'Ngid': '0', 'Pid': '1601242', 'PPid': '1601241', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1601242', 'NSpid': '1601242', 'NSpgid': '1599702', 'NSsid': '1599702', 'VmPeak': '1113408 kB', 'VmSize': '1113384 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105152 kB', 'VmRSS': '105152 kB', 'RssAnon': '66364 kB', 'RssFile': '38788 kB', 'RssShmem': '0 kB', 'VmData': '872112 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '636 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': '42', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '1601242', '1113408', '0', '1113384', '872112', '105152', b'', 'marlene', '4143110') 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 (29037953) 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 (4143110 ) ) 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 (29037953) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397166716, 'portfolio_id': 29037953}, {'photo_id': 1397166713, 'portfolio_id': 29037953}, {'photo_id': 1397166709, 'portfolio_id': 29037953}, {'photo_id': 1397166705, 'portfolio_id': 29037953}, {'photo_id': 1397166702, 'portfolio_id': 29037953}, {'photo_id': 1397166700, 'portfolio_id': 29037953}, {'photo_id': 1397166361, 'portfolio_id': 29037953}, {'photo_id': 1397166323, 'portfolio_id': 29037953}, {'photo_id': 1397166288, 'portfolio_id': 29037953}, {'photo_id': 1397166264, 'portfolio_id': 29037953}, {'photo_id': 1397166263, 'portfolio_id': 29037953}, {'photo_id': 1397166228, 'portfolio_id': 29037953}, {'photo_id': 1397166224, 'portfolio_id': 29037953}, {'photo_id': 1397166222, 'portfolio_id': 29037953}, {'photo_id': 1397166220, 'portfolio_id': 29037953}, {'photo_id': 1397166218, 'portfolio_id': 29037953}, {'photo_id': 1397166164, 'portfolio_id': 29037953}, {'photo_id': 1397166143, 'portfolio_id': 29037953}, {'photo_id': 1397166133, 'portfolio_id': 29037953}, {'photo_id': 1397166129, 'portfolio_id': 29037953}, {'photo_id': 1397166100, 'portfolio_id': 29037953}, {'photo_id': 1397166021, 'portfolio_id': 29037953}, {'photo_id': 1397166017, 'portfolio_id': 29037953}, {'photo_id': 1397166009, 'portfolio_id': 29037953}, {'photo_id': 1397165972, 'portfolio_id': 29037953}, {'photo_id': 1397165935, 'portfolio_id': 29037953}, {'photo_id': 1397165725, 'portfolio_id': 29037953}, {'photo_id': 1397165692, 'portfolio_id': 29037953}, {'photo_id': 1397165582, 'portfolio_id': 29037953}, {'photo_id': 1397165579, 'portfolio_id': 29037953}, {'photo_id': 1397165549, 'portfolio_id': 29037953}, {'photo_id': 1397165512, 'portfolio_id': 29037953}, {'photo_id': 1397165477, 'portfolio_id': 29037953}, {'photo_id': 1397165443, 'portfolio_id': 29037953}, {'photo_id': 1397165408, 'portfolio_id': 29037953}, {'photo_id': 1397165406, 'portfolio_id': 29037953}, {'photo_id': 1397165404, 'portfolio_id': 29037953}, {'photo_id': 1397165395, 'portfolio_id': 29037953}, {'photo_id': 1397165390, 'portfolio_id': 29037953}, {'photo_id': 1397165388, 'portfolio_id': 29037953}, {'photo_id': 1397164956, 'portfolio_id': 29037953}, {'photo_id': 1397164925, 'portfolio_id': 29037953}, {'photo_id': 1397164888, 'portfolio_id': 29037953}, {'photo_id': 1397164855, 'portfolio_id': 29037953}, {'photo_id': 1397164848, 'portfolio_id': 29037953}, {'photo_id': 1397164845, 'portfolio_id': 29037953}, {'photo_id': 1397164841, 'portfolio_id': 29037953}, {'photo_id': 1397164837, 'portfolio_id': 29037953}, {'photo_id': 1397164834, 'portfolio_id': 29037953}, {'photo_id': 1397164832, 'portfolio_id': 29037953}, {'photo_id': 1397164811, 'portfolio_id': 29037953}, {'photo_id': 1397164806, 'portfolio_id': 29037953}, {'photo_id': 1397164802, 'portfolio_id': 29037953}, {'photo_id': 1397164799, 'portfolio_id': 29037953}, {'photo_id': 1397164797, 'portfolio_id': 29037953}, {'photo_id': 1397164772, 'portfolio_id': 29037953}, {'photo_id': 1397164769, 'portfolio_id': 29037953}, {'photo_id': 1397164767, 'portfolio_id': 29037953}, {'photo_id': 1397164766, 'portfolio_id': 29037953}, {'photo_id': 1397164718, 'portfolio_id': 29037953}, {'photo_id': 1397164706, 'portfolio_id': 29037953}, {'photo_id': 1397164700, 'portfolio_id': 29037953}, {'photo_id': 1397164698, 'portfolio_id': 29037953}, {'photo_id': 1397164696, 'portfolio_id': 29037953}, {'photo_id': 1397164694, 'portfolio_id': 29037953}, {'photo_id': 1397164692, 'portfolio_id': 29037953}, {'photo_id': 1397164691, 'portfolio_id': 29037953}, {'photo_id': 1397164327, 'portfolio_id': 29037953}, {'photo_id': 1397164321, 'portfolio_id': 29037953}, {'photo_id': 1397164284, 'portfolio_id': 29037953}, {'photo_id': 1397164230, 'portfolio_id': 29037953}, {'photo_id': 1397164174, 'portfolio_id': 29037953}, {'photo_id': 1397164138, 'portfolio_id': 29037953}, {'photo_id': 1397163989, 'portfolio_id': 29037953}, {'photo_id': 1397163918, 'portfolio_id': 29037953}, {'photo_id': 1397163854, 'portfolio_id': 29037953}, {'photo_id': 1397163781, 'portfolio_id': 29037953}] map_portfolio_id_photo_id: {29037953: [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700, 1397166361, 1397166323, 1397166288, 1397166264, 1397166263, 1397166228, 1397166224, 1397166222, 1397166220, 1397166218, 1397166164, 1397166143, 1397166133, 1397166129, 1397166100, 1397166021, 1397166017, 1397166009, 1397165972, 1397165935, 1397165725, 1397165692, 1397165582, 1397165579, 1397165549, 1397165512, 1397165477, 1397165443, 1397165408, 1397165406, 1397165404, 1397165395, 1397165390, 1397165388, 1397164956, 1397164925, 1397164888, 1397164855, 1397164848, 1397164845, 1397164841, 1397164837, 1397164834, 1397164832, 1397164811, 1397164806, 1397164802, 1397164799, 1397164797, 1397164772, 1397164769, 1397164767, 1397164766, 1397164718, 1397164706, 1397164700, 1397164698, 1397164696, 1397164694, 1397164692, 1397164691, 1397164327, 1397164321, 1397164284, 1397164230, 1397164174, 1397164138, 1397163989, 1397163918, 1397163854, 1397163781]} ##### 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.019550323486328125 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 1 07:14: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 (29037953) 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 : 29037953 get user id for portfolio 29037953 get sub ptf for main ptf 29037953, type 3726 and hashtags ['environnement', 'Carton_gris', 'kraft', 'Carton_brun', 'papier', 'cartonnette', 'plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'flou', 'mal_croppe', 'metal'] 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`=29037953 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','kraft','Carton_brun','papier','cartonnette','plastique','autre_refus','Teint_Dans_La_Masse','flou','mal_croppe','metal')) 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`=29037953 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','kraft','Carton_brun','papier','cartonnette','plastique','autre_refus','Teint_Dans_La_Masse','flou','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 29037953, 'sub_port_id': 29037985, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734757, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'metal': {'main_port_id': 29037953, 'sub_port_id': 29037986, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734758, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'flou': {'main_port_id': 29037953, 'sub_port_id': 29037987, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734759, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'environnement': {'main_port_id': 29037953, 'sub_port_id': 29037988, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734760, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29037953, 'sub_port_id': 29037989, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734761, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'cartonnette': {'main_port_id': 29037953, 'sub_port_id': 29037990, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734762, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'plastique': {'main_port_id': 29037953, 'sub_port_id': 29037991, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734763, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'mal_croppe': {'main_port_id': 29037953, 'sub_port_id': 29037992, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734764, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'papier': {'main_port_id': 29037953, 'sub_port_id': 29037993, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734765, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'Carton_brun': {'main_port_id': 29037953, 'sub_port_id': 29037994, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734766, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'Carton_gris': {'main_port_id': 29037953, 'sub_port_id': 29037995, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734767, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}, 'kraft': {'main_port_id': 29037953, 'sub_port_id': 29037996, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734768, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037985 , 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=29037953 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 (29037985) result : ((1397166248,), (1397166249,), (1397166959,), (1397166960,), (1397166962,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037986 , 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=29037953 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 (29037986) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037987 , 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=29037953 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 (29037987) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037988 , 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=29037953 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 (29037988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037989 , 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=29037953 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 (29037989) result : ((1397164818,), (1397166166,), (1397166167,), (1397166168,), (1397166169,), (1397166170,), (1397166171,), (1397166172,), (1397166242,), (1397166244,), (1397166245,), (1397166246,), (1397166956,), (1397166957,), (1397166958,), (1397166975,), (1397166976,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037990 , 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=29037953 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 (29037990) result : ((1397166176,), (1397166177,), (1397166254,), (1397166970,), (1397166971,), (1397166972,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037991 , 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=29037953 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 (29037991) result : ((1397166187,), (1397166189,), (1397166706,), (1397166982,), (1397166984,), (1397166986,), (1397166988,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037992 , 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=29037953 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 (29037992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037993 , 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=29037953 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 (29037993) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037994 , 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=29037953 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 (29037994) result : ((1397165623,), (1397165626,), (1397166256,), (1397166257,), (1397166977,), (1397166978,), (1397166979,), (1397166980,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037995 , 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=29037953 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 (29037995) result : ((1397164819,), (1397165602,), (1397166173,), (1397166175,), (1397166251,), (1397166252,), (1397166253,), (1397166704,), (1397166966,), (1397166967,), (1397166968,), (1397166981,), (1397166983,), (1397166985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29037996 , 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=29037953 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 (29037996) result : ((1397166707,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29037953) result : ((1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) 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 (1397166100,1397166700,1397164700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29037953 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','kraft','Carton_brun','papier','cartonnette','plastique','autre_refus','Teint_Dans_La_Masse','flou','mal_croppe','metal')) 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`=29037953 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_gris','kraft','Carton_brun','papier','cartonnette','plastique','autre_refus','Teint_Dans_La_Masse','flou','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 29037953, 'sub_port_id': 29037998, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734769, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'metal': {'main_port_id': 29037953, 'sub_port_id': 29037999, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734770, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'flou': {'main_port_id': 29037953, 'sub_port_id': 29038000, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734771, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'environnement': {'main_port_id': 29037953, 'sub_port_id': 29038001, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734772, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 29037953, 'sub_port_id': 29038002, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734773, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'cartonnette': {'main_port_id': 29037953, 'sub_port_id': 29038003, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734774, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'plastique': {'main_port_id': 29037953, 'sub_port_id': 29038004, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734775, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'mal_croppe': {'main_port_id': 29037953, 'sub_port_id': 29038005, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734776, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'papier': {'main_port_id': 29037953, 'sub_port_id': 29038006, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734777, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'Carton_brun': {'main_port_id': 29037953, 'sub_port_id': 29038007, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734778, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'Carton_gris': {'main_port_id': 29037953, 'sub_port_id': 29038008, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734779, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}, 'kraft': {'main_port_id': 29037953, 'sub_port_id': 29038009, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19734780, 'last_updated_at': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 1, 7, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 1, 7, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29037998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29037999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29038009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29037996 lien utilise dans velours : https://marlene.fotonower.com/velours/29037998,29037999,29038000,29038001,29038002,29038003,29038004,29038005,29038006,29038007,29038008,29038009?tags=autre_refus,metal,flou,environnement,Teint_Dans_La_Masse,cartonnette,plastique,mal_croppe,papier,Carton_brun,Carton_gris,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29037953]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] map_info['map_portfolio_photo'] : {29037953: [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700, 1397166361, 1397166323, 1397166288, 1397166264, 1397166263, 1397166228, 1397166224, 1397166222, 1397166220, 1397166218, 1397166164, 1397166143, 1397166133, 1397166129, 1397166100, 1397166021, 1397166017, 1397166009, 1397165972, 1397165935, 1397165725, 1397165692, 1397165582, 1397165579, 1397165549, 1397165512, 1397165477, 1397165443, 1397165408, 1397165406, 1397165404, 1397165395, 1397165390, 1397165388, 1397164956, 1397164925, 1397164888, 1397164855, 1397164848, 1397164845, 1397164841, 1397164837, 1397164834, 1397164832, 1397164811, 1397164806, 1397164802, 1397164799, 1397164797, 1397164772, 1397164769, 1397164767, 1397164766, 1397164718, 1397164706, 1397164700, 1397164698, 1397164696, 1397164694, 1397164692, 1397164691, 1397164327, 1397164321, 1397164284, 1397164230, 1397164174, 1397164138, 1397163989, 1397163918, 1397163854, 1397163781]} final : False mtd_id 4302 list_pids : [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] Looping around the photos to save general results len do output : 1 /29037953. 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, '4143110') ('4302', '29037953', '1397166716', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '29037953', "{'autre_refus': 29037985, 'metal': 29037986, 'flou': 29037987, 'environnement': 29037988, 'Teint_Dans_La_Masse': 29037989, 'cartonnette': 29037990, 'plastique': 29037991, 'mal_croppe': 29037992, 'papier': 29037993, 'Carton_brun': 29037994, 'Carton_gris': 29037995, 'kraft': 29037996}", None, None, None, None, '4143110'), ('4302', '29037953', '1397166716', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110')] time used for this insertion : 0.017450332641601562 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5884120464324951 time spend to save output : 0.0177152156829834 total time spend for step 1 : 0.6061272621154785 step2:final Mon Dec 1 07:14: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 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 (29037953) 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 29037953 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397163989,1397163918,1397163854,1397163781,1397164327,1397164321,1397164284,1397164230,1397164174,1397164138,1397164718,1397164706,1397164700,1397164698,1397164696,1397164694,1397164692,1397164691,1397164772,1397164769,1397164767,1397164766,1397165725,1397164811,1397164956,1397165692,1397164806,1397164925,1397165582,1397164888,1397164802,1397164855,1397164799,1397165408,1397164848,1397164797,1397164845,1397164841,1397164837,1397164834,1397165406,1397164832,1397165404,1397165395,1397165390,1397165388,1397165579,1397165549,1397165512,1397165477,1397165443,1397166021,1397166017,1397166009,1397165972,1397165935,1397166164,1397166143,1397166133,1397166129,1397166100,1397166228,1397166224,1397166222,1397166220,1397166218,1397166361,1397166323,1397166288,1397166264,1397166263,1397166716,1397166713,1397166709,1397166705,1397166702,1397166700); 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([29037953]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} new output for save of step final : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] map_info['map_portfolio_photo'] : {29037953: [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700, 1397166361, 1397166323, 1397166288, 1397166264, 1397166263, 1397166228, 1397166224, 1397166222, 1397166220, 1397166218, 1397166164, 1397166143, 1397166133, 1397166129, 1397166100, 1397166021, 1397166017, 1397166009, 1397165972, 1397165935, 1397165725, 1397165692, 1397165582, 1397165579, 1397165549, 1397165512, 1397165477, 1397165443, 1397165408, 1397165406, 1397165404, 1397165395, 1397165390, 1397165388, 1397164956, 1397164925, 1397164888, 1397164855, 1397164848, 1397164845, 1397164841, 1397164837, 1397164834, 1397164832, 1397164811, 1397164806, 1397164802, 1397164799, 1397164797, 1397164772, 1397164769, 1397164767, 1397164766, 1397164718, 1397164706, 1397164700, 1397164698, 1397164696, 1397164694, 1397164692, 1397164691, 1397164327, 1397164321, 1397164284, 1397164230, 1397164174, 1397164138, 1397163989, 1397163918, 1397163854, 1397163781]} final : False mtd_id 4302 list_pids : [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] Looping around the photos to save general results len do output : 6 /1397166716.Didn't retrieve data . /1397166713.Didn't retrieve data . /1397166709.Didn't retrieve data . /1397166705.Didn't retrieve data . /1397166702.Didn't retrieve data . /1397166700.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, '4143110') ('4302', '29037953', '1397166716', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '29037953', '1397166716', '0.04115871829102241', None, None, None, None, '4143110'), ('4302', '29037953', '1397166713', '0.04115871829102241', None, None, None, None, '4143110'), ('4302', '29037953', '1397166709', '0.04115871829102241', None, None, None, None, '4143110'), ('4302', '29037953', '1397166705', '0.04115871829102241', None, None, None, None, '4143110'), ('4302', '29037953', '1397166702', '0.04115871829102241', None, None, None, None, '4143110'), ('4302', '29037953', '1397166700', '0.04115871829102241', None, None, None, None, '4143110')] time used for this insertion : 0.014412403106689453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08127403259277344 time spend to save output : 0.01478719711303711 total time spend for step 2 : 0.09606122970581055 step3:velours_tree Mon Dec 1 07:14:59 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 : {29037953: [{'autre_refus': 29037985, 'metal': 29037986, 'flou': 29037987, 'environnement': 29037988, 'Teint_Dans_La_Masse': 29037989, 'cartonnette': 29037990, 'plastique': 29037991, 'mal_croppe': 29037992, 'papier': 29037993, 'Carton_brun': 29037994, 'Carton_gris': 29037995, 'kraft': 29037996}]} input_args_next_step : {29037953: ()} output_args : {29037953: [{'autre_refus': 29037985, 'metal': 29037986, 'flou': 29037987, 'environnement': 29037988, 'Teint_Dans_La_Masse': 29037989, 'cartonnette': 29037990, 'plastique': 29037991, 'mal_croppe': 29037992, 'papier': 29037993, 'Carton_brun': 29037994, 'Carton_gris': 29037995, 'kraft': 29037996}]} args : 29037953 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 : ({'autre_refus': 29037985, 'metal': 29037986, 'flou': 29037987, 'environnement': 29037988, 'Teint_Dans_La_Masse': 29037989, 'cartonnette': 29037990, 'plastique': 29037991, 'mal_croppe': 29037992, 'papier': 29037993, 'Carton_brun': 29037994, 'Carton_gris': 29037995, 'kraft': 29037996},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29037953) 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([29037953]) 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.24570441246032715 time spend to save output : 3.933906555175781e-05 total time spend for step 3 : 0.2457437515258789 step4:send_mail_cod Mon Dec 1 07:14:59 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 : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} input_args_next_step : {1397166716: ()} output_args : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} args : 1397166716 depend.output_id : 0 input_args_next_step : {1397166716: ('0.04115871829102241',), 1397166713: ()} output_args : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} args : 1397166713 depend.output_id : 0 input_args_next_step : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ()} output_args : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} args : 1397166709 depend.output_id : 0 input_args_next_step : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ()} output_args : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} args : 1397166705 depend.output_id : 0 input_args_next_step : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ()} output_args : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} args : 1397166702 depend.output_id : 0 input_args_next_step : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ()} output_args : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',)} args : 1397166700 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 : {29037953: [{'autre_refus': 29037985, 'metal': 29037986, 'flou': 29037987, 'environnement': 29037988, 'Teint_Dans_La_Masse': 29037989, 'cartonnette': 29037990, 'plastique': 29037991, 'mal_croppe': 29037992, 'papier': 29037993, 'Carton_brun': 29037994, 'Carton_gris': 29037995, 'kraft': 29037996}]} input_args_next_step : {1397166716: ('0.04115871829102241',), 1397166713: ('0.04115871829102241',), 1397166709: ('0.04115871829102241',), 1397166705: ('0.04115871829102241',), 1397166702: ('0.04115871829102241',), 1397166700: ('0.04115871829102241',), 29037953: ()} output_args : {29037953: [{'autre_refus': 29037985, 'metal': 29037986, 'flou': 29037987, 'environnement': 29037988, 'Teint_Dans_La_Masse': 29037989, 'cartonnette': 29037990, 'plastique': 29037991, 'mal_croppe': 29037992, 'papier': 29037993, 'Carton_brun': 29037994, 'Carton_gris': 29037995, 'kraft': 29037996}]} args : 29037953 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 :7, first value : ('0.04115871829102241',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29037953) 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 (1397166716,1397166713,1397166709,1397166705,1397166702,1397166700) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397166700 begin to download photo : 1397166705 begin to download photo : 1397166713 download finish for photo 1397166713 begin to download photo : 1397166716 download finish for photo 1397166700 begin to download photo : 1397166702 download finish for photo 1397166705 begin to download photo : 1397166709 download finish for photo 1397166716 download finish for photo 1397166709 download finish for photo 1397166702 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P29037953_01-12-2025_07_14_59.pdf 29037985 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=29037985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397166248: '1764569467_2283506_1397164321_96a887a6fb0f122872af3ab1999fc077_rle_crop_4053343735_0.png', 1397166249: '1764569467_2283506_1397164174_35e4b1f9d985da7174f6a7c0bac45453_rle_crop_4053343843_0.png', 1397166959: '1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348585_0.png', 1397166960: '1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348607_0.png', 1397166962: '1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348600_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/7392f921e01e0566f40d8f5a9c252ca0_10953558.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/fb46ebf5ae001fa533e4522c598a42bc_32941551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/0d896f6bcb7dfe498267fc21e7e1e91d_91699932.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8e7dfbe8767bb801b24f79fc9a6b95d5_57121811.png change filename to text .imagette290379851764569699/ imagette290379851764569699/1764569467_2283506_1397164174_35e4b1f9d985da7174f6a7c0bac45453_rle_crop_4053343843_0.png.png imagette290379851764569699/1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348607_0.png.png imagette290379851764569699/1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348600_0.png.png imagette290379851764569699/1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348585_0.png.png imagette290379851764569699/1764569467_2283506_1397164321_96a887a6fb0f122872af3ab1999fc077_rle_crop_4053343735_0.png.png imagette290379861764569700/ imagette290379871764569700/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1534be78dca9871faec43d66377aa09b_80649794.png imagette290379851764569699 29037986 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=29037986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290379861764569700 29037987 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=29037987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290379871764569700 29037990 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=29037990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397166176: '1764569368_2279242_1397164696_7da5decf9509d88ed971b89c70851a5c_rle_crop_4053339864_0.png', 1397166177: '1764569368_2279242_1397164694_aae4a6027d5e1c73560774fc9c15ce49_rle_crop_4053339876_0.png', 1397166254: '1764569467_2283506_1397164138_cf82d2e6a6f8dc2aa6fe8982a0017a49_rle_crop_4053343859_0.png', 1397166970: '1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348563_0.png', 1397166971: '1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348561_0.png', 1397166972: '1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ea88c3dfeeab059f877554b12a48654f_5804623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ea88c3dfeeab059f877554b12a48654f_82971056.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/77b2e79578a8e7f4908e255279293fa7_52156296.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/24dcff8e88bef7b0fc7185a769fef341_51106978.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/9f0e6b4afe5efe9f9ba9eae1dd2e4c69_61461942.png change filename to text .imagette290379901764569700/ imagette290379901764569700/1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348561_0.png.png imagette290379901764569700/1764569467_2283506_1397164138_cf82d2e6a6f8dc2aa6fe8982a0017a49_rle_crop_4053343859_0.png.png imagette290379901764569700/1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348581_0.png.png imagette290379901764569700/1764569368_2279242_1397164696_7da5decf9509d88ed971b89c70851a5c_rle_crop_4053339864_0.png.png imagette290379901764569700/1764569368_2279242_1397164694_aae4a6027d5e1c73560774fc9c15ce49_rle_crop_4053339876_0.png.png imagette290379901764569700/1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348563_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/855540a595028f3ba8b71e920f49cec4_2803536.png imagette290379901764569700 29037991 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=29037991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397166187: '1764569368_2279242_1397164696_7da5decf9509d88ed971b89c70851a5c_rle_crop_4053339873_0.png', 1397166189: '1764569368_2279242_1397164694_aae4a6027d5e1c73560774fc9c15ce49_rle_crop_4053339885_0.png', 1397166706: '1764569546_2286681_1397166129_ddf60119a66ce3f3092ab29324478347_rle_crop_4053344022_0.png', 1397166982: '1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348566_0.png', 1397166984: '1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348603_0.png', 1397166986: '1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348599_0.png', 1397166988: '1764569605_2288875_1397166017_599a1f8cf57590b01ec9e84d8eb198ed_rle_crop_4053348644_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/488024fbfafe3842332d5d62d553d77e_62586174.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/488024fbfafe3842332d5d62d553d77e_68701129.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/3684cb1ebfd4b5c4fbad7bc1187bcb5c_91416.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6b371e2b55a35deb809c6e0fea04bc94_75397862.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/ea54c6dbaf60e3628a4e9362b8e92a5e_4023991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/394102f0588325139fe7d764f6ba2645_8527359.png change filename to text .imagette290379911764569700/ imagette290379911764569700/1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348603_0.png.png imagette290379911764569700/1764569368_2279242_1397164694_aae4a6027d5e1c73560774fc9c15ce49_rle_crop_4053339885_0.png.png imagette290379911764569700/1764569605_2288875_1397166017_599a1f8cf57590b01ec9e84d8eb198ed_rle_crop_4053348644_0.png.png imagette290379911764569700/1764569368_2279242_1397164696_7da5decf9509d88ed971b89c70851a5c_rle_crop_4053339873_0.png.png imagette290379911764569700/1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348599_0.png.png imagette290379911764569700/1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348566_0.png.png imagette290379911764569700/1764569546_2286681_1397166129_ddf60119a66ce3f3092ab29324478347_rle_crop_4053344022_0.png.png imagette290379921764569701/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/9252394cdebfa3b6c4be1d75d6bd3170_83459521.png imagette290379911764569700 29037992 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=29037992 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290379921764569701 29037996 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=29037996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397166707: '1764569546_2286681_1397166133_8ed6d38637c49a9f44044a48fb825fd3_rle_crop_4053344003_0.png'} change filename to text .imagette290379961764569701/ imagette290379961764569701/1764569546_2286681_1397166133_8ed6d38637c49a9f44044a48fb825fd3_rle_crop_4053344003_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/336112a347148e94f2a8486c8d0bacc5_61472752.png imagette290379961764569701 29037989 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=29037989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397166242: '1764569467_2283506_1397164321_96a887a6fb0f122872af3ab1999fc077_rle_crop_4053343738_0.png', 1397166976: '1764569605_2288875_1397165935_55edcea7a3ae33857cad12ad6413e1cd_rle_crop_4053348670_0.png', 1397166975: '1764569605_2288875_1397166017_599a1f8cf57590b01ec9e84d8eb198ed_rle_crop_4053348640_0.png', 1397166958: '1764569585_2288087_1397165443_2c529ba2dcc69200a791232e5de0cd56_rle_crop_4053348622_0.png', 1397166957: '1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348586_0.png', 1397166956: '1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348589_0.png', 1397166246: '1764569467_2283506_1397164174_35e4b1f9d985da7174f6a7c0bac45453_rle_crop_4053343846_0.png', 1397166245: '1764569467_2283506_1397164230_5fe3d59e28174ad56532094450b20692_rle_crop_4053343763_0.png', 1397166244: '1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343754_0.png', 1397164818: '1764569104_2273040_1397163781_d73e1a0340251bbf134c2ea5584802d3_rle_crop_4053335262_0.png', 1397166172: '1764569368_2279242_1397164691_88c51e69b927bb33fd29ae5aa00aaad2_rle_crop_4053339909_0.png', 1397166171: '1764569368_2279242_1397164691_88c51e69b927bb33fd29ae5aa00aaad2_rle_crop_4053339907_0.png', 1397166170: '1764569368_2279242_1397164692_3b5d0b60b3360015d03eac653a2143c2_rle_crop_4053339896_0.png', 1397166169: '1764569368_2279242_1397164692_3b5d0b60b3360015d03eac653a2143c2_rle_crop_4053339894_0.png', 1397166168: '1764569368_2279242_1397164694_aae4a6027d5e1c73560774fc9c15ce49_rle_crop_4053339883_0.png', 1397166167: '1764569368_2279242_1397164696_7da5decf9509d88ed971b89c70851a5c_rle_crop_4053339871_0.png', 1397166166: '1764569368_2279242_1397164772_e2478798acee337c469c2880d22193f2_rle_crop_4053339848_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d99e9989a1c112f7ec4f725afc919f62_53364520.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/59a79ff41c1e97eff8fd0abe743bb245_58417648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/5b2ece7295b0276eed040bbf5c913ceb_59820297.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/c554d64add924bfa7fe3a2478e06ec63_59697087.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/96582f27619bb3dd3dd3e13200d8b80e_5100090.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/c81a2fa577cc1986e1a7c600814a1c89_41821726.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1d0a18d8848220636f66e7d249302ec9_44049098.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/b64401b931dae3ce06006e57e26ad520_96548677.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/e6542a3a283e2b6e08884c0156939c2c_45475998.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/3056fc654336a5dd7e5f9c25b980f5fa_30867348.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2d9e13a7c58737f61f32860104d76d1a_81127887.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1c91de50faaf1fddff624bbe22286f3a_30277601.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2d9e13a7c58737f61f32860104d76d1a_74231468.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1c91de50faaf1fddff624bbe22286f3a_30972913.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1183333dc5d2046ddb2e0f76c5d71435_22601797.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1183333dc5d2046ddb2e0f76c5d71435_51004116.png change filename to text .imagette290379891764569701/ imagette290379891764569701/1764569368_2279242_1397164692_3b5d0b60b3360015d03eac653a2143c2_rle_crop_4053339896_0.png.png imagette290379891764569701/1764569368_2279242_1397164691_88c51e69b927bb33fd29ae5aa00aaad2_rle_crop_4053339909_0.png.png imagette290379891764569701/1764569605_2288875_1397165935_55edcea7a3ae33857cad12ad6413e1cd_rle_crop_4053348670_0.png.png imagette290379891764569701/1764569104_2273040_1397163781_d73e1a0340251bbf134c2ea5584802d3_rle_crop_4053335262_0.png.png imagette290379891764569701/1764569467_2283506_1397164321_96a887a6fb0f122872af3ab1999fc077_rle_crop_4053343738_0.png.png imagette290379891764569701/1764569467_2283506_1397164230_5fe3d59e28174ad56532094450b20692_rle_crop_4053343763_0.png.png imagette290379891764569701/1764569585_2288087_1397165443_2c529ba2dcc69200a791232e5de0cd56_rle_crop_4053348622_0.png.png imagette290379891764569701/1764569368_2279242_1397164691_88c51e69b927bb33fd29ae5aa00aaad2_rle_crop_4053339907_0.png.png imagette290379891764569701/1764569368_2279242_1397164694_aae4a6027d5e1c73560774fc9c15ce49_rle_crop_4053339883_0.png.png imagette290379891764569701/1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343754_0.png.png imagette290379891764569701/1764569605_2288875_1397166017_599a1f8cf57590b01ec9e84d8eb198ed_rle_crop_4053348640_0.png.png imagette290379891764569701/1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348586_0.png.png imagette290379891764569701/1764569368_2279242_1397164692_3b5d0b60b3360015d03eac653a2143c2_rle_crop_4053339894_0.png.png imagette290379891764569701/1764569368_2279242_1397164772_e2478798acee337c469c2880d22193f2_rle_crop_4053339848_0.png.png imagette290379891764569701/1764569467_2283506_1397164174_35e4b1f9d985da7174f6a7c0bac45453_rle_crop_4053343846_0.png.png imagette290379891764569701/1764569368_2279242_1397164696_7da5decf9509d88ed971b89c70851a5c_rle_crop_4053339871_0.png.png imagette290379891764569701/1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348589_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/54ac7d16e52dd931899195d00290e7c2_11982168.png imagette290379891764569701 29037994 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=29037994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397165623: '1764569307_2277518_1397164806_09fd006f8e838b3ddd86b1a900d08866_rle_crop_4053339651_0.png', 1397165626: '1764569307_2277518_1397164802_06895417c252253fcaf75515712bc6a2_rle_crop_4053339659_0.png', 1397166256: '1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343750_0.png', 1397166257: '1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343752_0.png', 1397166977: '1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348558_0.png', 1397166978: '1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348592_0.png', 1397166979: '1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348605_0.png', 1397166980: '1764569585_2288087_1397165443_2c529ba2dcc69200a791232e5de0cd56_rle_crop_4053348624_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8d8844574aa0427295271f7da2982235_37122999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/7136bcb9544b079e4cbd8cc4a6dc80f4_71658315.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/35b1af5c4654782dd8b6c0f996fbc0c4_53236350.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/40a78bb2685c663c225cd8b13dd4e913_91143834.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/bd559ffe48752026178e30e7d1786b01_8828812.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d03fd309e17a9704843b77581f8c3da1_24448055.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4f3da2e280619f27da640631c3418e8a_85266537.png change filename to text .imagette290379941764569702/ imagette290379941764569702/1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343752_0.png.png imagette290379941764569702/1764569585_2288087_1397165443_2c529ba2dcc69200a791232e5de0cd56_rle_crop_4053348624_0.png.png imagette290379941764569702/1764569585_2288087_1397166021_9430bb6666b38fe964dce20b1af1d60d_rle_crop_4053348558_0.png.png imagette290379941764569702/1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343750_0.png.png imagette290379941764569702/1764569307_2277518_1397164802_06895417c252253fcaf75515712bc6a2_rle_crop_4053339659_0.png.png imagette290379941764569702/1764569307_2277518_1397164806_09fd006f8e838b3ddd86b1a900d08866_rle_crop_4053339651_0.png.png imagette290379941764569702/1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348592_0.png.png imagette290379941764569702/1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348605_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/38c1bc0ca83bad18bcd19f6f1541ace1_59017885.png imagette290379941764569702 29037995 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=29037995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397164819: '1764569104_2273040_1397163781_d73e1a0340251bbf134c2ea5584802d3_rle_crop_4053335267_0.png', 1397165602: '1764569307_2277518_1397164797_98d406dcbe6d4169dacfedb78fb9382c_rle_crop_4053339685_0.png', 1397166173: '1764569368_2279242_1397164700_7565c5be207f8780d9e2d407d69f8858_rle_crop_4053339855_0.png', 1397166175: '1764569368_2279242_1397164698_f15f5254dc84b864a158c6329397826f_rle_crop_4053339860_0.png', 1397166251: '1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343745_0.png', 1397166252: '1764569467_2283506_1397164174_35e4b1f9d985da7174f6a7c0bac45453_rle_crop_4053343851_0.png', 1397166253: '1764569467_2283506_1397164138_cf82d2e6a6f8dc2aa6fe8982a0017a49_rle_crop_4053343858_0.png', 1397166704: '1764569546_2286681_1397166129_ddf60119a66ce3f3092ab29324478347_rle_crop_4053344019_0.png', 1397166966: '1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348576_0.png', 1397166967: '1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348609_0.png', 1397166968: '1764569585_2288087_1397165443_2c529ba2dcc69200a791232e5de0cd56_rle_crop_4053348623_0.png', 1397166981: '1764569605_2288875_1397166017_599a1f8cf57590b01ec9e84d8eb198ed_rle_crop_4053348635_0.png', 1397166983: '1764569605_2288875_1397166009_9a5cf453d5aa1a4a14076b33fc7b5e26_rle_crop_4053348651_0.png', 1397166985: '1764569605_2288875_1397166009_9a5cf453d5aa1a4a14076b33fc7b5e26_rle_crop_4053348653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a9222536ac2527d1b4e0fb617ab85a5c_79278015.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/70dfc2eca7518c60cb299421a5c5e2de_90617880.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/926fba1dbbc10f5d8f5f37b3bca5aa15_26044360.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/926fba1dbbc10f5d8f5f37b3bca5aa15_92918803.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8095bfb61dbfaf8f34e6a846a4851a7b_46091801.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/118bddacb7e352525cb5b6c902e3ceb2_65027017.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/48dcf57cb61c0d38574fe642021c48a1_35051061.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/4d6bbe83fc8937fc85e79dbc29fc519e_10809751.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8ac2187dd36aa7aaed04d76cad508fb4_23250759.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/14a6f819da62a76ee473c04dd53984f0_56360151.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/1c0c1a4a8b35bbb86da96e47728762a4_71217167.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/a97b4a15f001d0c19c250ba3c5703a6b_69877559.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/b91343364ab7bf846674c610a9777636_72955141.png change filename to text .imagette290379951764569703/ imagette290379951764569703/1764569585_2288087_1397165443_2c529ba2dcc69200a791232e5de0cd56_rle_crop_4053348623_0.png.png imagette290379951764569703/1764569546_2286681_1397166129_ddf60119a66ce3f3092ab29324478347_rle_crop_4053344019_0.png.png imagette290379951764569703/1764569467_2283506_1397164174_35e4b1f9d985da7174f6a7c0bac45453_rle_crop_4053343851_0.png.png imagette290379951764569703/1764569467_2283506_1397164284_1a23e0b72b363ce4eea0cbef4050c895_rle_crop_4053343745_0.png.png imagette290379951764569703/1764569605_2288875_1397166017_599a1f8cf57590b01ec9e84d8eb198ed_rle_crop_4053348635_0.png.png imagette290379951764569703/1764569368_2279242_1397164698_f15f5254dc84b864a158c6329397826f_rle_crop_4053339860_0.png.png imagette290379951764569703/1764569467_2283506_1397164138_cf82d2e6a6f8dc2aa6fe8982a0017a49_rle_crop_4053343858_0.png.png imagette290379951764569703/1764569104_2273040_1397163781_d73e1a0340251bbf134c2ea5584802d3_rle_crop_4053335267_0.png.png imagette290379951764569703/1764569368_2279242_1397164700_7565c5be207f8780d9e2d407d69f8858_rle_crop_4053339855_0.png.png imagette290379951764569703/1764569605_2288875_1397166009_9a5cf453d5aa1a4a14076b33fc7b5e26_rle_crop_4053348651_0.png.png imagette290379951764569703/1764569605_2288875_1397166009_9a5cf453d5aa1a4a14076b33fc7b5e26_rle_crop_4053348653_0.png.png imagette290379951764569703/1764569585_2288087_1397165477_130646137f3f291226cb59c4bd201224_rle_crop_4053348609_0.png.png imagette290379951764569703/1764569307_2277518_1397164797_98d406dcbe6d4169dacfedb78fb9382c_rle_crop_4053339685_0.png.png imagette290379951764569703/1764569585_2288087_1397165512_2bbe4735cc836bd8a5f3ed8cb9ee7ca2_rle_crop_4053348576_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/6ad1c88c83048b0d70d8fb891164ea79_84498832.png imagette290379951764569703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29037953 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29037998,29037999,29038000,29038001,29038002,29038003,29038004,29038005,29038006,29038007,29038008,29038009?tags=autre_refus,metal,flou,environnement,Teint_Dans_La_Masse,cartonnette,plastique,mal_croppe,papier,Carton_brun,Carton_gris,kraft your option no_mail is active, we will not send the real mail to your client args[1397166716] : ('0.04115871829102241',) no score found for photo 1397166716 We are sending mail with results at report@fotonower.com args[1397166713] : ('0.04115871829102241',) no score found for photo 1397166713 We are sending mail with results at report@fotonower.com args[1397166709] : ('0.04115871829102241',) no score found for photo 1397166709 We are sending mail with results at report@fotonower.com args[1397166705] : ('0.04115871829102241',) no score found for photo 1397166705 We are sending mail with results at report@fotonower.com args[1397166702] : ('0.04115871829102241',) no score found for photo 1397166702 We are sending mail with results at report@fotonower.com args[1397166700] : ('0.04115871829102241',) no score found for photo 1397166700 We are sending mail with results at report@fotonower.com refus_total : 0.04115871829102241 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=29037953 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_P29037953_01-12-2025_07_14_59.pdf results_Auto_P29037953_01-12-2025_07_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_14_59.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','29037953','results_Auto_P29037953_01-12-2025_07_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_14_59.pdf','pdf','','0.2','0.04115871829102241') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29037953]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] map_info['map_portfolio_photo'] : {29037953: [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700, 1397166361, 1397166323, 1397166288, 1397166264, 1397166263, 1397166228, 1397166224, 1397166222, 1397166220, 1397166218, 1397166164, 1397166143, 1397166133, 1397166129, 1397166100, 1397166021, 1397166017, 1397166009, 1397165972, 1397165935, 1397165725, 1397165692, 1397165582, 1397165579, 1397165549, 1397165512, 1397165477, 1397165443, 1397165408, 1397165406, 1397165404, 1397165395, 1397165390, 1397165388, 1397164956, 1397164925, 1397164888, 1397164855, 1397164848, 1397164845, 1397164841, 1397164837, 1397164834, 1397164832, 1397164811, 1397164806, 1397164802, 1397164799, 1397164797, 1397164772, 1397164769, 1397164767, 1397164766, 1397164718, 1397164706, 1397164700, 1397164698, 1397164696, 1397164694, 1397164692, 1397164691, 1397164327, 1397164321, 1397164284, 1397164230, 1397164174, 1397164138, 1397163989, 1397163918, 1397163854, 1397163781]} final : False mtd_id 4302 list_pids : [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] 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, '4143110') ('4302', '29037953', '1397166716', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '29037953', '1397166716', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110')] time used for this insertion : 0.014873504638671875 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.783995628356934 time spend to save output : 0.0150604248046875 total time spend for step 4 : 5.799056053161621 step5:split_time_score Mon Dec 1 07:15:05 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 : ['29037953'] 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 : [('29037953',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29037953) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397166713: {'path': 'temp/1764569699_1601242_1397166713_e213521e71079b3239cbbbcf56924804.jpg', 'extension': 'jpg'}, 1397166716: {'path': 'temp/1764569699_1601242_1397166716_6c6112709733edb1348fb940684626e4.jpg', 'extension': 'jpg'}, 1397166705: {'path': 'temp/1764569699_1601242_1397166705_ce7cfc7526f00f8a9c78cdafd6629605.jpg', 'extension': 'jpg'}, 1397166709: {'path': 'temp/1764569699_1601242_1397166709_da483bd368adeb025ff904479fb0f8ad.jpg', 'extension': 'jpg'}, 1397166700: {'path': 'temp/1764569699_1601242_1397166700_de592abc7724aa5a39964a5e041aa888.jpg', 'extension': 'jpg'}, 1397166702: {'path': 'temp/1764569699_1601242_1397166702_029b27cfd050ff43acee87534764141c.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 = 29037953; (('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 = 29037953 group by h (('07', 77),) 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=29037953 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 (29037953) 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 (29037953) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01122025 29037953 Nombre de photos uploadées : 77 / 23040 (0%) 01122025 29037953 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 01122025 29037953 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1397163989, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/8be3eb97c34c639fc75c84df3f147fc6.jpg', 'username': None, 'uploaded_at': 1764568907, 'text': 'image_01122025_07_00_14_10136.jpg'}, {'photo_id': 1397163918, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/bb6587fd49e4aa11a8ade128a6e2e498.jpg', 'username': None, 'uploaded_at': 1764568907, 'text': 'image_01122025_07_00_24_10137.jpg'}, {'photo_id': 1397163854, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/2eb24f83c51faeee68d1485505f8e6e8.jpg', 'username': None, 'uploaded_at': 1764568907, 'text': 'image_01122025_07_00_33_9125.jpg'}, {'photo_id': 1397163781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/1/d73e1a0340251bbf134c2ea5584802d3.jpg', 'username': None, 'uploaded_at': 1764568907, 'text': 'image_01122025_07_00_43_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.0531158447265625e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032498836517333984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29037953, '2025-12-01' ) 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-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2671044,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2628340721130371 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= 2671044 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29035031, 'dashboard_result_id': 17892257, '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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29035264, 'dashboard_result_id': 17892258, '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_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29035717, 'dashboard_result_id': 17892259, '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_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29035848, 'dashboard_result_id': 17892260, '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_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29036243, 'dashboard_result_id': 17892261, '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_P29036243_01-12-2025_06_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29036694, 'dashboard_result_id': 17892262, '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_P29036694_01-12-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036706, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29037055, 'dashboard_result_id': 17892263, '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_P29037055_01-12-2025_06_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037122, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29037632, 'dashboard_result_id': 17892264, '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_P29037632_01-12-2025_07_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037658, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037669, 'pht': 3726}}"}, {'dashboat_entry_day': 2671044, 'dashboard_run_id': 2678252, 'mtr_portfolio_id': 29037953, 'dashboard_result_id': 17892265, '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_P29037953_01-12-2025_07_12_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037996, '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 = 29035031 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': 4142623, 'mtr_portfolio_id': 29035031, 'created_at': datetime.datetime(2025, 12, 1, 5, 18, 59), 'result': '0.052209996136521615', 'result_long': None, 'result_double': None}] Qualite : 0.052209996136521615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035031 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_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, 'pht': 3726}}" where mtr_portfolio_id = 29035031 and dashboard_run_id = 2678252 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`=29035031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892257, 0.052209996136521615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035031_01-12-2025_05_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035043, '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 = 29035264 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': 4142651, 'mtr_portfolio_id': 29035264, 'created_at': datetime.datetime(2025, 12, 1, 5, 41), 'result': '0.04045093731297344', 'result_long': None, 'result_double': None}] Qualite : 0.04045093731297344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035264 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_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, 'pht': 3726}}" where mtr_portfolio_id = 29035264 and dashboard_run_id = 2678252 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`=29035264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892258, 0.04045093731297344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035264_01-12-2025_05_41_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29035267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035278, '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 = 29035717 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': 4142721, 'mtr_portfolio_id': 29035717, 'created_at': datetime.datetime(2025, 12, 1, 5, 49), 'result': '0.044011842645829045', 'result_long': None, 'result_double': None}] Qualite : 0.044011842645829045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035717 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_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, 'pht': 3726}}" where mtr_portfolio_id = 29035717 and dashboard_run_id = 2678252 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`=29035717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892259, 0.044011842645829045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035717_01-12-2025_05_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29035720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035727, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035731, '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 = 29035848 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': 4142737, 'mtr_portfolio_id': 29035848, 'created_at': datetime.datetime(2025, 12, 1, 6, 2, 59), 'result': '0.05611569585040716', 'result_long': None, 'result_double': None}] Qualite : 0.05611569585040716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29035848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29035848 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_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, 'pht': 3726}}" where mtr_portfolio_id = 29035848 and dashboard_run_id = 2678252 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`=29035848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892260, 0.05611569585040716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29035848_01-12-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29035852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29035853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29035854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29035855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29035856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29035857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29035858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29035859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29035860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29035861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29035862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29035863, '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 = 29036243 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': 4142791, 'mtr_portfolio_id': 29036243, 'created_at': datetime.datetime(2025, 12, 1, 6, 19), 'result': '0.05817993189886997', 'result_long': None, 'result_double': None}] Qualite : 0.05817993189886997 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29036243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29036243 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_P29036243_01-12-2025_06_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, 'pht': 3726}}" where mtr_portfolio_id = 29036243 and dashboard_run_id = 2678252 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`=29036243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892261, 0.05817993189886997, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036243_01-12-2025_06_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036263, '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 = 29036694 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': 4142859, 'mtr_portfolio_id': 29036694, 'created_at': datetime.datetime(2025, 12, 1, 6, 33), 'result': '0.04455331966731145', 'result_long': None, 'result_double': None}] Qualite : 0.04455331966731145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29036694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036694_01-12-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29036694 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_P29036694_01-12-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036706, 'pht': 3726}}" where mtr_portfolio_id = 29036694 and dashboard_run_id = 2678249 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`=29036694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892262, 0.04455331966731145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29036694_01-12-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29036695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29036696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29036697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29036698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29036699, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29036700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29036701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29036702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29036703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29036704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29036705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29036706, '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 = 29037055 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': 4142918, 'mtr_portfolio_id': 29037055, 'created_at': datetime.datetime(2025, 12, 1, 6, 49, 1), 'result': '0.02886405103627226', 'result_long': None, 'result_double': None}] Qualite : 0.02886405103627226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29037055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037055_01-12-2025_06_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29037055 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_P29037055_01-12-2025_06_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037122, 'pht': 3726}}" where mtr_portfolio_id = 29037055 and dashboard_run_id = 2678249 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`=29037055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892263, 0.02886405103627226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037055_01-12-2025_06_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037122, '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 = 29037632 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': 4143031, 'mtr_portfolio_id': 29037632, 'created_at': datetime.datetime(2025, 12, 1, 7, 5), 'result': '0.04548725315135064', 'result_long': None, 'result_double': None}] Qualite : 0.04548725315135064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29037632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037632_01-12-2025_07_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29037632 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_P29037632_01-12-2025_07_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037658, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037669, 'pht': 3726}}" where mtr_portfolio_id = 29037632 and dashboard_run_id = 2678249 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`=29037632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892264, 0.04548725315135064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037632_01-12-2025_07_05_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037658, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037669, '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 = 29037953 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': 4143110, 'mtr_portfolio_id': 29037953, 'created_at': datetime.datetime(2025, 12, 1, 7, 14, 59), 'result': '0.04115871829102241', 'result_long': None, 'result_double': None}] Qualite : 0.04115871829102241 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29037953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29037953 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_P29037953_01-12-2025_07_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037996, 'pht': 3726}}" where mtr_portfolio_id = 29037953 and dashboard_run_id = 2678249 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`=29037953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17892265, 0.04115871829102241, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29037953_01-12-2025_07_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29037985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29037986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29037987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29037988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29037989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29037990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29037991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29037992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29037993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29037994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29037995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29037996, '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 (29035031,29035264,29035717,29035848,29036243,29036694,29037055,29037632,29037953) result : ((1397157552,), (1397157615,), (1397157616,), (1397157617,), (1397157618,), (1397157669,), (1397157670,), (1397157688,), (1397157689,), (1397157691,), (1397157693,), (1397157705,), (1397157707,), (1397157709,), (1397157711,), (1397157713,), (1397157739,), (1397157741,), (1397157743,), (1397157754,), (1397157756,), (1397157759,), (1397157762,), (1397157765,), (1397157767,), (1397157774,), (1397157775,), (1397157777,), (1397157780,), (1397157788,), (1397157796,), (1397157798,), (1397157818,), (1397157820,), (1397157821,), (1397157822,), (1397157823,), (1397157824,), (1397157833,), (1397157835,), (1397157836,), (1397157837,), (1397157839,), (1397157876,), (1397157878,), (1397157882,), (1397157883,), (1397157884,), (1397157885,), (1397157868,), (1397157870,), (1397157872,), (1397157874,), (1397157886,), (1397157887,), (1397157912,), (1397157914,), (1397157916,), (1397157918,), (1397157920,), (1397157922,), (1397157980,), (1397158013,), (1397158045,), (1397158078,), (1397158480,), (1397158514,), (1397158537,), (1397158539,), (1397158541,), (1397158543,), (1397158697,), (1397158721,), (1397158726,), (1397158727,), (1397158751,), (1397158846,), (1397158856,), (1397158863,), (1397158880,), (1397158883,), (1397158887,), (1397158891,), (1397158894,), (1397158898,), (1397158940,), (1397158944,), (1397158948,), (1397158950,), (1397158988,), (1397158990,), (1397158992,), (1397158994,), (1397158996,), (1397158998,), (1397159016,), (1397159017,), (1397159018,), (1397159020,), (1397159022,), (1397159024,), (1397159030,), (1397159031,), (1397159032,), (1397159035,), (1397159245,), (1397159239,), (1397159241,), (1397159243,), (1397159256,), (1397159258,), (1397159260,), (1397159262,), (1397159264,), (1397159267,), (1397159279,), (1397159281,), (1397159283,), (1397159295,), (1397159299,), (1397159304,), (1397159306,), (1397159308,), (1397159310,), (1397159311,), (1397159312,), (1397159313,), (1397159325,), (1397159328,), (1397159330,), (1397159334,), (1397159338,), (1397159339,), (1397159340,), (1397159341,), (1397159343,), (1397159344,), (1397159358,), (1397159360,), (1397159362,), (1397159364,), (1397159367,), (1397159368,), (1397159369,), (1397159355,), (1397159357,), (1397159372,), (1397159375,), (1397159378,), (1397159381,), (1397159383,), (1397159385,), (1397159406,), (1397159407,), (1397159409,), (1397159410,), (1397159411,), (1397159412,), (1397159420,), (1397159421,), (1397159423,), (1397159425,), (1397159451,), (1397159452,), (1397159453,), (1397159454,), (1397159456,), (1397159458,), (1397159465,), (1397159468,), (1397159470,), (1397159473,), (1397159491,), (1397159493,), (1397159495,), (1397159497,), (1397159499,), (1397159507,), (1397159508,), (1397159510,), (1397159512,), (1397159515,), (1397159518,), (1397159541,), (1397159542,), (1397159544,), (1397159546,), (1397159554,), (1397159555,), (1397159557,), (1397159559,), (1397159561,), (1397159562,), (1397159595,), (1397159601,), (1397159602,), (1397159604,), (1397159606,), (1397159608,), (1397159611,), (1397159612,), (1397159613,), (1397159614,), (1397159618,), (1397159620,), (1397159622,), (1397159624,), (1397159626,), (1397159633,), (1397159634,), (1397159635,), (1397159636,), (1397159638,), (1397159642,), (1397159657,), (1397159660,), (1397159662,), (1397160059,), (1397160056,), (1397160057,), (1397160244,), (1397160252,), (1397160256,), (1397160258,), (1397160260,), (1397160262,), (1397160272,), (1397160273,), (1397160275,), (1397160277,), (1397160303,), (1397160305,), (1397160308,), (1397160310,), (1397160313,), (1397160315,), (1397160325,), (1397160327,), (1397160329,), (1397160331,), (1397160334,), (1397160351,), (1397160352,), (1397160353,), (1397160355,), (1397160357,), (1397160360,), (1397160392,), (1397160393,), (1397160396,), (1397160399,), (1397160402,), (1397160405,), (1397160410,), (1397160411,), (1397160412,), (1397160414,), (1397160416,), (1397160418,), (1397160434,), (1397160435,), (1397160437,), (1397160438,), (1397160439,), (1397160441,), (1397160443,), (1397160444,), (1397160447,), (1397160448,), (1397160450,), (1397160451,), (1397160455,), (1397160457,), (1397160462,), (1397160466,), (1397160470,), (1397160473,), (1397160516,), (1397160518,), (1397160522,), (1397160526,), (1397160530,), (1397160534,), (1397160542,), (1397160543,), (1397160545,), (1397160547,), (1397160550,), (1397160553,), (1397160559,), (1397160560,), (1397160561,), (1397160570,), (1397160578,), (1397160595,), (1397160602,), (1397160604,), (1397160607,), (1397160610,), (1397160647,), (1397160649,), (1397160651,), (1397160653,), (1397160656,), (1397160658,), (1397160675,), (1397160686,), (1397160694,), (1397160713,), (1397160715,), (1397160716,), (1397160717,), (1397160725,), (1397160753,), (1397160756,), (1397160759,), (1397160774,), (1397160775,), (1397160776,), (1397160746,), (1397160748,), (1397160750,), (1397160781,), (1397160782,), (1397160784,), (1397160786,), (1397160789,), (1397160792,), (1397160805,), (1397160806,), (1397160808,), (1397160810,), (1397160818,), (1397160827,), (1397160836,), (1397160838,), (1397160840,), (1397160842,), (1397160859,), (1397160861,), (1397160863,), (1397160865,), (1397160868,), (1397160880,), (1397160881,), (1397160882,), (1397160883,), (1397160886,), (1397160889,), (1397160899,), (1397160900,), (1397160902,), (1397160904,), (1397160907,), (1397160917,), (1397160919,), (1397160922,), (1397160925,), (1397160929,), (1397160945,), (1397160950,), (1397160952,), (1397160954,), (1397160976,), (1397160977,), (1397160978,), (1397160979,), (1397160982,), (1397160985,), (1397161004,), (1397161015,), (1397161026,), (1397161036,), (1397161039,), (1397161041,), (1397161047,), (1397161049,), (1397161051,), (1397161053,), (1397161055,), (1397161057,), (1397161060,), (1397161061,), (1397161064,), (1397161067,), (1397161087,), (1397161093,), (1397161094,), (1397161095,), (1397161108,), (1397161111,), (1397161113,), (1397161117,), (1397161121,), (1397161124,), (1397161138,), (1397161141,), (1397161143,), (1397161171,), (1397161158,), (1397161160,), (1397161162,), (1397161165,), (1397161169,), (1397161185,), (1397161187,), (1397161189,), (1397161192,), (1397161222,), (1397161223,), (1397161224,), (1397161226,), (1397161246,), (1397161248,), (1397161254,), (1397161262,), (1397161266,), (1397161284,), (1397161285,), (1397161286,), (1397161288,), (1397161291,), (1397161295,), (1397161312,), (1397161314,), (1397161318,), (1397161326,), (1397161329,), (1397161332,), (1397161341,), (1397161342,), (1397161344,), (1397161347,), (1397161349,), (1397161352,), (1397161356,), (1397161360,), (1397161364,), (1397161390,), (1397161392,), (1397161394,), (1397161397,), (1397161418,), (1397161428,), (1397161431,), (1397161435,), (1397161439,), (1397161443,), (1397161454,), (1397161456,), (1397161458,), (1397161467,), (1397161495,), (1397161503,), (1397161513,), (1397161517,), (1397161536,), (1397161538,), (1397161540,), (1397161543,), (1397161547,), (1397161551,), (1397161565,), (1397161566,), (1397161567,), (1397161572,), (1397161612,), (1397161613,), (1397161615,), (1397161618,), (1397161621,), (1397161625,), (1397161645,), (1397161646,), (1397161648,), (1397161650,), (1397161687,), (1397161676,), (1397161677,), (1397161679,), (1397161681,), (1397161684,), (1397161702,), (1397161703,), (1397161705,), (1397161708,), (1397161712,), (1397161730,), (1397161735,), (1397161737,), (1397161741,), (1397161745,), (1397161764,), (1397161774,), (1397161779,), (1397161781,), (1397161785,), (1397161789,), (1397161804,), (1397161806,), (1397161809,), (1397161811,), (1397161832,), (1397161833,), (1397161834,), (1397161836,), (1397161840,), (1397161843,), (1397161858,), (1397161859,), (1397161861,), (1397161890,), (1397161892,), (1397161894,), (1397161897,), (1397161901,), (1397161904,), (1397161915,), (1397161916,), (1397161918,), (1397161922,), (1397161931,), (1397161947,), (1397161949,), (1397161951,), (1397161954,), (1397161957,), (1397161993,), (1397161995,), (1397161998,), (1397162002,), (1397162006,), (1397162009,), (1397162017,), (1397162019,), (1397162021,), (1397162023,), (1397162025,), (1397162030,), (1397162033,), (1397162037,), (1397162040,), (1397162045,), (1397162063,), (1397162066,), (1397162070,), (1397162074,), (1397162078,), (1397162081,), (1397162207,), (1397162242,), (1397162276,), (1397162316,), (1397162351,), (1397162390,), (1397162560,), (1397162643,), (1397162743,), (1397162844,), (1397162933,), (1397163036,), (1397164053,), (1397164072,), (1397164478,), (1397164509,), (1397164552,), (1397164609,), (1397164625,), (1397164627,), (1397163781,), (1397163854,), (1397163918,), (1397163989,), (1397164138,), (1397164174,), (1397164230,), (1397164284,), (1397164321,), (1397164327,), (1397164691,), (1397164692,), (1397164694,), (1397164696,), (1397164698,), (1397164700,), (1397164706,), (1397164718,), (1397164766,), (1397164767,), (1397164769,), (1397164772,), (1397164797,), (1397164799,), (1397164802,), (1397164806,), (1397164811,), (1397164832,), (1397164834,), (1397164837,), (1397164841,), (1397164845,), (1397164848,), (1397164855,), (1397164888,), (1397164925,), (1397164956,), (1397165388,), (1397165390,), (1397165395,), (1397165404,), (1397165406,), (1397165408,), (1397165443,), (1397165477,), (1397165512,), (1397165549,), (1397165579,), (1397165582,), (1397165692,), (1397165725,), (1397165935,), (1397165972,), (1397166009,), (1397166017,), (1397166021,), (1397166100,), (1397166129,), (1397166133,), (1397166143,), (1397166164,), (1397166218,), (1397166220,), (1397166222,), (1397166224,), (1397166228,), (1397166263,), (1397166264,), (1397166288,), (1397166323,), (1397166361,), (1397166700,), (1397166702,), (1397166705,), (1397166709,), (1397166713,), (1397166716,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01122025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29037953]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] map_info['map_portfolio_photo'] : {29037953: [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700, 1397166361, 1397166323, 1397166288, 1397166264, 1397166263, 1397166228, 1397166224, 1397166222, 1397166220, 1397166218, 1397166164, 1397166143, 1397166133, 1397166129, 1397166100, 1397166021, 1397166017, 1397166009, 1397165972, 1397165935, 1397165725, 1397165692, 1397165582, 1397165579, 1397165549, 1397165512, 1397165477, 1397165443, 1397165408, 1397165406, 1397165404, 1397165395, 1397165390, 1397165388, 1397164956, 1397164925, 1397164888, 1397164855, 1397164848, 1397164845, 1397164841, 1397164837, 1397164834, 1397164832, 1397164811, 1397164806, 1397164802, 1397164799, 1397164797, 1397164772, 1397164769, 1397164767, 1397164766, 1397164718, 1397164706, 1397164700, 1397164698, 1397164696, 1397164694, 1397164692, 1397164691, 1397164327, 1397164321, 1397164284, 1397164230, 1397164174, 1397164138, 1397163989, 1397163918, 1397163854, 1397163781]} final : True mtd_id 4302 list_pids : [1397166716, 1397166713, 1397166709, 1397166705, 1397166702, 1397166700] Looping around the photos to save general results len do output : 1 /29037953Didn'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, '4143110') ('4302', '29037953', '1397166716', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110') ('4302', None, None, None, None, None, None, None, '4143110') ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '29037953', 'None', None, None, None, None, '4143110'), ('4302', '29037953', '1397166716', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166713', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166709', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166705', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166702', None, None, None, None, None, '4143110'), ('4302', '29037953', '1397166700', None, None, None, None, None, '4143110')] time used for this insertion : 0.019133806228637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9905462265014648 time spend to save output : 0.01924586296081543 total time spend for step 5 : 1.0097920894622803 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 (4143110) 2.02user 2.50system 0:11.90elapsed 37%CPU (0avgtext+0avgdata 164472maxresident)k 96inputs+10712outputs (1major+67197minor)pagefaults 0swaps