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 : 2763529 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 (2815393) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2815393) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854863 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2815393'] with mtr_portfolio_ids : ['22854863'] and first list_photo_ids : [] new path : /proc/2763529/ Name: python3 Umask: 0002 State: R (running) Tgid: 2763529 Ngid: 0 Pid: 2763529 PPid: 2763528 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2763529 NSpid: 2763529 NSpgid: 2760273 NSsid: 2760273 VmPeak: 1107760 kB VmSize: 1107760 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98452 kB VmRSS: 98452 kB RssAnon: 60448 kB RssFile: 38004 kB RssShmem: 0 kB VmData: 866508 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2763529', 'Ngid': '0', 'Pid': '2763529', 'PPid': '2763528', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2763529', 'NSpid': '2763529', 'NSpgid': '2760273', 'NSsid': '2760273', 'VmPeak': '1107760 kB', 'VmSize': '1107760 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98452 kB', 'VmRSS': '98452 kB', 'RssAnon': '60448 kB', 'RssFile': '38004 kB', 'RssShmem': '0 kB', 'VmData': '866508 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '92'} ('datou_batch_current', '2763529', '1107760', '0', '1107760', '866508', '98452', b'', 'marlene', '2815393') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22854863) 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 (2815393 ) ) 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 (22854863) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357365619, 'portfolio_id': 22854863}, {'photo_id': 1357365274, 'portfolio_id': 22854863}, {'photo_id': 1357365236, 'portfolio_id': 22854863}, {'photo_id': 1357365233, 'portfolio_id': 22854863}, {'photo_id': 1357365232, 'portfolio_id': 22854863}, {'photo_id': 1357364855, 'portfolio_id': 22854863}, {'photo_id': 1357364632, 'portfolio_id': 22854863}, {'photo_id': 1357364629, 'portfolio_id': 22854863}, {'photo_id': 1357364609, 'portfolio_id': 22854863}, {'photo_id': 1357364580, 'portfolio_id': 22854863}, {'photo_id': 1357364553, 'portfolio_id': 22854863}, {'photo_id': 1357363793, 'portfolio_id': 22854863}, {'photo_id': 1357363769, 'portfolio_id': 22854863}, {'photo_id': 1357363744, 'portfolio_id': 22854863}, {'photo_id': 1357363650, 'portfolio_id': 22854863}, {'photo_id': 1357363401, 'portfolio_id': 22854863}, {'photo_id': 1357363384, 'portfolio_id': 22854863}, {'photo_id': 1357363381, 'portfolio_id': 22854863}, {'photo_id': 1357363379, 'portfolio_id': 22854863}, {'photo_id': 1357363377, 'portfolio_id': 22854863}, {'photo_id': 1357363376, 'portfolio_id': 22854863}, {'photo_id': 1357363358, 'portfolio_id': 22854863}, {'photo_id': 1357363356, 'portfolio_id': 22854863}, {'photo_id': 1357363353, 'portfolio_id': 22854863}, {'photo_id': 1357363351, 'portfolio_id': 22854863}, {'photo_id': 1357363348, 'portfolio_id': 22854863}, {'photo_id': 1357363345, 'portfolio_id': 22854863}, {'photo_id': 1357363294, 'portfolio_id': 22854863}, {'photo_id': 1357363292, 'portfolio_id': 22854863}, {'photo_id': 1357363268, 'portfolio_id': 22854863}, {'photo_id': 1357363266, 'portfolio_id': 22854863}, {'photo_id': 1357363263, 'portfolio_id': 22854863}, {'photo_id': 1357363260, 'portfolio_id': 22854863}, {'photo_id': 1357363257, 'portfolio_id': 22854863}, {'photo_id': 1357363254, 'portfolio_id': 22854863}, {'photo_id': 1357363207, 'portfolio_id': 22854863}, {'photo_id': 1357363197, 'portfolio_id': 22854863}, {'photo_id': 1357363194, 'portfolio_id': 22854863}, {'photo_id': 1357363191, 'portfolio_id': 22854863}, {'photo_id': 1357363186, 'portfolio_id': 22854863}, {'photo_id': 1357362926, 'portfolio_id': 22854863}, {'photo_id': 1357362923, 'portfolio_id': 22854863}, {'photo_id': 1357362921, 'portfolio_id': 22854863}, {'photo_id': 1357362919, 'portfolio_id': 22854863}, {'photo_id': 1357362918, 'portfolio_id': 22854863}, {'photo_id': 1357362888, 'portfolio_id': 22854863}, {'photo_id': 1357362886, 'portfolio_id': 22854863}, {'photo_id': 1357362883, 'portfolio_id': 22854863}, {'photo_id': 1357362881, 'portfolio_id': 22854863}, {'photo_id': 1357362879, 'portfolio_id': 22854863}, {'photo_id': 1357362876, 'portfolio_id': 22854863}, {'photo_id': 1357362828, 'portfolio_id': 22854863}, {'photo_id': 1357362826, 'portfolio_id': 22854863}, {'photo_id': 1357362823, 'portfolio_id': 22854863}, {'photo_id': 1357362808, 'portfolio_id': 22854863}, {'photo_id': 1357362806, 'portfolio_id': 22854863}, {'photo_id': 1357362802, 'portfolio_id': 22854863}, {'photo_id': 1357362799, 'portfolio_id': 22854863}, {'photo_id': 1357362797, 'portfolio_id': 22854863}, {'photo_id': 1357362793, 'portfolio_id': 22854863}, {'photo_id': 1357362774, 'portfolio_id': 22854863}, {'photo_id': 1357362770, 'portfolio_id': 22854863}, {'photo_id': 1357362767, 'portfolio_id': 22854863}, {'photo_id': 1357362764, 'portfolio_id': 22854863}, {'photo_id': 1357362720, 'portfolio_id': 22854863}, {'photo_id': 1357362717, 'portfolio_id': 22854863}, {'photo_id': 1357362716, 'portfolio_id': 22854863}, {'photo_id': 1357362715, 'portfolio_id': 22854863}, {'photo_id': 1357362714, 'portfolio_id': 22854863}, {'photo_id': 1357362687, 'portfolio_id': 22854863}, {'photo_id': 1357362685, 'portfolio_id': 22854863}, {'photo_id': 1357362683, 'portfolio_id': 22854863}, {'photo_id': 1357362682, 'portfolio_id': 22854863}] map_portfolio_id_photo_id: {22854863: [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744, 1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} ##### 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.016881465911865234 #### 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 Sat May 10 04:04:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) 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 : 22854863 get user id for portfolio 22854863 get sub ptf for main ptf 22854863, type 3726 and hashtags ['cartonnette', 'plastique', 'Teint_Dans_La_Masse', 'kraft', 'Carton_gris', 'papier', 'mal_croppe', 'Carton_brun', 'environnement', 'metal', 'flou', 'autre_refus'] 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`=22854863 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Teint_Dans_La_Masse','kraft','Carton_gris','papier','mal_croppe','Carton_brun','environnement','metal','flou','autre_refus')) 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`=22854863 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Teint_Dans_La_Masse','kraft','Carton_gris','papier','mal_croppe','Carton_brun','environnement','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22854863, 'sub_port_id': 22854864, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255458, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'metal': {'main_port_id': 22854863, 'sub_port_id': 22854865, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255459, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'kraft': {'main_port_id': 22854863, 'sub_port_id': 22854866, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255460, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'papier': {'main_port_id': 22854863, 'sub_port_id': 22854867, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255461, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'environnement': {'main_port_id': 22854863, 'sub_port_id': 22854868, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255462, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'mal_croppe': {'main_port_id': 22854863, 'sub_port_id': 22854869, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255463, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22854863, 'sub_port_id': 22854870, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255464, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'plastique': {'main_port_id': 22854863, 'sub_port_id': 22854871, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255465, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'autre_refus': {'main_port_id': 22854863, 'sub_port_id': 22854872, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255466, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'Carton_brun': {'main_port_id': 22854863, 'sub_port_id': 22854873, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255467, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'Carton_gris': {'main_port_id': 22854863, 'sub_port_id': 22854874, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255468, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}, 'cartonnette': {'main_port_id': 22854863, 'sub_port_id': 22854875, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255469, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22854864 , 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=22854863 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 (22854864) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854865 , 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=22854863 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 (22854865) result : ((1357363229,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854866 , 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=22854863 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 (22854866) result : ((1357362952,), (1357365271,), (1357365273,), (1357365751,), (1357365767,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854867 , 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=22854863 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 (22854867) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854868 , 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=22854863 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 (22854868) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854869 , 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=22854863 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 (22854869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854870 , 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=22854863 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 (22854870) result : ((1357362941,), (1357362942,), (1357363222,), (1357363232,), (1357363275,), (1357363276,), (1357363323,), (1357363324,), (1357363327,), (1357363328,), (1357363333,), (1357363334,), (1357363335,), (1357363337,), (1357363501,), (1357363561,), (1357363562,), (1357363563,), (1357363564,), (1357363565,), (1357363566,), (1357363567,), (1357363568,), (1357363909,), (1357363910,), (1357363911,), (1357363913,), (1357363914,), (1357364420,), (1357364421,), (1357364423,), (1357364424,), (1357364425,), (1357364426,), (1357364427,), (1357364428,), (1357364429,), (1357365245,), (1357365246,), (1357365742,), (1357365743,), (1357365744,), (1357365755,), (1357365756,), (1357365757,), (1357366624,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854871 , 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=22854863 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 (22854871) result : ((1357362951,), (1357363967,), (1357363968,), (1357365750,), (1357365763,), (1357365764,), (1357365765,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854872 , 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=22854863 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 (22854872) result : ((1357362943,), (1357363223,), (1357363224,), (1357363278,), (1357363329,), (1357363920,), (1357366629,), (1357366630,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854873 , 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=22854863 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 (22854873) result : ((1357362950,), (1357363226,), (1357363227,), (1357363239,), (1357363240,), (1357363241,), (1357363282,), (1357363283,), (1357363336,), (1357363340,), (1357363341,), (1357363947,), (1357363948,), (1357363949,), (1357363950,), (1357363951,), (1357363952,), (1357364499,), (1357364501,), (1357365260,), (1357365747,), (1357365748,), (1357365749,), (1357365760,), (1357365761,), (1357365783,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854874 , 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=22854863 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 (22854874) result : ((1357362944,), (1357363225,), (1357363233,), (1357363338,), (1357363339,), (1357363574,), (1357363928,), (1357363929,), (1357364436,), (1357364481,), (1357365746,), (1357365758,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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 22854875 , 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=22854863 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 (22854875) result : ((1357362947,), (1357362948,), (1357362949,), (1357363235,), (1357363236,), (1357363237,), (1357363279,), (1357363280,), (1357363281,), (1357363331,), (1357364488,), (1357364490,), (1357366638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22854863) result : ((1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) 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`=22854863 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Teint_Dans_La_Masse','kraft','Carton_gris','papier','mal_croppe','Carton_brun','environnement','metal','flou','autre_refus')) 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`=22854863 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','Teint_Dans_La_Masse','kraft','Carton_gris','papier','mal_croppe','Carton_brun','environnement','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22854863, 'sub_port_id': 22854876, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255470, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'metal': {'main_port_id': 22854863, 'sub_port_id': 22854877, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255471, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'kraft': {'main_port_id': 22854863, 'sub_port_id': 22854878, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255472, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'papier': {'main_port_id': 22854863, 'sub_port_id': 22854879, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255473, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'environnement': {'main_port_id': 22854863, 'sub_port_id': 22854880, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255474, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'mal_croppe': {'main_port_id': 22854863, 'sub_port_id': 22854881, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255475, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22854863, 'sub_port_id': 22854882, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255476, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'plastique': {'main_port_id': 22854863, 'sub_port_id': 22854883, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255477, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'autre_refus': {'main_port_id': 22854863, 'sub_port_id': 22854884, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255478, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'Carton_brun': {'main_port_id': 22854863, 'sub_port_id': 22854885, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255479, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'Carton_gris': {'main_port_id': 22854863, 'sub_port_id': 22854886, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255480, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}, 'cartonnette': {'main_port_id': 22854863, 'sub_port_id': 22854887, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15255481, 'last_updated_at': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 10, 3, 58, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 10, 3, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854876,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854864 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854877,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22854887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22854875 lien utilise dans velours : https://www.fotonower.com/velours/22854876,22854877,22854878,22854879,22854880,22854881,22854882,22854883,22854884,22854885,22854886,22854887?tags=flou,metal,kraft,papier,environnement,mal_croppe,Teint_Dans_La_Masse,plastique,autre_refus,Carton_brun,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22854863]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] map_info['map_portfolio_photo'] : {22854863: [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744, 1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : False mtd_id 4302 list_pids : [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] Looping around the photos to save general results len do output : 1 /22854863. 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, '2815393') ('4302', '22854863', '1357365619', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22854863', "{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}", None, None, None, None, '2815393'), ('4302', '22854863', '1357365619', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393')] time used for this insertion : 0.01768326759338379 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4516453742980957 time spend to save output : 0.018014192581176758 total time spend for step 1 : 1.4696595668792725 step2:final Sat May 10 04:04:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22854863) 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 22854863 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357362687,1357362685,1357362683,1357362682,1357362720,1357362717,1357362716,1357362715,1357362714,1357362774,1357362770,1357362767,1357362764,1357362808,1357362806,1357362802,1357362799,1357362797,1357362793,1357362828,1357362826,1357362823,1357362888,1357362886,1357362883,1357362881,1357362879,1357362876,1357362926,1357362923,1357362921,1357362919,1357362918,1357363207,1357363197,1357363194,1357363191,1357363186,1357363268,1357363266,1357363263,1357363260,1357363257,1357363254,1357363294,1357363292,1357363358,1357363356,1357363353,1357363351,1357363348,1357363345,1357363401,1357363384,1357363381,1357363379,1357363377,1357363376,1357363793,1357363650,1357363769,1357363744,1357364855,1357364632,1357364629,1357364609,1357364580,1357364553,1357365274,1357365236,1357365233,1357365232,1357365619); 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([22854863]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} new output for save of step final : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] map_info['map_portfolio_photo'] : {22854863: [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744, 1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : False mtd_id 4302 list_pids : [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] Looping around the photos to save general results len do output : 14 /1357365619.Didn't retrieve data . /1357365274.Didn't retrieve data . /1357365236.Didn't retrieve data . /1357365233.Didn't retrieve data . /1357365232.Didn't retrieve data . /1357364855.Didn't retrieve data . /1357364632.Didn't retrieve data . /1357364629.Didn't retrieve data . /1357364609.Didn't retrieve data . /1357364580.Didn't retrieve data . /1357364553.Didn't retrieve data . /1357363793.Didn't retrieve data . /1357363769.Didn't retrieve data . /1357363744.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, '2815393') ('4302', '22854863', '1357365619', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22854863', '1357365619', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357365274', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357365236', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357365233', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357365232', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357364855', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357364632', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357364629', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357364609', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357364580', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357364553', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357363793', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357363769', '0.04785810983016579', None, None, None, None, '2815393'), ('4302', '22854863', '1357363744', '0.04785810983016579', None, None, None, None, '2815393')] time used for this insertion : 0.014251947402954102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0728445053100586 time spend to save output : 0.014996767044067383 total time spend for step 2 : 0.08784127235412598 step3:velours_tree Sat May 10 04:04:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} input_args_next_step : {22854863: ()} output_args : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} args : 22854863 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 : ({'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) 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([22854863]) 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.29291844367980957 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.29295992851257324 step4:send_mail_cod Sat May 10 04:04:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} input_args_next_step : {1357365619: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357365619 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357365274 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357365236 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357365233 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357365232 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357364855 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357364632 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357364629 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357364609 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357364580 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357364553 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357363793 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357363769 depend.output_id : 0 input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ()} output_args : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',)} args : 1357363744 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 : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} input_args_next_step : {1357365619: ('0.04785810983016579',), 1357365274: ('0.04785810983016579',), 1357365236: ('0.04785810983016579',), 1357365233: ('0.04785810983016579',), 1357365232: ('0.04785810983016579',), 1357364855: ('0.04785810983016579',), 1357364632: ('0.04785810983016579',), 1357364629: ('0.04785810983016579',), 1357364609: ('0.04785810983016579',), 1357364580: ('0.04785810983016579',), 1357364553: ('0.04785810983016579',), 1357363793: ('0.04785810983016579',), 1357363769: ('0.04785810983016579',), 1357363744: ('0.04785810983016579',), 22854863: ()} output_args : {22854863: [{'flou': 22854864, 'metal': 22854865, 'kraft': 22854866, 'papier': 22854867, 'environnement': 22854868, 'mal_croppe': 22854869, 'Teint_Dans_La_Masse': 22854870, 'plastique': 22854871, 'autre_refus': 22854872, 'Carton_brun': 22854873, 'Carton_gris': 22854874, 'cartonnette': 22854875}]} args : 22854863 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 :15, first value : ('0.04785810983016579',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1357365619,1357365274,1357365236,1357365233,1357365232,1357364855,1357364632,1357364629,1357364609,1357364580,1357364553,1357363793,1357363769,1357363744) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357363744 begin to download photo : 1357364553 begin to download photo : 1357364629 begin to download photo : 1357365232 begin to download photo : 1357365274 download finish for photo 1357363744 begin to download photo : 1357363769 download finish for photo 1357365274 begin to download photo : 1357365619 download finish for photo 1357364553 begin to download photo : 1357364580 download finish for photo 1357365232 begin to download photo : 1357365233 download finish for photo 1357364629 begin to download photo : 1357364632 download finish for photo 1357365619 download finish for photo 1357363769 begin to download photo : 1357363793 download finish for photo 1357365233 begin to download photo : 1357365236 download finish for photo 1357364580 begin to download photo : 1357364609 download finish for photo 1357364632 begin to download photo : 1357364855 download finish for photo 1357363793 download finish for photo 1357365236 download finish for photo 1357364609 download finish for photo 1357364855 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228548641746842700/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22854863_10-05-2025_04_05_00.pdf 22854864 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854864 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228548641746842700 22854865 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854865 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357363229: '1746841992_707225_1357362823_105a353f6a7579782179c3b4fb44cb22_rle_crop_3792660941_0.png'} change filename to text .imagette228548651746842700/ imagette228548651746842700/1746841992_707225_1357362823_105a353f6a7579782179c3b4fb44cb22_rle_crop_3792660941_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6cbc6fee87024169584d1020800e315e_43887280.png imagette228548651746842700 22854866 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854866 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362952: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660652_0.png', 1357365271: '1746842413_718471_1357363358_7b7dd96656c63d2f7054d2459332401c_rle_crop_3792689112_0.png', 1357365273: '1746842413_718471_1357363292_04ad92c6dcd2bd4f611644a6c6b1e238_rle_crop_3792689133_0.png', 1357365751: '1746842486_323654_1357364553_568e7e96ba2bd5bf656a0636340eb721_rle_crop_3792689991_0.png', 1357365767: '1746842473_736255_1357363353_086e964855a512b79c590af1b9c6d26b_rle_crop_3792690030_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/46ca98a8295d4b783f765c25824fdbb9_70178871.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/021ab1944dff4ca59dbfb92aa5097524_86506219.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/69460b59627acda78b40f6aafd70e044_10666445.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/62c46dd9d7e0842707e5a1ec9bfdecba_68524009.png change filename to text .imagette228548661746842700/ imagette228548661746842700/1746842413_718471_1357363292_04ad92c6dcd2bd4f611644a6c6b1e238_rle_crop_3792689133_0.png.png imagette228548661746842700/1746842486_323654_1357364553_568e7e96ba2bd5bf656a0636340eb721_rle_crop_3792689991_0.png.png imagette228548661746842700/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660652_0.png.png imagette228548661746842700/1746842413_718471_1357363358_7b7dd96656c63d2f7054d2459332401c_rle_crop_3792689112_0.png.png imagette228548661746842700/1746842473_736255_1357363353_086e964855a512b79c590af1b9c6d26b_rle_crop_3792690030_0.png.png imagette228548691746842700/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/28fb0d051c36724763721216790fcf74_9490514.png imagette228548661746842700 22854869 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228548691746842700 22854871 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362951: '1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660678_0.png', 1357363967: '1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680314_0.png', 1357363968: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680326_0.png', 1357365750: '1746842486_323654_1357364580_759715dd6bbe5d624023f972587296e3_rle_crop_3792689972_0.png', 1357365763: '1746842473_736255_1357363353_086e964855a512b79c590af1b9c6d26b_rle_crop_3792690028_0.png', 1357365764: '1746842473_736255_1357363353_086e964855a512b79c590af1b9c6d26b_rle_crop_3792690024_0.png', 1357365765: '1746842473_736255_1357363351_899d4035898c4d6cc7a1fba6f12a8352_rle_crop_3792690042_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/b66f1e687ef87d963a88f1ea5a6ef229_60256665.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/098d1de93109de42c1ca9835a4bb303d_54479271.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/deabb1292c29a1475cb17fc9cb15c388_34223857.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/fa40651a043b08ae969e373513de7ea8_65878942.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d430b3881e13a37fe4c35029d5cfef22_28987322.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/db71a83cfe653522a8ab0de7b767d747_6349134.png change filename to text .imagette228548711746842700/ imagette228548711746842700/1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680314_0.png.png imagette228548711746842700/1746842473_736255_1357363353_086e964855a512b79c590af1b9c6d26b_rle_crop_3792690024_0.png.png imagette228548711746842700/1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660678_0.png.png imagette228548711746842700/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680326_0.png.png imagette228548711746842700/1746842473_736255_1357363351_899d4035898c4d6cc7a1fba6f12a8352_rle_crop_3792690042_0.png.png imagette228548711746842700/1746842486_323654_1357364580_759715dd6bbe5d624023f972587296e3_rle_crop_3792689972_0.png.png imagette228548711746842700/1746842473_736255_1357363353_086e964855a512b79c590af1b9c6d26b_rle_crop_3792690028_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/b7d56b71c7b6888636f2699071654319_17079871.png imagette228548711746842700 22854872 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362943: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660648_0.png', 1357363223: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660923_0.png', 1357363224: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660916_0.png', 1357363278: '1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661186_0.png', 1357363329: '1746842126_4151155_1357363191_a24bbdc72a67ac37d4af67e534c760f0_rle_crop_3792665600_0.png', 1357363920: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680325_0.png', 1357366629: '1746842651_738715_1357365236_fdf235c287c4aec2f305e2a3b6e637ec_rle_crop_3792690927_0.png', 1357366630: '1746842651_738715_1357365233_3d0edb8e70ff79e041219e53c60e6a89_rle_crop_3792690939_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/31bddbf8542872351a609e561d83498a_17622086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/94e5041a93e7fa11933287f017f6fc16_90155362.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/fbec8bbe71c7ea3925c5912d9cc01de4_62834249.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9227e067111f6246131ed6a3ae6b5b51_11597243.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/c8136da2722122b16aafa8f51756a88e_93772596.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/5bdd8642e46368221228deea3e70d81a_9942125.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/418b521bf62447a1ec0fcf45f43fa618_68178702.png change filename to text .imagette228548721746842700/ imagette228548721746842700/1746842126_4151155_1357363191_a24bbdc72a67ac37d4af67e534c760f0_rle_crop_3792665600_0.png.png imagette228548721746842700/1746842651_738715_1357365233_3d0edb8e70ff79e041219e53c60e6a89_rle_crop_3792690939_0.png.png imagette228548721746842700/1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661186_0.png.png imagette228548721746842700/1746842651_738715_1357365236_fdf235c287c4aec2f305e2a3b6e637ec_rle_crop_3792690927_0.png.png imagette228548721746842700/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660648_0.png.png imagette228548721746842700/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660916_0.png.png imagette228548721746842700/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660923_0.png.png imagette228548721746842700/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680325_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/af6e563907e5b06181cdb0aa7d4b9afa_92250311.png imagette228548721746842700 22854875 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362947: '1746841933_706780_1357362806_90900f51b2dd67420cb989e132c0ce30_rle_crop_3792660665_0.png', 1357362948: '1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660679_0.png', 1357362949: '1746841933_706780_1357362797_42e521b0b0778920bd12858374afecca_rle_crop_3792660712_0.png', 1357363235: '1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660957_0.png', 1357363236: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660981_0.png', 1357363237: '1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660972_0.png', 1357363279: '1746842053_707852_1357362881_70a07c5b7811718b04cdf34ed6ffec7c_rle_crop_3792661199_0.png', 1357363280: '1746842053_707852_1357362879_567472a2e5fffe277d71968b831aa671_rle_crop_3792661210_0.png', 1357363281: '1746842053_707852_1357362876_979712300dce78d2b098a7af1dca48ac_rle_crop_3792661221_0.png', 1357363331: '1746842126_4151155_1357363197_0760143af0b95393f3392b02cb9ae0ed_rle_crop_3792665581_0.png', 1357364488: '1746842366_4158869_1357363377_5f186cfa8215e2368564c4ba9e463225_rle_crop_3792689042_0.png', 1357364490: '1746842366_4158869_1357363376_bec131ca784b4b2f97a1c36ef3767b5b_rle_crop_3792689053_0.png', 1357366638: '1746842651_738715_1357365236_fdf235c287c4aec2f305e2a3b6e637ec_rle_crop_3792690926_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/73d2d6d594187d764e5c17f20951bb26_76201195.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/62b815e389b4b6afca6ea5eae449b615_50885094.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d306183604c482b3d9d60f597b1288e3_25871394.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a766b2f336dfa2d12af6c8a6d0fbad9a_38175475.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/46750094d5ae5713b79687374aa15c2f_1010034.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e2d3b12973545e0622fd03f42e9c3cd0_9238018.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/c9feb11033213ee88a6f6de32aaa17c0_76879794.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a81301dd1f8c460c5515df1f32038cf3_75962837.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a921e67b17a25e2964df6190839e77e6_66416457.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e741095c64deaf1367b81942b2c3c914_93261113.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/390f2ba1549e20671eb0ef43717973de_44577325.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d9c6c038c275173acd6ff1ba6edd8965_98841834.png change filename to text .imagette228548751746842701/ imagette228548751746842701/1746841933_706780_1357362802_c1451008f9fee7b6ea2a9234dbefb80b_rle_crop_3792660679_0.png.png imagette228548751746842701/1746842366_4158869_1357363376_bec131ca784b4b2f97a1c36ef3767b5b_rle_crop_3792689053_0.png.png imagette228548751746842701/1746842053_707852_1357362876_979712300dce78d2b098a7af1dca48ac_rle_crop_3792661221_0.png.png imagette228548751746842701/1746841933_706780_1357362797_42e521b0b0778920bd12858374afecca_rle_crop_3792660712_0.png.png imagette228548751746842701/1746842366_4158869_1357363377_5f186cfa8215e2368564c4ba9e463225_rle_crop_3792689042_0.png.png imagette228548751746842701/1746842053_707852_1357362881_70a07c5b7811718b04cdf34ed6ffec7c_rle_crop_3792661199_0.png.png imagette228548751746842701/1746842651_738715_1357365236_fdf235c287c4aec2f305e2a3b6e637ec_rle_crop_3792690926_0.png.png imagette228548751746842701/1746842053_707852_1357362879_567472a2e5fffe277d71968b831aa671_rle_crop_3792661210_0.png.png imagette228548751746842701/1746841933_706780_1357362806_90900f51b2dd67420cb989e132c0ce30_rle_crop_3792660665_0.png.png imagette228548751746842701/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660981_0.png.png imagette228548751746842701/1746842126_4151155_1357363197_0760143af0b95393f3392b02cb9ae0ed_rle_crop_3792665581_0.png.png imagette228548751746842701/1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660957_0.png.png imagette228548751746842701/1746842004_4148145_1357362770_54e21b55b0d7f45e00b536bda8495ec2_rle_crop_3792660972_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/ef8e892fe5734d8b657da4f2a8f67b63_75210220.png imagette228548751746842701 22854870 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357364428: '1746842351_710968_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673178_0.png', 1357363910: '1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680317_0.png', 1357363911: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680321_0.png', 1357363913: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680355_0.png', 1357363914: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680363_0.png', 1357364420: '1746842351_710968_1357362774_60a416675a3010040f6a2c49559b3e99_bib_crop_3792673129_0.jpg', 1357364421: '1746842351_710968_1357362774_60a416675a3010040f6a2c49559b3e99_rle_crop_3792688939_0.png', 1357364423: '1746842351_710968_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673144_0.png', 1357364424: '1746842351_710968_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673143_0.png', 1357364425: '1746842351_710968_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673155_0.png', 1357364426: '1746842351_710968_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673160_0.png', 1357364427: '1746842351_710968_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673165_0.png', 1357363909: '1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680312_0.png', 1357364429: '1746842351_710968_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673181_0.png', 1357365245: '1746842413_718471_1357363358_7b7dd96656c63d2f7054d2459332401c_rle_crop_3792689117_0.png', 1357365246: '1746842413_718471_1357363292_04ad92c6dcd2bd4f611644a6c6b1e238_rle_crop_3792689136_0.png', 1357365742: '1746842486_323654_1357364632_972c67d39ab8e0f44bbabbc8f55e336c_rle_crop_3792689939_0.png', 1357365743: '1746842486_323654_1357364609_f0c15372d2df2ec1b3538b637d00c2c1_rle_crop_3792689964_0.png', 1357365744: '1746842486_323654_1357364580_759715dd6bbe5d624023f972587296e3_rle_crop_3792689973_0.png', 1357365755: '1746842473_736255_1357363348_12559a4a19d44e10d00229d65e9e50bf_rle_crop_3792690064_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/c8c878bdd1523c11d8192ff060f68c5d_7133318.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d1bdd0d8f559f05c9af70ed144efb995_12840878.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/92084093aff846677f62c79e440be911_73478108.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/4d59afdca4626ea0993f6d9493d174b2_93719047.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/50dd9d9784774435721b100b9c48a7c8_87203866.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/3212d330a88b49641f81c132d0e7d664_65573602.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/54bda5468d16c0626103d2234422df0e_57085947.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6ca4cc7129624a63f94cb675a4e29bed_84593242.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/f5aa637dc89596451959fcc8fdd25051_14016224.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/57bb5d36768f24b92d1716468dd3c924_51803935.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/91ee405266c1dbd63a0b322352618e93_45053312.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6ace68aa1d38cb12acbda35453e32aa2_36767289.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/70e050ed7a5822d5c9dc1b2f704f9abf_11497527.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/1ffbac992d5046a53e071a0b10a5830e_63773923.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/62095feea2b74d77fb30370f2507be00_68888710.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/215c331074fb4f7006ab744180ec51a5_13370112.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/b82993db0214f46f9efc2ab9a9380466_22723172.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/01014d2e99d122d42b06ffa6be7422f6_73689024.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/2c2868bcb87e5ffb5a0060355b6e6be2_39353436.png change filename to text .imagette228548701746842702/ imagette228548701746842702/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680363_0.png.png imagette228548701746842702/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680355_0.png.png imagette228548701746842702/1746842351_710968_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673181_0.png.png imagette228548701746842702/1746842473_736255_1357363348_12559a4a19d44e10d00229d65e9e50bf_rle_crop_3792690064_0.png.png imagette228548701746842702/1746842351_710968_1357362774_60a416675a3010040f6a2c49559b3e99_rle_crop_3792688939_0.png.png imagette228548701746842702/1746842351_710968_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673165_0.png.png imagette228548701746842702/1746842413_718471_1357363358_7b7dd96656c63d2f7054d2459332401c_rle_crop_3792689117_0.png.png imagette228548701746842702/1746842351_710968_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673144_0.png.png imagette228548701746842702/1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680317_0.png.png imagette228548701746842702/1746842486_323654_1357364632_972c67d39ab8e0f44bbabbc8f55e336c_rle_crop_3792689939_0.png.png imagette228548701746842702/1746842351_710968_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673155_0.png.png imagette228548701746842702/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680321_0.png.png imagette228548701746842702/1746842351_710968_1357362774_60a416675a3010040f6a2c49559b3e99_bib_crop_3792673129_0.jpg.jpg imagette228548701746842702/1746842351_710968_1357362715_5362d3ebdbf8ae01c75d4e98fe0a3ca7_rle_crop_3792673160_0.png.png imagette228548701746842702/1746842351_710968_1357362714_d8bdb23a478c55c7f816e9d8d576faff_rle_crop_3792673178_0.png.png imagette228548701746842702/1746842351_710968_1357362717_d522d3775d41efc5f59f49aa73e32096_rle_crop_3792673143_0.png.png imagette228548701746842702/1746842486_323654_1357364580_759715dd6bbe5d624023f972587296e3_rle_crop_3792689973_0.png.png imagette228548701746842702/1746842290_710489_1357363266_a2d578612f2fce744446285edb36b2e9_rle_crop_3792680312_0.png.png imagette228548701746842702/1746842486_323654_1357364609_f0c15372d2df2ec1b3538b637d00c2c1_rle_crop_3792689964_0.png.png imagette228548701746842702/1746842413_718471_1357363292_04ad92c6dcd2bd4f611644a6c6b1e238_rle_crop_3792689136_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/ae36ccdae71dd467f7d585d1178e27a7_83153796.png imagette228548701746842702 22854873 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357363949: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680358_0.png', 1357365783: '1746842533_737007_1357363793_687401e23c047b1c9c6d3bfa1c810964_rle_crop_3792690583_0.png', 1357365761: '1746842473_736255_1357363356_bdda5a42a2f659a6950898eb455abf5f_rle_crop_3792690011_0.png', 1357365760: '1746842473_736255_1357363401_29889d11a40738dfb6a01ed9499302f8_rle_crop_3792690001_0.png', 1357365749: '1746842486_323654_1357364553_568e7e96ba2bd5bf656a0636340eb721_rle_crop_3792689987_0.png', 1357365748: '1746842486_323654_1357364553_568e7e96ba2bd5bf656a0636340eb721_rle_crop_3792689990_0.png', 1357365747: '1746842486_323654_1357364632_972c67d39ab8e0f44bbabbc8f55e336c_rle_crop_3792689934_0.png', 1357365260: '1746842413_718471_1357363292_04ad92c6dcd2bd4f611644a6c6b1e238_rle_crop_3792689135_0.png', 1357364501: '1746842366_4158869_1357363381_27236d8262833c5e193d20c22c1e3eda_rle_crop_3792689021_0.png', 1357364499: '1746842366_4158869_1357363384_ee0f75a30c56f23aa30c510450e3fba0_rle_crop_3792689008_0.png', 1357363952: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680352_0.png', 1357363951: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680353_0.png', 1357363950: '1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680356_0.png', 1357362950: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660647_0.png', 1357363948: '1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680339_0.png', 1357363947: '1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680342_0.png', 1357363341: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665534_0.jpg', 1357363340: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665542_0.jpg', 1357363336: '1746842126_4151155_1357363186_378bf460dba31153b4f34608a2df65e2_rle_crop_3792665629_0.png', 1357363283: '1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661185_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/2e82a9101205ce234f3631b12ae9f1c8_59341522.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6f87ad110472facd948be4c564d6e7f4_87742714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/1b00e22d1719294d2f76224771c92414_64151895.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/6f29dce18e639d5b972604e49fecb9c4_78510713.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/522c24fdcdd446476f1464b5e2504119_45146918.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/58bbaba1331d78acf5514f46a1b11e80_89185241.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/20be1996fffdafff25e5f65ff6c2add8_95079555.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/7cd72b1d4589c9e757c2af9da311cf09_60914420.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/433692222bac7202ee509786ba5af743_95611381.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/2ebe0fbb43be114dc2f277c29ef4eaa1_85671525.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/aa7461d2cf62dde7d11098bbd9900fe2_23756891.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0f47781141bb03feaf2e830f49436182_64702428.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/297fa1f9797b64ec56c4cc6d0626958f_81068889.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/acde6b83f2e4a044e616a10f967721b3_31499369.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/04159a95b571b4e41ce59ef61789b3cb_51664981.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/a5627d0bce0aa2efa48e30dae007c5a6_98185469.png change filename to text .wget -O 17.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/71e6e401f2cb48e5fb33da9e1a100296_70230675.jpg change filename to text .wget -O 18.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/fc120a0e5b3ad40c47c8f74240a38af5_83983912.jpg change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9905acb7be309fb0cd52a7553187a109_26600213.png change filename to text .imagette228548731746842706/ imagette228548731746842706/1746842486_323654_1357364553_568e7e96ba2bd5bf656a0636340eb721_rle_crop_3792689987_0.png.png imagette228548731746842706/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665534_0.jpg.jpg imagette228548731746842706/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660647_0.png.png imagette228548731746842706/1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680339_0.png.png imagette228548731746842706/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680358_0.png.png imagette228548731746842706/1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680342_0.png.png imagette228548731746842706/1746842053_707852_1357362883_024bb55768b652ea17d754e1335486a9_rle_crop_3792661185_0.png.png imagette228548731746842706/1746842366_4158869_1357363384_ee0f75a30c56f23aa30c510450e3fba0_rle_crop_3792689008_0.png.png imagette228548731746842706/1746842366_4158869_1357363381_27236d8262833c5e193d20c22c1e3eda_rle_crop_3792689021_0.png.png imagette228548731746842706/1746842486_323654_1357364553_568e7e96ba2bd5bf656a0636340eb721_rle_crop_3792689990_0.png.png imagette228548731746842706/1746842413_718471_1357363292_04ad92c6dcd2bd4f611644a6c6b1e238_rle_crop_3792689135_0.png.png imagette228548731746842706/1746842473_736255_1357363356_bdda5a42a2f659a6950898eb455abf5f_rle_crop_3792690011_0.png.png imagette228548731746842706/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680353_0.png.png imagette228548731746842706/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680352_0.png.png imagette228548731746842706/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665542_0.jpg.jpg imagette228548731746842706/1746842126_4151155_1357363186_378bf460dba31153b4f34608a2df65e2_rle_crop_3792665629_0.png.png imagette228548731746842706/1746842486_323654_1357364632_972c67d39ab8e0f44bbabbc8f55e336c_rle_crop_3792689934_0.png.png imagette228548731746842706/1746842533_737007_1357363793_687401e23c047b1c9c6d3bfa1c810964_rle_crop_3792690583_0.png.png imagette228548731746842706/1746842473_736255_1357363401_29889d11a40738dfb6a01ed9499302f8_rle_crop_3792690001_0.png.png imagette228548731746842706/1746842290_710489_1357363257_13f47697521027c191d1aaf442295b55_rle_crop_3792680356_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/42102080a5f1830b14ec5f4f09546e40_59275798.png imagette228548731746842706 22854874 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357362944: '1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660649_0.png', 1357363225: '1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660927_0.png', 1357363233: '1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660967_0.png', 1357363338: '1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665529_0.jpg', 1357363339: '1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665556_0.jpg', 1357363574: '1746842233_709620_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673150_0.png', 1357363928: '1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680324_0.png', 1357363929: '1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680338_0.png', 1357364436: '1746842351_710968_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673150_0.png', 1357364481: '1746842366_4158869_1357363381_27236d8262833c5e193d20c22c1e3eda_rle_crop_3792689020_0.png', 1357365746: '1746842486_323654_1357364632_972c67d39ab8e0f44bbabbc8f55e336c_rle_crop_3792689936_0.png', 1357365758: '1746842473_736255_1357363351_899d4035898c4d6cc7a1fba6f12a8352_rle_crop_3792690040_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/225a65ac982806dbf146897f7c7cab27_50544898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0b60de896814d528cf8ab652057c515a_24484099.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/10f9aa2e3f30909ca642af7243b41b0e_9010446.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/0b5e632f40a4c6f521acd862c4d9d6d1_13395199.jpg change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/8b13d5fdb44f7f653c98c120d76627cb_47016730.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e494f666aeca9f20feadfc6baac21c2a_37377852.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/bc24d733f4a62cae74a3e858a3fa0196_14597166.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/70c55836c83ca6d52e3ac19af169faa1_11955308.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/e494f666aeca9f20feadfc6baac21c2a_16336487.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/962f1aa010671f00e2a2048e448e0d69_65834483.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/bca237e5f9981b506f6b21b2e968fe55_71360101.png change filename to text .imagette228548741746842707/ imagette228548741746842707/1746842473_736255_1357363351_899d4035898c4d6cc7a1fba6f12a8352_rle_crop_3792690040_0.png.png imagette228548741746842707/1746841933_706780_1357362828_bcae0ede2bccfcd93e0aa489622d86d8_rle_crop_3792660649_0.png.png imagette228548741746842707/1746841992_707225_1357362826_24faed24a07c6a03d2d7c6697193768a_rle_crop_3792660927_0.png.png imagette228548741746842707/1746842290_710489_1357363260_38f4913abf6bb2b4619f72264d2d0749_rle_crop_3792680338_0.png.png imagette228548741746842707/1746842125_292572_1357362921_5839d948c268c1c7669d5285b4033370_bib_crop_3792665529_0.jpg.jpg imagette228548741746842707/1746842366_4158869_1357363381_27236d8262833c5e193d20c22c1e3eda_rle_crop_3792689020_0.png.png imagette228548741746842707/1746842004_4148145_1357362808_fff419334b820e9d80bd02e5b9656c38_rle_crop_3792660967_0.png.png imagette228548741746842707/1746842233_709620_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673150_0.png.png imagette228548741746842707/1746842486_323654_1357364632_972c67d39ab8e0f44bbabbc8f55e336c_rle_crop_3792689936_0.png.png imagette228548741746842707/1746842290_710489_1357363263_6be2f00e4cdb7f61db1e3a512ff7c4a4_rle_crop_3792680324_0.png.png imagette228548741746842707/1746842351_710968_1357362716_1b034e8b21eeaa78b6085cb840af227d_rle_crop_3792673150_0.png.png imagette228548741746842707/1746842125_292572_1357362919_dd41167877e864d4a3a8bbe0e3bb8222_bib_crop_3792665556_0.jpg.jpg wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/8941de7f9425b5dd255c1b17cc5c6b8b_65669116.png imagette228548741746842707 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22854863 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22854876,22854877,22854878,22854879,22854880,22854881,22854882,22854883,22854884,22854885,22854886,22854887?tags=flou,metal,kraft,papier,environnement,mal_croppe,Teint_Dans_La_Masse,plastique,autre_refus,Carton_brun,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1357365619] : ('0.04785810983016579',) no score found for photo 1357365619 We are sending mail with results at report@fotonower.com args[1357365274] : ('0.04785810983016579',) no score found for photo 1357365274 We are sending mail with results at report@fotonower.com args[1357365236] : ('0.04785810983016579',) no score found for photo 1357365236 We are sending mail with results at report@fotonower.com args[1357365233] : ('0.04785810983016579',) no score found for photo 1357365233 We are sending mail with results at report@fotonower.com args[1357365232] : ('0.04785810983016579',) no score found for photo 1357365232 We are sending mail with results at report@fotonower.com args[1357364855] : ('0.04785810983016579',) no score found for photo 1357364855 We are sending mail with results at report@fotonower.com args[1357364632] : ('0.04785810983016579',) no score found for photo 1357364632 We are sending mail with results at report@fotonower.com args[1357364629] : ('0.04785810983016579',) no score found for photo 1357364629 We are sending mail with results at report@fotonower.com args[1357364609] : ('0.04785810983016579',) no score found for photo 1357364609 We are sending mail with results at report@fotonower.com args[1357364580] : ('0.04785810983016579',) no score found for photo 1357364580 We are sending mail with results at report@fotonower.com args[1357364553] : ('0.04785810983016579',) no score found for photo 1357364553 We are sending mail with results at report@fotonower.com args[1357363793] : ('0.04785810983016579',) no score found for photo 1357363793 We are sending mail with results at report@fotonower.com args[1357363769] : ('0.04785810983016579',) no score found for photo 1357363769 We are sending mail with results at report@fotonower.com args[1357363744] : ('0.04785810983016579',) no score found for photo 1357363744 We are sending mail with results at report@fotonower.com refus_total : 0.04785810983016579 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854863 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_P22854863_10-05-2025_04_05_00.pdf results_Auto_P22854863_10-05-2025_04_05_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_04_05_00.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','22854863','results_Auto_P22854863_10-05-2025_04_05_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_04_05_00.pdf','pdf','','0.36','0.04785810983016579') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22854863]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] map_info['map_portfolio_photo'] : {22854863: [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744, 1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : False mtd_id 4302 list_pids : [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] 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, '2815393') ('4302', '22854863', '1357365619', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393') 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', '22854863', '1357365619', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393')] time used for this insertion : 0.013895511627197266 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.780544519424438 time spend to save output : 0.014260530471801758 total time spend for step 4 : 9.79480504989624 step5:split_time_score Sat May 10 04:05:09 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 : ['22854863'] 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 : [('22854863',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22854863) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357365274: {'path': 'temp/1746842699_2763529_1357365274_fa08ab7ff377d6a1eb3be7354d7fa1f0.jpg', 'extension': 'jpg'}, 1357365619: {'path': 'temp/1746842699_2763529_1357365619_15889dbf119bf3708322ab4acf789ee2.jpg', 'extension': 'jpg'}, 1357363744: {'path': 'temp/1746842699_2763529_1357363744_0e48eded4e1292abb81476cbbca90c29.jpg', 'extension': 'jpg'}, 1357363769: {'path': 'temp/1746842699_2763529_1357363769_107d2cfedb2f62a1579cf6f72feeeba3.jpg', 'extension': 'jpg'}, 1357363793: {'path': 'temp/1746842699_2763529_1357363793_687401e23c047b1c9c6d3bfa1c810964.jpg', 'extension': 'jpg'}, 1357365232: {'path': 'temp/1746842699_2763529_1357365232_a5b45838ec58c7f9cd05e85cd395e0f4.jpg', 'extension': 'jpg'}, 1357365233: {'path': 'temp/1746842699_2763529_1357365233_3d0edb8e70ff79e041219e53c60e6a89.jpg', 'extension': 'jpg'}, 1357365236: {'path': 'temp/1746842699_2763529_1357365236_fdf235c287c4aec2f305e2a3b6e637ec.jpg', 'extension': 'jpg'}, 1357364553: {'path': 'temp/1746842699_2763529_1357364553_568e7e96ba2bd5bf656a0636340eb721.jpg', 'extension': 'jpg'}, 1357364580: {'path': 'temp/1746842699_2763529_1357364580_759715dd6bbe5d624023f972587296e3.jpg', 'extension': 'jpg'}, 1357364609: {'path': 'temp/1746842699_2763529_1357364609_f0c15372d2df2ec1b3538b637d00c2c1.jpg', 'extension': 'jpg'}, 1357364629: {'path': 'temp/1746842699_2763529_1357364629_342fabca4ed07d05372de0a97d60ab1d.jpg', 'extension': 'jpg'}, 1357364632: {'path': 'temp/1746842699_2763529_1357364632_972c67d39ab8e0f44bbabbc8f55e336c.jpg', 'extension': 'jpg'}, 1357364855: {'path': 'temp/1746842699_2763529_1357364855_8b8374c7bea0614e026364427b127ebc.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 = 22854863; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22854863 group by h (('03', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22854863 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 (22854863) 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 (22854863) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10052025 22854863 Nombre de photos uploadées : 73 / 23040 (0%) 10052025 22854863 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 10052025 22854863 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1357362687, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/9568060d23850d107bc4623a119b8388.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_14_9127.jpg'}, {'photo_id': 1357362685, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/d49d20e4716e8ef83e44ec541db15acc.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_24_10140.jpg'}, {'photo_id': 1357362683, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/028edda439e459e0ae21c163a94c0f75.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_34_10138.jpg'}, {'photo_id': 1357362682, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/10/4f7c8ff90ace45b950e9cd59c19330d5.jpg', 'username': None, 'uploaded_at': 1746841567, 'text': 'image_10052025_03_45_44_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003261089324951172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22854863, '2025-05-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1793779,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028465986251831055 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= 1793779 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801619, 'mtr_portfolio_id': 22853513, 'dashboard_result_id': 10466067, '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_P22853513_10-05-2025_03_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22853515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22853516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22853517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22853518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22853519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22853520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22853521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22853522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22853523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22853524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22853525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22853526, 'pht': 3726}}"}, {'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801619, 'mtr_portfolio_id': 22853997, 'dashboard_result_id': 10466068, '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_P22853997_10-05-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854016, 'pht': 3726}}"}, {'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801619, 'mtr_portfolio_id': 22854384, 'dashboard_result_id': 10466069, '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_P22854384_10-05-2025_03_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854396, 'pht': 3726}}"}, {'dashboat_entry_day': 1793779, 'dashboard_run_id': 1801619, 'mtr_portfolio_id': 22854863, 'dashboard_result_id': 10466070, '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_P22854863_10-05-2025_03_58_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22854864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854875, '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 = 22853513 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': 2815270, 'mtr_portfolio_id': 22853513, 'created_at': datetime.datetime(2025, 5, 10, 3, 18, 59), 'result': '0.037056217519254156', 'result_long': None, 'result_double': None}] Qualite : 0.037056217519254156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22853513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853513_10-05-2025_03_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22853513 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_P22853513_10-05-2025_03_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22853515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22853516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22853517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22853518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22853519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22853520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22853521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22853522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22853523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22853524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22853525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22853526, 'pht': 3726}}" where mtr_portfolio_id = 22853513 and dashboard_run_id = 1801619 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`=22853513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10466067, 0.037056217519254156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853513_10-05-2025_03_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22853515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22853516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22853517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22853518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22853519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22853520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22853521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22853522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22853523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22853524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22853525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22853526, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22853997 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': 2815305, 'mtr_portfolio_id': 22853997, 'created_at': datetime.datetime(2025, 5, 10, 3, 32, 59), 'result': '0.040627068166049336', 'result_long': None, 'result_double': None}] Qualite : 0.040627068166049336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22853997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853997_10-05-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22853997 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_P22853997_10-05-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854016, 'pht': 3726}}" where mtr_portfolio_id = 22853997 and dashboard_run_id = 1801621 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`=22853997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10466068, 0.040627068166049336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22853997_10-05-2025_03_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854016, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22854384 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': 2815344, 'mtr_portfolio_id': 22854384, 'created_at': datetime.datetime(2025, 5, 10, 3, 49, 3), 'result': '0.04338489063191088', 'result_long': None, 'result_double': None}] Qualite : 0.04338489063191088 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22854384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854384_10-05-2025_03_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22854384 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_P22854384_10-05-2025_03_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854396, 'pht': 3726}}" where mtr_portfolio_id = 22854384 and dashboard_run_id = 1801621 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`=22854384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10466069, 0.04338489063191088, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854384_10-05-2025_03_49_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854385, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22854393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854396, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22854863 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': 2815393, 'mtr_portfolio_id': 22854863, 'created_at': datetime.datetime(2025, 5, 10, 4, 4, 59), 'result': '0.04785810983016579', 'result_long': None, 'result_double': None}] Qualite : 0.04785810983016579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22854863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_04_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22854863 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_P22854863_10-05-2025_04_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22854864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854875, 'pht': 3726}}" where mtr_portfolio_id = 22854863 and dashboard_run_id = 1801621 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`=22854863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10466070, 0.04785810983016579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22854863_10-05-2025_04_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22854864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22854865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22854866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22854867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22854868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22854869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22854870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22854871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22854872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22854873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22854874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22854875, '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 (22853513,22853997,22854384,22854863) result : ((1357356999,), (1357357041,), (1357357047,), (1357357068,), (1357357156,), (1357357158,), (1357357161,), (1357357175,), (1357357204,), (1357357508,), (1357357536,), (1357357561,), (1357357906,), (1357357932,), (1357357956,), (1357357983,), (1357358310,), (1357358335,), (1357358356,), (1357358358,), (1357359015,), (1357359193,), (1357359255,), (1357359257,), (1357359261,), (1357359335,), (1357359361,), (1357359386,), (1357359411,), (1357359434,), (1357360212,), (1357360372,), (1357360374,), (1357360591,), (1357360594,), (1357360653,), (1357360679,), (1357360682,), (1357360684,), (1357360687,), (1357360711,), (1357360713,), (1357360715,), (1357361002,), (1357361004,), (1357361006,), (1357361009,), (1357361012,), (1357361032,), (1357361035,), (1357361038,), (1357361040,), (1357361072,), (1357361061,), (1357361063,), (1357361065,), (1357361067,), (1357361069,), (1357361091,), (1357361095,), (1357361096,), (1357361097,), (1357361119,), (1357361120,), (1357361121,), (1357361122,), (1357361123,), (1357361149,), (1357361150,), (1357361153,), (1357361154,), (1357361157,), (1357361159,), (1357361196,), (1357361197,), (1357361199,), (1357361201,), (1357361252,), (1357361253,), (1357361254,), (1357361255,), (1357361256,), (1357361258,), (1357361292,), (1357361295,), (1357361298,), (1357361300,), (1357361324,), (1357361326,), (1357361327,), (1357361328,), (1357361330,), (1357361331,), (1357361382,), (1357361384,), (1357361386,), (1357361388,), (1357361424,), (1357361425,), (1357361427,), (1357361429,), (1357361482,), (1357361484,), (1357361510,), (1357361513,), (1357361515,), (1357361517,), (1357361519,), (1357361551,), (1357361554,), (1357361556,), (1357361558,), (1357361561,), (1357361564,), (1357361587,), (1357361589,), (1357361591,), (1357361612,), (1357361614,), (1357361618,), (1357361620,), (1357361623,), (1357361625,), (1357361676,), (1357361664,), (1357361666,), (1357361668,), (1357361670,), (1357361674,), (1357361698,), (1357361701,), (1357361703,), (1357361980,), (1357361983,), (1357361985,), (1357361996,), (1357362002,), (1357362007,), (1357362030,), (1357362031,), (1357362037,), (1357362039,), (1357362083,), (1357362085,), (1357362087,), (1357362089,), (1357362091,), (1357362092,), (1357362117,), (1357362119,), (1357362120,), (1357362148,), (1357362149,), (1357362150,), (1357362152,), (1357362154,), (1357362192,), (1357362193,), (1357362194,), (1357362195,), (1357362197,), (1357362223,), (1357362224,), (1357362242,), (1357362244,), (1357362376,), (1357362378,), (1357362380,), (1357362382,), (1357362386,), (1357362387,), (1357362448,), (1357362455,), (1357362457,), (1357362459,), (1357362512,), (1357362513,), (1357362514,), (1357362515,), (1357362517,), (1357362519,), (1357362541,), (1357362544,), (1357362546,), (1357362588,), (1357362591,), (1357362593,), (1357362595,), (1357362597,), (1357362601,), (1357362626,), (1357362628,), (1357362631,), (1357362634,), (1357362635,), (1357362690,), (1357362682,), (1357362683,), (1357362685,), (1357362687,), (1357362714,), (1357362715,), (1357362716,), (1357362717,), (1357362720,), (1357362764,), (1357362767,), (1357362770,), (1357362774,), (1357362793,), (1357362797,), (1357362799,), (1357362802,), (1357362806,), (1357362808,), (1357362823,), (1357362826,), (1357362828,), (1357362876,), (1357362879,), (1357362881,), (1357362883,), (1357362886,), (1357362888,), (1357362918,), (1357362919,), (1357362921,), (1357362923,), (1357362926,), (1357363186,), (1357363191,), (1357363194,), (1357363197,), (1357363207,), (1357363254,), (1357363257,), (1357363260,), (1357363263,), (1357363266,), (1357363268,), (1357363292,), (1357363294,), (1357363345,), (1357363348,), (1357363351,), (1357363353,), (1357363356,), (1357363358,), (1357363376,), (1357363377,), (1357363379,), (1357363381,), (1357363384,), (1357363401,), (1357363650,), (1357363744,), (1357363769,), (1357363793,), (1357364553,), (1357364580,), (1357364609,), (1357364629,), (1357364632,), (1357364855,), (1357365232,), (1357365233,), (1357365236,), (1357365274,), (1357365619,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10052025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22854863]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] map_info['map_portfolio_photo'] : {22854863: [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744, 1357363650, 1357363401, 1357363384, 1357363381, 1357363379, 1357363377, 1357363376, 1357363358, 1357363356, 1357363353, 1357363351, 1357363348, 1357363345, 1357363294, 1357363292, 1357363268, 1357363266, 1357363263, 1357363260, 1357363257, 1357363254, 1357363207, 1357363197, 1357363194, 1357363191, 1357363186, 1357362926, 1357362923, 1357362921, 1357362919, 1357362918, 1357362888, 1357362886, 1357362883, 1357362881, 1357362879, 1357362876, 1357362828, 1357362826, 1357362823, 1357362808, 1357362806, 1357362802, 1357362799, 1357362797, 1357362793, 1357362774, 1357362770, 1357362767, 1357362764, 1357362720, 1357362717, 1357362716, 1357362715, 1357362714, 1357362687, 1357362685, 1357362683, 1357362682]} final : True mtd_id 4302 list_pids : [1357365619, 1357365274, 1357365236, 1357365233, 1357365232, 1357364855, 1357364632, 1357364629, 1357364609, 1357364580, 1357364553, 1357363793, 1357363769, 1357363744] Looping around the photos to save general results len do output : 1 /22854863Didn'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, '2815393') ('4302', '22854863', '1357365619', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393') ('4302', None, None, None, None, None, None, None, '2815393') ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22854863', 'None', None, None, None, None, '2815393'), ('4302', '22854863', '1357365619', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365274', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365236', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365233', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357365232', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364855', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364632', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364629', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364609', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364580', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357364553', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363793', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363769', None, None, None, None, None, '2815393'), ('4302', '22854863', '1357363744', None, None, None, None, None, '2815393')] time used for this insertion : 0.016518831253051758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35122203826904297 time spend to save output : 0.016772747039794922 total time spend for step 5 : 0.3679947853088379 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 (2815393) 2.35user 2.42system 0:15.50elapsed 30%CPU (0avgtext+0avgdata 160792maxresident)k 384inputs+19512outputs (16major+70378minor)pagefaults 0swaps