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 : 2063093 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 (4034379) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4034379) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438484 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4034379'] with mtr_portfolio_ids : ['28438484'] and first list_photo_ids : [] new path : /proc/2063093/ Name: python3 Umask: 0002 State: R (running) Tgid: 2063093 Ngid: 0 Pid: 2063093 PPid: 2063092 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2063093 NSpid: 2063093 NSpgid: 2061415 NSsid: 2061415 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99996 kB VmRSS: 99996 kB RssAnon: 59896 kB RssFile: 40100 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 50 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2063093', 'Ngid': '0', 'Pid': '2063093', 'PPid': '2063092', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2063093', 'NSpid': '2063093', 'NSpgid': '2061415', 'NSsid': '2061415', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99996 kB', 'VmRSS': '99996 kB', 'RssAnon': '59896 kB', 'RssFile': '40100 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '50', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2063093', '1106908', '0', '1106884', '865636', '99996', b'', 'marlene', '4034379') 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 (28438484) 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 (4034379 ) ) 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 (28438484) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393989382, 'portfolio_id': 28438484}, {'photo_id': 1393989380, 'portfolio_id': 28438484}, {'photo_id': 1393989378, 'portfolio_id': 28438484}, {'photo_id': 1393989369, 'portfolio_id': 28438484}, {'photo_id': 1393989364, 'portfolio_id': 28438484}, {'photo_id': 1393989360, 'portfolio_id': 28438484}, {'photo_id': 1393989356, 'portfolio_id': 28438484}, {'photo_id': 1393989301, 'portfolio_id': 28438484}, {'photo_id': 1393989297, 'portfolio_id': 28438484}, {'photo_id': 1393989294, 'portfolio_id': 28438484}, {'photo_id': 1393989293, 'portfolio_id': 28438484}, {'photo_id': 1393989291, 'portfolio_id': 28438484}, {'photo_id': 1393989286, 'portfolio_id': 28438484}, {'photo_id': 1393989250, 'portfolio_id': 28438484}, {'photo_id': 1393989247, 'portfolio_id': 28438484}, {'photo_id': 1393989243, 'portfolio_id': 28438484}, {'photo_id': 1393989241, 'portfolio_id': 28438484}, {'photo_id': 1393989223, 'portfolio_id': 28438484}, {'photo_id': 1393989221, 'portfolio_id': 28438484}, {'photo_id': 1393989216, 'portfolio_id': 28438484}, {'photo_id': 1393989213, 'portfolio_id': 28438484}, {'photo_id': 1393989212, 'portfolio_id': 28438484}, {'photo_id': 1393989211, 'portfolio_id': 28438484}, {'photo_id': 1393989178, 'portfolio_id': 28438484}, {'photo_id': 1393989172, 'portfolio_id': 28438484}, {'photo_id': 1393989168, 'portfolio_id': 28438484}, {'photo_id': 1393989165, 'portfolio_id': 28438484}, {'photo_id': 1393989150, 'portfolio_id': 28438484}, {'photo_id': 1393989148, 'portfolio_id': 28438484}, {'photo_id': 1393989145, 'portfolio_id': 28438484}, {'photo_id': 1393989144, 'portfolio_id': 28438484}, {'photo_id': 1393989143, 'portfolio_id': 28438484}, {'photo_id': 1393989142, 'portfolio_id': 28438484}, {'photo_id': 1393989112, 'portfolio_id': 28438484}, {'photo_id': 1393989109, 'portfolio_id': 28438484}, {'photo_id': 1393989106, 'portfolio_id': 28438484}, {'photo_id': 1393989103, 'portfolio_id': 28438484}, {'photo_id': 1393989101, 'portfolio_id': 28438484}, {'photo_id': 1393989099, 'portfolio_id': 28438484}, {'photo_id': 1393989080, 'portfolio_id': 28438484}, {'photo_id': 1393989079, 'portfolio_id': 28438484}, {'photo_id': 1393989077, 'portfolio_id': 28438484}, {'photo_id': 1393989073, 'portfolio_id': 28438484}, {'photo_id': 1393989023, 'portfolio_id': 28438484}, {'photo_id': 1393989020, 'portfolio_id': 28438484}, {'photo_id': 1393989015, 'portfolio_id': 28438484}, {'photo_id': 1393989011, 'portfolio_id': 28438484}, {'photo_id': 1393989007, 'portfolio_id': 28438484}, {'photo_id': 1393989005, 'portfolio_id': 28438484}, {'photo_id': 1393988977, 'portfolio_id': 28438484}, {'photo_id': 1393988975, 'portfolio_id': 28438484}, {'photo_id': 1393988973, 'portfolio_id': 28438484}, {'photo_id': 1393988951, 'portfolio_id': 28438484}, {'photo_id': 1393988948, 'portfolio_id': 28438484}, {'photo_id': 1393988947, 'portfolio_id': 28438484}, {'photo_id': 1393988946, 'portfolio_id': 28438484}, {'photo_id': 1393988945, 'portfolio_id': 28438484}, {'photo_id': 1393988931, 'portfolio_id': 28438484}, {'photo_id': 1393988927, 'portfolio_id': 28438484}, {'photo_id': 1393988924, 'portfolio_id': 28438484}, {'photo_id': 1393988922, 'portfolio_id': 28438484}, {'photo_id': 1393988920, 'portfolio_id': 28438484}, {'photo_id': 1393988901, 'portfolio_id': 28438484}, {'photo_id': 1393988897, 'portfolio_id': 28438484}, {'photo_id': 1393988895, 'portfolio_id': 28438484}, {'photo_id': 1393988893, 'portfolio_id': 28438484}, {'photo_id': 1393988891, 'portfolio_id': 28438484}, {'photo_id': 1393988874, 'portfolio_id': 28438484}] map_portfolio_id_photo_id: {28438484: [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286, 1393989250, 1393989247, 1393989243, 1393989241, 1393989223, 1393989221, 1393989216, 1393989213, 1393989212, 1393989211, 1393989178, 1393989172, 1393989168, 1393989165, 1393989150, 1393989148, 1393989145, 1393989144, 1393989143, 1393989142, 1393989112, 1393989109, 1393989106, 1393989103, 1393989101, 1393989099, 1393989080, 1393989079, 1393989077, 1393989073, 1393989023, 1393989020, 1393989015, 1393989011, 1393989007, 1393989005, 1393988977, 1393988975, 1393988973, 1393988951, 1393988948, 1393988947, 1393988946, 1393988945, 1393988931, 1393988927, 1393988924, 1393988922, 1393988920, 1393988901, 1393988897, 1393988895, 1393988893, 1393988891, 1393988874]} ##### 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.018381118774414062 #### 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 Wed Nov 12 05:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28438484) 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 : 28438484 get user id for portfolio 28438484 get sub ptf for main ptf 28438484, type 3726 and hashtags ['plastique', 'papier', 'metal', 'cartonnette', 'autre_refus', 'Carton_brun', 'environnement', 'mal_croppe', 'flou', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse'] 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`=28438484 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','cartonnette','autre_refus','Carton_brun','environnement','mal_croppe','flou','kraft','Carton_gris','Teint_Dans_La_Masse')) 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`=28438484 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','cartonnette','autre_refus','Carton_brun','environnement','mal_croppe','flou','kraft','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28438484, 'sub_port_id': 28438488, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259573, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'plastique': {'main_port_id': 28438484, 'sub_port_id': 28438489, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259574, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 28438484, 'sub_port_id': 28438490, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259575, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'metal': {'main_port_id': 28438484, 'sub_port_id': 28438491, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259576, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'papier': {'main_port_id': 28438484, 'sub_port_id': 28438492, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259577, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'autre_refus': {'main_port_id': 28438484, 'sub_port_id': 28438493, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259578, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'environnement': {'main_port_id': 28438484, 'sub_port_id': 28438494, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259579, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'kraft': {'main_port_id': 28438484, 'sub_port_id': 28438495, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259580, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'flou': {'main_port_id': 28438484, 'sub_port_id': 28438496, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259581, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'cartonnette': {'main_port_id': 28438484, 'sub_port_id': 28438497, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259582, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'Carton_brun': {'main_port_id': 28438484, 'sub_port_id': 28438498, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259583, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}, 'mal_croppe': {'main_port_id': 28438484, 'sub_port_id': 28438499, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259584, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438488 , 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=28438484 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 (28438488) result : ((1393988959,), (1393988960,), (1393989066,), (1393989134,), (1393989135,), (1393989267,), (1393989389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438489 , 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=28438484 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 (28438489) result : ((1393988961,), (1393988963,), (1393989025,), (1393989198,), (1393989275,), (1393989276,), (1393989393,), (1393989394,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438490 , 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=28438484 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 (28438490) result : ((1393989062,), (1393989114,), (1393989115,), (1393989116,), (1393989128,), (1393989129,), (1393989130,), (1393989190,), (1393989192,), (1393989193,), (1393989259,), (1393989260,), (1393989261,), (1393989262,), (1393989263,), (1393989264,), (1393989384,), (1393989385,), (1393989386,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438491 , 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=28438484 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 (28438491) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438492 , 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=28438484 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 (28438492) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438493 , 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=28438484 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 (28438493) result : ((1393988957,), (1393988958,), (1393989063,), (1393989131,), (1393989132,), (1393989196,), (1393989266,), (1393989387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438494 , 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=28438484 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 (28438494) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438495 , 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=28438484 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 (28438495) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438496 , 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=28438484 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 (28438496) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438497 , 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=28438484 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 (28438497) result : ((1393989117,), (1393989136,), (1393989269,), (1393989365,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438498 , 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=28438484 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 (28438498) result : ((1393989137,), (1393989138,), (1393989139,), (1393989197,), (1393989271,), (1393989272,), (1393989273,), (1393989367,), (1393989391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28438499 , 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=28438484 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 (28438499) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28438484) result : ((1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28438484 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','cartonnette','autre_refus','Carton_brun','environnement','mal_croppe','flou','kraft','Carton_gris','Teint_Dans_La_Masse')) 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`=28438484 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','metal','cartonnette','autre_refus','Carton_brun','environnement','mal_croppe','flou','kraft','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28438484, 'sub_port_id': 28438500, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259585, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'plastique': {'main_port_id': 28438484, 'sub_port_id': 28438501, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259586, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28438484, 'sub_port_id': 28438502, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259587, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'metal': {'main_port_id': 28438484, 'sub_port_id': 28438503, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259588, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'papier': {'main_port_id': 28438484, 'sub_port_id': 28438504, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259589, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'autre_refus': {'main_port_id': 28438484, 'sub_port_id': 28438505, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259590, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'environnement': {'main_port_id': 28438484, 'sub_port_id': 28438506, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259591, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'kraft': {'main_port_id': 28438484, 'sub_port_id': 28438507, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259592, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'flou': {'main_port_id': 28438484, 'sub_port_id': 28438508, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259593, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'cartonnette': {'main_port_id': 28438484, 'sub_port_id': 28438509, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259594, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'Carton_brun': {'main_port_id': 28438484, 'sub_port_id': 28438510, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259595, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}, 'mal_croppe': {'main_port_id': 28438484, 'sub_port_id': 28438511, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19259596, 'last_updated_at': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 12, 5, 30, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 12, 5, 22, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438492 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438494 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438507,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438495 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438508,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438496 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438509,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438497 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28438511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28438499 lien utilise dans velours : https://marlene.fotonower.com/velours/28438500,28438501,28438502,28438503,28438504,28438505,28438506,28438507,28438508,28438509,28438510,28438511?tags=Carton_gris,plastique,Teint_Dans_La_Masse,metal,papier,autre_refus,environnement,kraft,flou,cartonnette,Carton_brun,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28438484]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] map_info['map_portfolio_photo'] : {28438484: [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286, 1393989250, 1393989247, 1393989243, 1393989241, 1393989223, 1393989221, 1393989216, 1393989213, 1393989212, 1393989211, 1393989178, 1393989172, 1393989168, 1393989165, 1393989150, 1393989148, 1393989145, 1393989144, 1393989143, 1393989142, 1393989112, 1393989109, 1393989106, 1393989103, 1393989101, 1393989099, 1393989080, 1393989079, 1393989077, 1393989073, 1393989023, 1393989020, 1393989015, 1393989011, 1393989007, 1393989005, 1393988977, 1393988975, 1393988973, 1393988951, 1393988948, 1393988947, 1393988946, 1393988945, 1393988931, 1393988927, 1393988924, 1393988922, 1393988920, 1393988901, 1393988897, 1393988895, 1393988893, 1393988891, 1393988874]} final : False mtd_id 4302 list_pids : [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] Looping around the photos to save general results len do output : 1 /28438484. 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, '4034379') ('4302', '28438484', '1393989382', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '28438484', "{'Carton_gris': 28438488, 'plastique': 28438489, 'Teint_Dans_La_Masse': 28438490, 'metal': 28438491, 'papier': 28438492, 'autre_refus': 28438493, 'environnement': 28438494, 'kraft': 28438495, 'flou': 28438496, 'cartonnette': 28438497, 'Carton_brun': 28438498, 'mal_croppe': 28438499}", None, None, None, None, '4034379'), ('4302', '28438484', '1393989382', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379')] time used for this insertion : 0.01601696014404297 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.673311471939087 time spend to save output : 0.01638007164001465 total time spend for step 1 : 1.6896915435791016 step2:final Wed Nov 12 05:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28438484) 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 28438484 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393988874,1393988901,1393988897,1393988895,1393988893,1393988891,1393988931,1393988927,1393988924,1393988922,1393988920,1393988951,1393988948,1393988947,1393988946,1393988945,1393988977,1393988975,1393988973,1393989023,1393989020,1393989015,1393989011,1393989007,1393989005,1393989080,1393989079,1393989077,1393989073,1393989112,1393989109,1393989106,1393989103,1393989101,1393989099,1393989150,1393989148,1393989145,1393989144,1393989143,1393989142,1393989178,1393989172,1393989168,1393989165,1393989223,1393989221,1393989216,1393989213,1393989212,1393989211,1393989250,1393989247,1393989243,1393989241,1393989382,1393989301,1393989297,1393989380,1393989294,1393989378,1393989293,1393989369,1393989291,1393989364,1393989360,1393989286,1393989356); 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([28438484]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} new output for save of step final : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] map_info['map_portfolio_photo'] : {28438484: [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286, 1393989250, 1393989247, 1393989243, 1393989241, 1393989223, 1393989221, 1393989216, 1393989213, 1393989212, 1393989211, 1393989178, 1393989172, 1393989168, 1393989165, 1393989150, 1393989148, 1393989145, 1393989144, 1393989143, 1393989142, 1393989112, 1393989109, 1393989106, 1393989103, 1393989101, 1393989099, 1393989080, 1393989079, 1393989077, 1393989073, 1393989023, 1393989020, 1393989015, 1393989011, 1393989007, 1393989005, 1393988977, 1393988975, 1393988973, 1393988951, 1393988948, 1393988947, 1393988946, 1393988945, 1393988931, 1393988927, 1393988924, 1393988922, 1393988920, 1393988901, 1393988897, 1393988895, 1393988893, 1393988891, 1393988874]} final : False mtd_id 4302 list_pids : [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] Looping around the photos to save general results len do output : 13 /1393989382.Didn't retrieve data . /1393989380.Didn't retrieve data . /1393989378.Didn't retrieve data . /1393989369.Didn't retrieve data . /1393989364.Didn't retrieve data . /1393989360.Didn't retrieve data . /1393989356.Didn't retrieve data . /1393989301.Didn't retrieve data . /1393989297.Didn't retrieve data . /1393989294.Didn't retrieve data . /1393989293.Didn't retrieve data . /1393989291.Didn't retrieve data . /1393989286.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, '4034379') ('4302', '28438484', '1393989382', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '28438484', '1393989382', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989380', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989378', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989369', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989364', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989360', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989356', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989301', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989297', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989294', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989293', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989291', '0.03998445298432011', None, None, None, None, '4034379'), ('4302', '28438484', '1393989286', '0.03998445298432011', None, None, None, None, '4034379')] time used for this insertion : 0.01509547233581543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07246899604797363 time spend to save output : 0.01570296287536621 total time spend for step 2 : 0.08817195892333984 step3:velours_tree Wed Nov 12 05:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28438484: [{'Carton_gris': 28438488, 'plastique': 28438489, 'Teint_Dans_La_Masse': 28438490, 'metal': 28438491, 'papier': 28438492, 'autre_refus': 28438493, 'environnement': 28438494, 'kraft': 28438495, 'flou': 28438496, 'cartonnette': 28438497, 'Carton_brun': 28438498, 'mal_croppe': 28438499}]} input_args_next_step : {28438484: ()} output_args : {28438484: [{'Carton_gris': 28438488, 'plastique': 28438489, 'Teint_Dans_La_Masse': 28438490, 'metal': 28438491, 'papier': 28438492, 'autre_refus': 28438493, 'environnement': 28438494, 'kraft': 28438495, 'flou': 28438496, 'cartonnette': 28438497, 'Carton_brun': 28438498, 'mal_croppe': 28438499}]} args : 28438484 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 28438488, 'plastique': 28438489, 'Teint_Dans_La_Masse': 28438490, 'metal': 28438491, 'papier': 28438492, 'autre_refus': 28438493, 'environnement': 28438494, 'kraft': 28438495, 'flou': 28438496, 'cartonnette': 28438497, 'Carton_brun': 28438498, 'mal_croppe': 28438499},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28438484) 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([28438484]) 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.3271160125732422 time spend to save output : 5.53131103515625e-05 total time spend for step 3 : 0.32717132568359375 step4:send_mail_cod Wed Nov 12 05:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} input_args_next_step : {1393989382: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989382 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989380 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989378 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989369 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989364 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989360 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989356 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989301 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989297 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989294 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989293 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989291 depend.output_id : 0 input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ()} output_args : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',)} args : 1393989286 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 : {28438484: [{'Carton_gris': 28438488, 'plastique': 28438489, 'Teint_Dans_La_Masse': 28438490, 'metal': 28438491, 'papier': 28438492, 'autre_refus': 28438493, 'environnement': 28438494, 'kraft': 28438495, 'flou': 28438496, 'cartonnette': 28438497, 'Carton_brun': 28438498, 'mal_croppe': 28438499}]} input_args_next_step : {1393989382: ('0.03998445298432011',), 1393989380: ('0.03998445298432011',), 1393989378: ('0.03998445298432011',), 1393989369: ('0.03998445298432011',), 1393989364: ('0.03998445298432011',), 1393989360: ('0.03998445298432011',), 1393989356: ('0.03998445298432011',), 1393989301: ('0.03998445298432011',), 1393989297: ('0.03998445298432011',), 1393989294: ('0.03998445298432011',), 1393989293: ('0.03998445298432011',), 1393989291: ('0.03998445298432011',), 1393989286: ('0.03998445298432011',), 28438484: ()} output_args : {28438484: [{'Carton_gris': 28438488, 'plastique': 28438489, 'Teint_Dans_La_Masse': 28438490, 'metal': 28438491, 'papier': 28438492, 'autre_refus': 28438493, 'environnement': 28438494, 'kraft': 28438495, 'flou': 28438496, 'cartonnette': 28438497, 'Carton_brun': 28438498, 'mal_croppe': 28438499}]} args : 28438484 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 :14, first value : ('0.03998445298432011',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28438484) 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 (1393989382,1393989380,1393989378,1393989369,1393989364,1393989360,1393989356,1393989301,1393989297,1393989294,1393989293,1393989291,1393989286) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393989286 begin to download photo : 1393989294 begin to download photo : 1393989356 begin to download photo : 1393989369 begin to download photo : 1393989382 download finish for photo 1393989294 begin to download photo : 1393989297 download finish for photo 1393989382 download finish for photo 1393989286 begin to download photo : 1393989291 download finish for photo 1393989369 begin to download photo : 1393989378 download finish for photo 1393989356 begin to download photo : 1393989360 download finish for photo 1393989297 begin to download photo : 1393989301 download finish for photo 1393989291 begin to download photo : 1393989293 download finish for photo 1393989360 begin to download photo : 1393989364 download finish for photo 1393989378 begin to download photo : 1393989380 download finish for photo 1393989301 download finish for photo 1393989293 download finish for photo 1393989380 download finish for photo 1393989364 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 : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P28438484_12-11-2025_05_33_01.pdf 28438489 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=28438489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393988961: '1762921265_2549150_1393988895_606f58482ecfa8d652469a9a072e061f_rle_crop_4030930794_0.png', 1393988963: '1762921265_2549150_1393988893_cd13c6566f542d554c246923b7d1489f_rle_crop_4030930807_0.png', 1393989025: '1762921385_2555472_1393988973_c34faf7b92e4919f3b794decfb1eb69b_rle_crop_4030931089_0.png', 1393989198: '1762921628_2567113_1393989109_d5761e4f04a17b860bf7d9567a1d0333_rle_crop_4030932429_0.png', 1393989275: '1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932739_0.png', 1393989276: '1762921747_2572622_1393989142_1dfd94bde1394ac553e8f46049b6718e_rle_crop_4030932759_0.png', 1393989393: '1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933487_0.png', 1393989394: '1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933484_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/4e9bd610af40b4d065ccbad7cc7e1381_28235503.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/5fb719fb9e71399d1f441546259db8ba_41808994.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b143b6aad1cf0885afc6cd5fcebb72ea_88286484.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/ab7a508305ef21205df8a67dbf524251_57823926.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/de66cc73d854983f4fbd9d17968c5962_95456349.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/134ec110be4910b4924b2eb9e6053040_50252324.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3e57ab6cb700cfe7aa8235e073adb120_28487470.png change filename to text .imagette284384891762921981/ imagette284384891762921981/1762921747_2572622_1393989142_1dfd94bde1394ac553e8f46049b6718e_rle_crop_4030932759_0.png.png imagette284384891762921981/1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932739_0.png.png imagette284384891762921981/1762921265_2549150_1393988895_606f58482ecfa8d652469a9a072e061f_rle_crop_4030930794_0.png.png imagette284384891762921981/1762921628_2567113_1393989109_d5761e4f04a17b860bf7d9567a1d0333_rle_crop_4030932429_0.png.png imagette284384891762921981/1762921265_2549150_1393988893_cd13c6566f542d554c246923b7d1489f_rle_crop_4030930807_0.png.png imagette284384891762921981/1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933487_0.png.png imagette284384891762921981/1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933484_0.png.png imagette284384891762921981/1762921385_2555472_1393988973_c34faf7b92e4919f3b794decfb1eb69b_rle_crop_4030931089_0.png.png imagette284384911762921982/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/5b0270a530d1a099d810dfecfbcaf326_87027533.png imagette284384891762921981 28438491 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=28438491 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284384911762921982 28438493 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=28438493 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393988957: '1762921265_2549150_1393988897_3fbb8e19f046ad61e6877d6e3d09d335_rle_crop_4030930783_0.png', 1393988958: '1762921265_2549150_1393988893_cd13c6566f542d554c246923b7d1489f_rle_crop_4030930809_0.png', 1393989063: '1762921405_2555866_1393988946_e6034769470734a37ce56fc5edd0ead2_rle_crop_4030931932_0.png', 1393989131: '1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932270_0.png', 1393989132: '1762921523_2561337_1393989005_1e94303c7133104f4756488e7e11ca1f_rle_crop_4030932294_0.png', 1393989196: '1762921628_2567113_1393989099_c028bb0e0ea686ec74a424247f43d3db_rle_crop_4030932480_0.png', 1393989266: '1762921747_2572622_1393989148_bc5d7042bc02f603360495a5114b6bb8_rle_crop_4030932705_0.png', 1393989387: '1762921886_2577953_1393989221_17e71c9c7f94bc9ead1a1c89df37158f_rle_crop_4030933419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/e474212fd2ce43a81b1d28838bd0bccc_15678128.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6bf212f0e0b2cafdd9a30ec99f93c63a_60675914.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/9946e9cab68a6b378565ef13e5fb8134_81712931.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f67b7afd9d7a13f0756d60b52ef7016b_70444115.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/e25fd921c9660a2b0ddbb929b7d67ce9_9145671.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/e2b4e849f7859e3553366b7005de33ad_28706248.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/634708937b5fbe96bcb6a4e8063484ae_49030250.png change filename to text .imagette284384931762921982/ imagette284384931762921982/1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932270_0.png.png imagette284384931762921982/1762921523_2561337_1393989005_1e94303c7133104f4756488e7e11ca1f_rle_crop_4030932294_0.png.png imagette284384931762921982/1762921265_2549150_1393988897_3fbb8e19f046ad61e6877d6e3d09d335_rle_crop_4030930783_0.png.png imagette284384931762921982/1762921886_2577953_1393989221_17e71c9c7f94bc9ead1a1c89df37158f_rle_crop_4030933419_0.png.png imagette284384931762921982/1762921628_2567113_1393989099_c028bb0e0ea686ec74a424247f43d3db_rle_crop_4030932480_0.png.png imagette284384931762921982/1762921405_2555866_1393988946_e6034769470734a37ce56fc5edd0ead2_rle_crop_4030931932_0.png.png imagette284384931762921982/1762921747_2572622_1393989148_bc5d7042bc02f603360495a5114b6bb8_rle_crop_4030932705_0.png.png imagette284384931762921982/1762921265_2549150_1393988893_cd13c6566f542d554c246923b7d1489f_rle_crop_4030930809_0.png.png imagette284384951762921982/ imagette284384961762921982/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2f01a2289a4f9ad229d06b0c6470a35e_60672701.png imagette284384931762921982 28438495 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=28438495 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284384951762921982 28438496 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=28438496 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284384961762921982 28438497 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=28438497 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393989117: '1762921503_2560859_1393989079_d30b483acaa042774335543b270d44d0_rle_crop_4030932045_0.png', 1393989136: '1762921523_2561337_1393989080_3289d0a6d88a04c47c2406f226395f36_rle_crop_4030932226_0.png', 1393989269: '1762921747_2572622_1393989178_9eae8a33595eb637b12a2eef933e41b2_rle_crop_4030932686_0.png', 1393989365: '1762921865_2575866_1393989243_873f24c7c9c97c16e2ff398feb0b30fe_rle_crop_4030933268_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3c977da48bbee1ff9fb1ba1e8b667423_60814307.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6ee8677e0a42690caa1b639cbba80971_89262538.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/4552e39fb8c8ff1234493f213af081c3_56622756.png change filename to text .imagette284384971762921983/ imagette284384971762921983/1762921523_2561337_1393989080_3289d0a6d88a04c47c2406f226395f36_rle_crop_4030932226_0.png.png imagette284384971762921983/1762921747_2572622_1393989178_9eae8a33595eb637b12a2eef933e41b2_rle_crop_4030932686_0.png.png imagette284384971762921983/1762921503_2560859_1393989079_d30b483acaa042774335543b270d44d0_rle_crop_4030932045_0.png.png imagette284384971762921983/1762921865_2575866_1393989243_873f24c7c9c97c16e2ff398feb0b30fe_rle_crop_4030933268_0.png.png imagette284384991762921983/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/0be3a3c1c85d179c72b1beb8a8cfb637_87743838.png imagette284384971762921983 28438499 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=28438499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284384991762921983 28438488 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=28438488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393988959: '1762921265_2549150_1393988895_606f58482ecfa8d652469a9a072e061f_rle_crop_4030930796_0.png', 1393988960: '1762921265_2549150_1393988893_cd13c6566f542d554c246923b7d1489f_rle_crop_4030930810_0.png', 1393989066: '1762921405_2555866_1393988948_df5de57367f22078ad415776fd6fc95a_rle_crop_4030931910_0.png', 1393989134: '1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932268_0.png', 1393989135: '1762921523_2561337_1393989005_1e94303c7133104f4756488e7e11ca1f_rle_crop_4030932290_0.png', 1393989267: '1762921747_2572622_1393989148_bc5d7042bc02f603360495a5114b6bb8_rle_crop_4030932694_0.png', 1393989389: '1762921886_2577953_1393989221_17e71c9c7f94bc9ead1a1c89df37158f_rle_crop_4030933420_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/55659b01c937ce44a12c2dba1166776b_17019702.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b370995aea77a8ee91d58469aa1c8df8_85811101.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/0d5139c456cafd8680ef409f2608a8c7_91703195.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/04e1e02c13d4f7d3d83dedec0cdcb295_2635752.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c4c9e850cc8e2f121171c7a8381e6e47_72874048.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/7406ce12f3e2e1318ac9ac08073870cd_28636198.png change filename to text .imagette284384881762921983/ imagette284384881762921983/1762921265_2549150_1393988895_606f58482ecfa8d652469a9a072e061f_rle_crop_4030930796_0.png.png imagette284384881762921983/1762921747_2572622_1393989148_bc5d7042bc02f603360495a5114b6bb8_rle_crop_4030932694_0.png.png imagette284384881762921983/1762921265_2549150_1393988893_cd13c6566f542d554c246923b7d1489f_rle_crop_4030930810_0.png.png imagette284384881762921983/1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932268_0.png.png imagette284384881762921983/1762921886_2577953_1393989221_17e71c9c7f94bc9ead1a1c89df37158f_rle_crop_4030933420_0.png.png imagette284384881762921983/1762921405_2555866_1393988948_df5de57367f22078ad415776fd6fc95a_rle_crop_4030931910_0.png.png imagette284384881762921983/1762921523_2561337_1393989005_1e94303c7133104f4756488e7e11ca1f_rle_crop_4030932290_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/bda84d0f6575ea866aae242bf6c351c7_48096790.png imagette284384881762921983 28438490 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=28438490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393989193: '1762921628_2567113_1393989101_02df4413889418296c489decbebfda22_rle_crop_4030932468_0.png', 1393989386: '1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933486_0.png', 1393989385: '1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933488_0.png', 1393989384: '1762921886_2577953_1393989212_05d151c7d2af035c48ed0edbc8fde754_rle_crop_4030933477_0.png', 1393989264: '1762921747_2572622_1393989142_1dfd94bde1394ac553e8f46049b6718e_rle_crop_4030932762_0.png', 1393989263: '1762921747_2572622_1393989142_1dfd94bde1394ac553e8f46049b6718e_rle_crop_4030932765_0.png', 1393989262: '1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932745_0.png', 1393989261: '1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932741_0.png', 1393989260: '1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932742_0.png', 1393989259: '1762921747_2572622_1393989144_7f9ff4d077632f52fbe4cb49ddd30c85_rle_crop_4030932731_0.png', 1393989062: '1762921405_2555866_1393988947_62348eb58a1310e96a965a992a31cace_rle_crop_4030931926_0.png', 1393989192: '1762921628_2567113_1393989101_02df4413889418296c489decbebfda22_rle_crop_4030932466_0.png', 1393989190: '1762921628_2567113_1393989103_79762dd84884a25814916c1157b92a84_rle_crop_4030932457_0.png', 1393989130: '1762921523_2561337_1393989007_507db051f550ea5ff9ccf5a24975697c_rle_crop_4030932278_0.png', 1393989129: '1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932273_0.png', 1393989128: '1762921523_2561337_1393989080_3289d0a6d88a04c47c2406f226395f36_rle_crop_4030932229_0.png', 1393989116: '1762921503_2560859_1393989077_8e06672693f2203f3e9e9635e8170dfb_rle_crop_4030932066_0.png', 1393989115: '1762921503_2560859_1393989077_8e06672693f2203f3e9e9635e8170dfb_rle_crop_4030932065_0.png', 1393989114: '1762921503_2560859_1393989077_8e06672693f2203f3e9e9635e8170dfb_rle_crop_4030932061_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/29ed1a365471209466ee30cc47fd3928_4873273.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/2b35cf9dd61a986baf2236ef8a03a603_30548221.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c96142df4622bdddb13cdcf51691cd9a_13330920.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/d7baecb64433f30d320d8f5b769502a9_78881720.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/cad8f9372aaa1bd30ab99c0b32dd2693_62627420.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/595b0c29e4fc438386f8f6e0751550f9_94036325.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f1d232c8b13f621a9c9f7be0fc61c9a4_24024892.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6b44344c6dab1b5e64624b43a694dc67_22173175.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/382f07a852ac1068958777d7584657d3_44076119.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/840a4a808f60bf07f0a028ac8fd3b5a7_89747580.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/8b46c7eb9dea03f0e22ba3e853fd1e4d_19921171.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/675f3ee690ab180c36576b7ccf7e0bc3_84055665.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/10a9513c76136a9baec78f95168ea56e_20122562.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/80cbd26924b4786acb39d7d1d06e8a63_40837631.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/b368bb2a54aeb9757a246c1e18ae9693_92600146.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/201b01021aedf8e06ce80d5b985e582d_50907211.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/e6d4c0802e115517782f49d4ac10a202_32213358.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/6637680c64ea2b8a17a38da6a320409c_88939523.png change filename to text .imagette284384901762921984/ imagette284384901762921984/1762921886_2577953_1393989212_05d151c7d2af035c48ed0edbc8fde754_rle_crop_4030933477_0.png.png imagette284384901762921984/1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933488_0.png.png imagette284384901762921984/1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932745_0.png.png imagette284384901762921984/1762921628_2567113_1393989101_02df4413889418296c489decbebfda22_rle_crop_4030932466_0.png.png imagette284384901762921984/1762921628_2567113_1393989103_79762dd84884a25814916c1157b92a84_rle_crop_4030932457_0.png.png imagette284384901762921984/1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932273_0.png.png imagette284384901762921984/1762921503_2560859_1393989077_8e06672693f2203f3e9e9635e8170dfb_rle_crop_4030932066_0.png.png imagette284384901762921984/1762921503_2560859_1393989077_8e06672693f2203f3e9e9635e8170dfb_rle_crop_4030932061_0.png.png imagette284384901762921984/1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932742_0.png.png imagette284384901762921984/1762921523_2561337_1393989007_507db051f550ea5ff9ccf5a24975697c_rle_crop_4030932278_0.png.png imagette284384901762921984/1762921747_2572622_1393989142_1dfd94bde1394ac553e8f46049b6718e_rle_crop_4030932762_0.png.png imagette284384901762921984/1762921747_2572622_1393989142_1dfd94bde1394ac553e8f46049b6718e_rle_crop_4030932765_0.png.png imagette284384901762921984/1762921747_2572622_1393989143_8af6fbae848e281e6f60b44d77f0ffad_rle_crop_4030932741_0.png.png imagette284384901762921984/1762921628_2567113_1393989101_02df4413889418296c489decbebfda22_rle_crop_4030932468_0.png.png imagette284384901762921984/1762921405_2555866_1393988947_62348eb58a1310e96a965a992a31cace_rle_crop_4030931926_0.png.png imagette284384901762921984/1762921747_2572622_1393989144_7f9ff4d077632f52fbe4cb49ddd30c85_rle_crop_4030932731_0.png.png imagette284384901762921984/1762921886_2577953_1393989211_d12f6dcabfbdabc2839e2368ee60abe3_rle_crop_4030933486_0.png.png imagette284384901762921984/1762921503_2560859_1393989077_8e06672693f2203f3e9e9635e8170dfb_rle_crop_4030932065_0.png.png imagette284384901762921984/1762921523_2561337_1393989080_3289d0a6d88a04c47c2406f226395f36_rle_crop_4030932229_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/0510d797193bf6ce52186d87098d2723_28582108.png imagette284384901762921984 28438498 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=28438498 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393989137: '1762921523_2561337_1393989080_3289d0a6d88a04c47c2406f226395f36_rle_crop_4030932228_0.png', 1393989138: '1762921523_2561337_1393989020_ab086be0bdb843d7c4f84bffc22f7937_rle_crop_4030932242_0.png', 1393989139: '1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932267_0.png', 1393989197: '1762921628_2567113_1393989099_c028bb0e0ea686ec74a424247f43d3db_rle_crop_4030932482_0.png', 1393989271: '1762921747_2572622_1393989148_bc5d7042bc02f603360495a5114b6bb8_rle_crop_4030932700_0.png', 1393989272: '1762921747_2572622_1393989145_4b8159334ac9e0e242b4fd0fe2902754_rle_crop_4030932717_0.png', 1393989273: '1762921747_2572622_1393989144_7f9ff4d077632f52fbe4cb49ddd30c85_rle_crop_4030932729_0.png', 1393989367: '1762921865_2575866_1393989241_85c882ae6b095dae2c2ac115cece31be_rle_crop_4030933281_0.png', 1393989391: '1762921886_2577953_1393989213_5e87876022b20c52ec9f454b9e622bdb_rle_crop_4030933450_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/f2254fd79730cd6c99890b8ad777142b_25903278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/c0f2d0f81b06d1ef212ae74c43d3c9fe_31352278.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/1dea5830e722e8a3202e612bb0aa4e6e_89555661.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/db1303653d19d0ceb108408a6d54c371_7510531.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/7dbeeec4b2298919c9f1be71d6151853_86819634.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/73c7c8e173e2952f5bd75ce33178a704_75697737.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/fcd60753a5b7bb2df8f243f39f3dce9a_80118224.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/d7f661b5ec79d0e363bc9cab054685a8_68638242.png change filename to text .imagette284384981762921985/ imagette284384981762921985/1762921747_2572622_1393989148_bc5d7042bc02f603360495a5114b6bb8_rle_crop_4030932700_0.png.png imagette284384981762921985/1762921865_2575866_1393989241_85c882ae6b095dae2c2ac115cece31be_rle_crop_4030933281_0.png.png imagette284384981762921985/1762921523_2561337_1393989011_830494b29a5b959aed13a07b1596a4e6_rle_crop_4030932267_0.png.png imagette284384981762921985/1762921747_2572622_1393989144_7f9ff4d077632f52fbe4cb49ddd30c85_rle_crop_4030932729_0.png.png imagette284384981762921985/1762921523_2561337_1393989020_ab086be0bdb843d7c4f84bffc22f7937_rle_crop_4030932242_0.png.png imagette284384981762921985/1762921628_2567113_1393989099_c028bb0e0ea686ec74a424247f43d3db_rle_crop_4030932482_0.png.png imagette284384981762921985/1762921523_2561337_1393989080_3289d0a6d88a04c47c2406f226395f36_rle_crop_4030932228_0.png.png imagette284384981762921985/1762921886_2577953_1393989213_5e87876022b20c52ec9f454b9e622bdb_rle_crop_4030933450_0.png.png imagette284384981762921985/1762921747_2572622_1393989145_4b8159334ac9e0e242b4fd0fe2902754_rle_crop_4030932717_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3e5d68b6795d36e4f5dffb839979e241_65249155.png imagette284384981762921985 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28438484 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28438500,28438501,28438502,28438503,28438504,28438505,28438506,28438507,28438508,28438509,28438510,28438511?tags=Carton_gris,plastique,Teint_Dans_La_Masse,metal,papier,autre_refus,environnement,kraft,flou,cartonnette,Carton_brun,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1393989382] : ('0.03998445298432011',) no score found for photo 1393989382 We are sending mail with results at report@fotonower.com args[1393989380] : ('0.03998445298432011',) no score found for photo 1393989380 We are sending mail with results at report@fotonower.com args[1393989378] : ('0.03998445298432011',) no score found for photo 1393989378 We are sending mail with results at report@fotonower.com args[1393989369] : ('0.03998445298432011',) no score found for photo 1393989369 We are sending mail with results at report@fotonower.com args[1393989364] : ('0.03998445298432011',) no score found for photo 1393989364 We are sending mail with results at report@fotonower.com args[1393989360] : ('0.03998445298432011',) no score found for photo 1393989360 We are sending mail with results at report@fotonower.com args[1393989356] : ('0.03998445298432011',) no score found for photo 1393989356 We are sending mail with results at report@fotonower.com args[1393989301] : ('0.03998445298432011',) no score found for photo 1393989301 We are sending mail with results at report@fotonower.com args[1393989297] : ('0.03998445298432011',) no score found for photo 1393989297 We are sending mail with results at report@fotonower.com args[1393989294] : ('0.03998445298432011',) no score found for photo 1393989294 We are sending mail with results at report@fotonower.com args[1393989293] : ('0.03998445298432011',) no score found for photo 1393989293 We are sending mail with results at report@fotonower.com args[1393989291] : ('0.03998445298432011',) no score found for photo 1393989291 We are sending mail with results at report@fotonower.com args[1393989286] : ('0.03998445298432011',) no score found for photo 1393989286 We are sending mail with results at report@fotonower.com refus_total : 0.03998445298432011 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=28438484 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_P28438484_12-11-2025_05_33_01.pdf results_Auto_P28438484_12-11-2025_05_33_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438484_12-11-2025_05_33_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28438484','results_Auto_P28438484_12-11-2025_05_33_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438484_12-11-2025_05_33_01.pdf','pdf','','0.25','0.03998445298432011') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28438484]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] map_info['map_portfolio_photo'] : {28438484: [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286, 1393989250, 1393989247, 1393989243, 1393989241, 1393989223, 1393989221, 1393989216, 1393989213, 1393989212, 1393989211, 1393989178, 1393989172, 1393989168, 1393989165, 1393989150, 1393989148, 1393989145, 1393989144, 1393989143, 1393989142, 1393989112, 1393989109, 1393989106, 1393989103, 1393989101, 1393989099, 1393989080, 1393989079, 1393989077, 1393989073, 1393989023, 1393989020, 1393989015, 1393989011, 1393989007, 1393989005, 1393988977, 1393988975, 1393988973, 1393988951, 1393988948, 1393988947, 1393988946, 1393988945, 1393988931, 1393988927, 1393988924, 1393988922, 1393988920, 1393988901, 1393988897, 1393988895, 1393988893, 1393988891, 1393988874]} final : False mtd_id 4302 list_pids : [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] 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, '4034379') ('4302', '28438484', '1393989382', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28438484', '1393989382', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379')] time used for this insertion : 0.017651081085205078 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.720626592636108 time spend to save output : 0.017851829528808594 total time spend for step 4 : 7.738478422164917 step5:split_time_score Wed Nov 12 05:33:08 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 : ['28438484'] 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 : [('28438484',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28438484) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393989382: {'path': 'temp/1762921980_2063093_1393989382_7a7da45dfe97250fa577471cb5de657c.jpg', 'extension': 'jpg'}, 1393989294: {'path': 'temp/1762921980_2063093_1393989294_f08f9810b48995a381ce82e365eb626c.jpg', 'extension': 'jpg'}, 1393989297: {'path': 'temp/1762921980_2063093_1393989297_c59e7d7bfa62893ca18301952cbeab88.jpg', 'extension': 'jpg'}, 1393989301: {'path': 'temp/1762921980_2063093_1393989301_596709bfbb987f31556a9bc30c1fcd05.jpg', 'extension': 'jpg'}, 1393989286: {'path': 'temp/1762921980_2063093_1393989286_c1439299fb289dda4a0bd232348eaa0d.jpg', 'extension': 'jpg'}, 1393989291: {'path': 'temp/1762921980_2063093_1393989291_202a0d16eabbbb742511d079d11e0f32.jpg', 'extension': 'jpg'}, 1393989293: {'path': 'temp/1762921980_2063093_1393989293_53ad95409e85009103ce2f1f63f57883.jpg', 'extension': 'jpg'}, 1393989369: {'path': 'temp/1762921980_2063093_1393989369_4a8f3655940e2ed4f5bdc0db3a38cbaa.jpg', 'extension': 'jpg'}, 1393989378: {'path': 'temp/1762921980_2063093_1393989378_052b445cd9ccb2a67d6dc8642a5979f1.jpg', 'extension': 'jpg'}, 1393989380: {'path': 'temp/1762921980_2063093_1393989380_7891fa179a2f20a1dfcbc8655a5c0132.jpg', 'extension': 'jpg'}, 1393989356: {'path': 'temp/1762921980_2063093_1393989356_fa2ba222036c8a104769c5f0551637cd.jpg', 'extension': 'jpg'}, 1393989360: {'path': 'temp/1762921980_2063093_1393989360_32cfc2b7fc06c5579740ebd6544e9b3e.jpg', 'extension': 'jpg'}, 1393989364: {'path': 'temp/1762921980_2063093_1393989364_53fb48ed7263bee5d1e9a3dbc51a625f.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 = 28438484; (('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 = 28438484 group by h (('05', 68),) 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=28438484 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 (28438484) 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 (28438484) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12112025 28438484 Nombre de photos uploadées : 68 / 23040 (0%) 12112025 28438484 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 12112025 28438484 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1393988874, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/da098089d92a63652bfa100855883864.jpg', 'username': None, 'uploaded_at': 1762921087, 'text': 'image_12112025_05_17_34_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393988901, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/dd5acaa6e03e3503de038f7a5b2e3134.jpg', 'username': None, 'uploaded_at': 1762921147, 'text': 'image_12112025_05_17_44_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393988897, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/3fbb8e19f046ad61e6877d6e3d09d335.jpg', 'username': None, 'uploaded_at': 1762921147, 'text': 'image_12112025_05_18_14_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393988895, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/12/606f58482ecfa8d652469a9a072e061f.jpg', 'username': None, 'uploaded_at': 1762921147, 'text': 'image_12112025_05_18_24_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 1.9073486328125e-05 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003252267837524414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28438484, '2025-11-12' ) 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-11-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2564236,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22817611694335938 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= 2564236 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2564236, 'dashboard_run_id': 2572593, 'mtr_portfolio_id': 28438270, 'dashboard_result_id': 17141907, '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_P28438270_12-11-2025_04_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438282, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2572593, 'mtr_portfolio_id': 28438406, 'dashboard_result_id': 17141908, '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_P28438406_12-11-2025_05_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438419, 'pht': 3726}}"}, {'dashboat_entry_day': 2564236, 'dashboard_run_id': 2572593, 'mtr_portfolio_id': 28438484, 'dashboard_result_id': 17141909, '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_P28438484_12-11-2025_05_30_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438499, '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 = 28438270 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28438270 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28438270 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28438270 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28438270 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28438270 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438270_12-11-2025_04_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28438270 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_P28438270_12-11-2025_04_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438281, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438282, 'pht': 3726}}" where mtr_portfolio_id = 28438270 and dashboard_run_id = 2572595 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 = 28438406 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28438406 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28438406 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28438406 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28438406 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28438406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438406_12-11-2025_05_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28438406 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_P28438406_12-11-2025_05_19_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438419, 'pht': 3726}}" where mtr_portfolio_id = 28438406 and dashboard_run_id = 2572595 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 = 28438484 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': 4034379, 'mtr_portfolio_id': 28438484, 'created_at': datetime.datetime(2025, 11, 12, 5, 33), 'result': '0.03998445298432011', 'result_long': None, 'result_double': None}] Qualite : 0.03998445298432011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28438484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438484_12-11-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28438484 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_P28438484_12-11-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438499, 'pht': 3726}}" where mtr_portfolio_id = 28438484 and dashboard_run_id = 2572595 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`=28438484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17141909, 0.03998445298432011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28438484_12-11-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28438488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28438489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28438490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28438491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28438492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28438493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28438494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28438495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28438496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28438497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28438498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28438499, '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 (28438270,28438406,28438484) result : ((1393987018,), (1393987249,), (1393988513,), (1393988875,), (1393988874,), (1393988891,), (1393988893,), (1393988895,), (1393988897,), (1393988901,), (1393988920,), (1393988922,), (1393988924,), (1393988927,), (1393988931,), (1393988945,), (1393988946,), (1393988947,), (1393988948,), (1393988951,), (1393988973,), (1393988975,), (1393988977,), (1393989005,), (1393989007,), (1393989011,), (1393989015,), (1393989020,), (1393989023,), (1393989073,), (1393989077,), (1393989079,), (1393989080,), (1393989099,), (1393989101,), (1393989103,), (1393989106,), (1393989109,), (1393989112,), (1393989142,), (1393989143,), (1393989144,), (1393989145,), (1393989148,), (1393989150,), (1393989165,), (1393989168,), (1393989172,), (1393989178,), (1393989211,), (1393989212,), (1393989213,), (1393989216,), (1393989221,), (1393989223,), (1393989241,), (1393989243,), (1393989247,), (1393989250,), (1393989286,), (1393989291,), (1393989293,), (1393989294,), (1393989297,), (1393989301,), (1393989356,), (1393989360,), (1393989364,), (1393989369,), (1393989378,), (1393989380,), (1393989382,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12112025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28438484]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] map_info['map_portfolio_photo'] : {28438484: [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286, 1393989250, 1393989247, 1393989243, 1393989241, 1393989223, 1393989221, 1393989216, 1393989213, 1393989212, 1393989211, 1393989178, 1393989172, 1393989168, 1393989165, 1393989150, 1393989148, 1393989145, 1393989144, 1393989143, 1393989142, 1393989112, 1393989109, 1393989106, 1393989103, 1393989101, 1393989099, 1393989080, 1393989079, 1393989077, 1393989073, 1393989023, 1393989020, 1393989015, 1393989011, 1393989007, 1393989005, 1393988977, 1393988975, 1393988973, 1393988951, 1393988948, 1393988947, 1393988946, 1393988945, 1393988931, 1393988927, 1393988924, 1393988922, 1393988920, 1393988901, 1393988897, 1393988895, 1393988893, 1393988891, 1393988874]} final : True mtd_id 4302 list_pids : [1393989382, 1393989380, 1393989378, 1393989369, 1393989364, 1393989360, 1393989356, 1393989301, 1393989297, 1393989294, 1393989293, 1393989291, 1393989286] Looping around the photos to save general results len do output : 1 /28438484Didn'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, '4034379') ('4302', '28438484', '1393989382', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379') ('4302', None, None, None, None, None, None, None, '4034379') ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '28438484', 'None', None, None, None, None, '4034379'), ('4302', '28438484', '1393989382', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989380', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989378', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989369', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989364', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989360', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989356', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989301', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989297', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989294', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989293', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989291', None, None, None, None, None, '4034379'), ('4302', '28438484', '1393989286', None, None, None, None, None, '4034379')] time used for this insertion : 0.0179135799407959 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4604196548461914 time spend to save output : 0.018226146697998047 total time spend for step 5 : 0.47864580154418945 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 (4034379) 2.28user 2.38system 0:12.75elapsed 36%CPU (0avgtext+0avgdata 162556maxresident)k 2536inputs+13984outputs (62major+73734minor)pagefaults 0swaps