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 : 2102050 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 (3231084) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3231084) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536200 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3231084'] with mtr_portfolio_ids : ['24536200'] and first list_photo_ids : [] new path : /proc/2102050/ Name: python3 Umask: 0002 State: R (running) Tgid: 2102050 Ngid: 0 Pid: 2102050 PPid: 2102046 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2102050 NSpid: 2102050 NSpgid: 2101509 NSsid: 2101509 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98740 kB VmRSS: 98740 kB RssAnon: 59816 kB RssFile: 38924 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 9/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 167 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2102050', 'Ngid': '0', 'Pid': '2102050', 'PPid': '2102046', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2102050', 'NSpid': '2102050', 'NSpgid': '2101509', 'NSsid': '2101509', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98740 kB', 'VmRSS': '98740 kB', 'RssAnon': '59816 kB', 'RssFile': '38924 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '9/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '167'} ('datou_batch_current', '2102050', '1106868', '0', '1106868', '865620', '98740', b'', 'marlene', '3231084') 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 (24536200) 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 (3231084 ) ) 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 (24536200) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370178945, 'portfolio_id': 24536200}, {'photo_id': 1370178877, 'portfolio_id': 24536200}, {'photo_id': 1370178813, 'portfolio_id': 24536200}, {'photo_id': 1370178752, 'portfolio_id': 24536200}, {'photo_id': 1370178734, 'portfolio_id': 24536200}, {'photo_id': 1370178730, 'portfolio_id': 24536200}, {'photo_id': 1370178497, 'portfolio_id': 24536200}, {'photo_id': 1370178448, 'portfolio_id': 24536200}, {'photo_id': 1370178373, 'portfolio_id': 24536200}, {'photo_id': 1370178292, 'portfolio_id': 24536200}, {'photo_id': 1370178212, 'portfolio_id': 24536200}, {'photo_id': 1370178170, 'portfolio_id': 24536200}, {'photo_id': 1370177964, 'portfolio_id': 24536200}, {'photo_id': 1370177957, 'portfolio_id': 24536200}, {'photo_id': 1370177949, 'portfolio_id': 24536200}, {'photo_id': 1370177928, 'portfolio_id': 24536200}, {'photo_id': 1370177874, 'portfolio_id': 24536200}, {'photo_id': 1370177836, 'portfolio_id': 24536200}, {'photo_id': 1370177708, 'portfolio_id': 24536200}, {'photo_id': 1370177699, 'portfolio_id': 24536200}, {'photo_id': 1370177662, 'portfolio_id': 24536200}, {'photo_id': 1370177656, 'portfolio_id': 24536200}, {'photo_id': 1370177597, 'portfolio_id': 24536200}, {'photo_id': 1370177593, 'portfolio_id': 24536200}, {'photo_id': 1370177544, 'portfolio_id': 24536200}, {'photo_id': 1370177539, 'portfolio_id': 24536200}, {'photo_id': 1370177466, 'portfolio_id': 24536200}, {'photo_id': 1370177462, 'portfolio_id': 24536200}, {'photo_id': 1370177454, 'portfolio_id': 24536200}, {'photo_id': 1370177453, 'portfolio_id': 24536200}, {'photo_id': 1370177331, 'portfolio_id': 24536200}, {'photo_id': 1370177296, 'portfolio_id': 24536200}, {'photo_id': 1370177262, 'portfolio_id': 24536200}, {'photo_id': 1370177222, 'portfolio_id': 24536200}, {'photo_id': 1370177211, 'portfolio_id': 24536200}, {'photo_id': 1370177208, 'portfolio_id': 24536200}, {'photo_id': 1370177186, 'portfolio_id': 24536200}, {'photo_id': 1370177165, 'portfolio_id': 24536200}, {'photo_id': 1370177127, 'portfolio_id': 24536200}, {'photo_id': 1370177107, 'portfolio_id': 24536200}, {'photo_id': 1370177106, 'portfolio_id': 24536200}, {'photo_id': 1370177103, 'portfolio_id': 24536200}, {'photo_id': 1370177041, 'portfolio_id': 24536200}, {'photo_id': 1370177035, 'portfolio_id': 24536200}, {'photo_id': 1370177013, 'portfolio_id': 24536200}, {'photo_id': 1370177011, 'portfolio_id': 24536200}, {'photo_id': 1370177002, 'portfolio_id': 24536200}, {'photo_id': 1370177001, 'portfolio_id': 24536200}, {'photo_id': 1370176999, 'portfolio_id': 24536200}, {'photo_id': 1370176998, 'portfolio_id': 24536200}, {'photo_id': 1370176995, 'portfolio_id': 24536200}, {'photo_id': 1370176992, 'portfolio_id': 24536200}, {'photo_id': 1370176960, 'portfolio_id': 24536200}, {'photo_id': 1370176958, 'portfolio_id': 24536200}, {'photo_id': 1370176930, 'portfolio_id': 24536200}, {'photo_id': 1370176924, 'portfolio_id': 24536200}, {'photo_id': 1370176878, 'portfolio_id': 24536200}, {'photo_id': 1370176843, 'portfolio_id': 24536200}, {'photo_id': 1370176806, 'portfolio_id': 24536200}, {'photo_id': 1370176770, 'portfolio_id': 24536200}, {'photo_id': 1370176329, 'portfolio_id': 24536200}, {'photo_id': 1370176316, 'portfolio_id': 24536200}, {'photo_id': 1370176306, 'portfolio_id': 24536200}, {'photo_id': 1370176300, 'portfolio_id': 24536200}, {'photo_id': 1370176268, 'portfolio_id': 24536200}, {'photo_id': 1370176180, 'portfolio_id': 24536200}, {'photo_id': 1370175890, 'portfolio_id': 24536200}, {'photo_id': 1370175818, 'portfolio_id': 24536200}, {'photo_id': 1370175747, 'portfolio_id': 24536200}, {'photo_id': 1370175666, 'portfolio_id': 24536200}, {'photo_id': 1370175535, 'portfolio_id': 24536200}, {'photo_id': 1370175466, 'portfolio_id': 24536200}, {'photo_id': 1370175306, 'portfolio_id': 24536200}, {'photo_id': 1370175303, 'portfolio_id': 24536200}, {'photo_id': 1370175284, 'portfolio_id': 24536200}, {'photo_id': 1370175280, 'portfolio_id': 24536200}, {'photo_id': 1370175276, 'portfolio_id': 24536200}] map_portfolio_id_photo_id: {24536200: [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170, 1370177964, 1370177957, 1370177949, 1370177928, 1370177874, 1370177836, 1370177708, 1370177699, 1370177662, 1370177656, 1370177597, 1370177593, 1370177544, 1370177539, 1370177466, 1370177462, 1370177454, 1370177453, 1370177331, 1370177296, 1370177262, 1370177222, 1370177211, 1370177208, 1370177186, 1370177165, 1370177127, 1370177107, 1370177106, 1370177103, 1370177041, 1370177035, 1370177013, 1370177011, 1370177002, 1370177001, 1370176999, 1370176998, 1370176995, 1370176992, 1370176960, 1370176958, 1370176930, 1370176924, 1370176878, 1370176843, 1370176806, 1370176770, 1370176329, 1370176316, 1370176306, 1370176300, 1370176268, 1370176180, 1370175890, 1370175818, 1370175747, 1370175666, 1370175535, 1370175466, 1370175306, 1370175303, 1370175284, 1370175280, 1370175276]} ##### 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.015397071838378906 #### 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 Thu Jul 3 00:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24536200) 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 : 24536200 get user id for portfolio 24536200 get sub ptf for main ptf 24536200, type 3726 and hashtags ['Carton_gris', 'environnement', 'mal_croppe', 'papier', 'plastique', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'metal', 'cartonnette', 'autre_refus', 'flou'] 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`=24536200 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','mal_croppe','papier','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','cartonnette','autre_refus','flou')) 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`=24536200 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','mal_croppe','papier','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','cartonnette','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24536200, 'sub_port_id': 24536266, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470276, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'kraft': {'main_port_id': 24536200, 'sub_port_id': 24536267, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470277, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'plastique': {'main_port_id': 24536200, 'sub_port_id': 24536268, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470278, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'Carton_brun': {'main_port_id': 24536200, 'sub_port_id': 24536269, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470279, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'papier': {'main_port_id': 24536200, 'sub_port_id': 24536270, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470280, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'flou': {'main_port_id': 24536200, 'sub_port_id': 24536271, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470281, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'mal_croppe': {'main_port_id': 24536200, 'sub_port_id': 24536272, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470282, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'cartonnette': {'main_port_id': 24536200, 'sub_port_id': 24536273, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470283, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'environnement': {'main_port_id': 24536200, 'sub_port_id': 24536274, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470284, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'Carton_gris': {'main_port_id': 24536200, 'sub_port_id': 24536275, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470285, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'autre_refus': {'main_port_id': 24536200, 'sub_port_id': 24536276, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470286, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 24536200, 'sub_port_id': 24536277, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470287, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536266 , 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=24536200 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 (24536266) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536267 , 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=24536200 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 (24536267) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536268 , 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=24536200 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 (24536268) result : ((1370177098,), (1370177650,), (1370177652,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536269 , 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=24536200 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 (24536269) result : ((1370176366,), (1370176369,), (1370176372,), (1370176375,), (1370176378,), (1370177092,), (1370177094,), (1370177096,), (1370177097,), (1370177205,), (1370177206,), (1370177207,), (1370177602,), (1370177605,), (1370177608,), (1370177611,), (1370177614,), (1370177617,), (1370177620,), (1370177623,), (1370177626,), (1370177628,), (1370177630,), (1370177632,), (1370177710,), (1370177712,), (1370177713,), (1370177715,), (1370177717,), (1370178426,), (1370178429,), (1370178432,), (1370178435,), (1370178438,), (1370178677,), (1370178678,), (1370178679,), (1370178680,), (1370178681,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536270 , 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=24536200 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 (24536270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536271 , 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=24536200 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 (24536271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536272 , 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=24536200 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 (24536272) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536273 , 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=24536200 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 (24536273) result : ((1370176346,), (1370176348,), (1370177074,), (1370177076,), (1370177078,), (1370177080,), (1370177199,), (1370177200,), (1370177201,), (1370177202,), (1370177203,), (1370177204,), (1370177550,), (1370177552,), (1370177554,), (1370177556,), (1370177558,), (1370177560,), (1370177562,), (1370177564,), (1370177566,), (1370177568,), (1370177570,), (1370177572,), (1370177669,), (1370177671,), (1370177673,), (1370177675,), (1370177678,), (1370177681,), (1370177683,), (1370178381,), (1370178384,), (1370178387,), (1370178390,), (1370178393,), (1370178396,), (1370178668,), (1370178669,), (1370178670,), (1370178671,), (1370178672,), (1370178673,), (1370178674,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536274 , 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=24536200 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 (24536274) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536275 , 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=24536200 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 (24536275) result : ((1370177198,), (1370177642,), (1370177645,), (1370177648,), (1370178349,), (1370178353,), (1370178654,), (1370178656,), (1370178658,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536276 , 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=24536200 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 (24536276) result : ((1370177061,), (1370177063,), (1370177189,), (1370177190,), (1370177191,), (1370177192,), (1370177193,), (1370177194,), (1370177195,), (1370177196,), (1370177197,), (1370177470,), (1370177473,), (1370177476,), (1370177479,), (1370177482,), (1370177485,), (1370177487,), (1370177489,), (1370177491,), (1370177493,), (1370177495,), (1370177498,), (1370177501,), (1370177504,), (1370177507,), (1370177510,), (1370177601,), (1370177604,), (1370177607,), (1370177610,), (1370177613,), (1370177616,), (1370177619,), (1370177622,), (1370177625,), (1370178306,), (1370178310,), (1370178313,), (1370178316,), (1370178319,), (1370178322,), (1370178325,), (1370178328,), (1370178331,), (1370178334,), (1370178625,), (1370178628,), (1370178630,), (1370178632,), (1370178634,), (1370178636,), (1370178638,), (1370178640,), (1370178642,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24536277 , 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=24536200 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 (24536277) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) 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 (1370176300) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24536200 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','mal_croppe','papier','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','cartonnette','autre_refus','flou')) 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`=24536200 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','mal_croppe','papier','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','cartonnette','autre_refus','flou')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24536200, 'sub_port_id': 24536278, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470288, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'kraft': {'main_port_id': 24536200, 'sub_port_id': 24536279, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470289, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'plastique': {'main_port_id': 24536200, 'sub_port_id': 24536280, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470290, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'Carton_brun': {'main_port_id': 24536200, 'sub_port_id': 24536281, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470291, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'papier': {'main_port_id': 24536200, 'sub_port_id': 24536282, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470292, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'flou': {'main_port_id': 24536200, 'sub_port_id': 24536283, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470293, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'mal_croppe': {'main_port_id': 24536200, 'sub_port_id': 24536284, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470294, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'cartonnette': {'main_port_id': 24536200, 'sub_port_id': 24536285, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470295, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'environnement': {'main_port_id': 24536200, 'sub_port_id': 24536286, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470296, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'Carton_gris': {'main_port_id': 24536200, 'sub_port_id': 24536287, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470297, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'autre_refus': {'main_port_id': 24536200, 'sub_port_id': 24536288, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470298, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 24536200, 'sub_port_id': 24536289, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16470299, 'last_updated_at': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 0, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 0, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24536289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24536277 lien utilise dans velours : https://www.fotonower.com/velours/24536278,24536279,24536280,24536281,24536282,24536283,24536284,24536285,24536286,24536287,24536288,24536289?tags=metal,kraft,plastique,Carton_brun,papier,flou,mal_croppe,cartonnette,environnement,Carton_gris,autre_refus,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24536200]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] map_info['map_portfolio_photo'] : {24536200: [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170, 1370177964, 1370177957, 1370177949, 1370177928, 1370177874, 1370177836, 1370177708, 1370177699, 1370177662, 1370177656, 1370177597, 1370177593, 1370177544, 1370177539, 1370177466, 1370177462, 1370177454, 1370177453, 1370177331, 1370177296, 1370177262, 1370177222, 1370177211, 1370177208, 1370177186, 1370177165, 1370177127, 1370177107, 1370177106, 1370177103, 1370177041, 1370177035, 1370177013, 1370177011, 1370177002, 1370177001, 1370176999, 1370176998, 1370176995, 1370176992, 1370176960, 1370176958, 1370176930, 1370176924, 1370176878, 1370176843, 1370176806, 1370176770, 1370176329, 1370176316, 1370176306, 1370176300, 1370176268, 1370176180, 1370175890, 1370175818, 1370175747, 1370175666, 1370175535, 1370175466, 1370175306, 1370175303, 1370175284, 1370175280, 1370175276]} final : False mtd_id 4302 list_pids : [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] Looping around the photos to save general results len do output : 1 /24536200. 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, '3231084') ('4302', '24536200', '1370178945', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24536200', "{'metal': 24536266, 'kraft': 24536267, 'plastique': 24536268, 'Carton_brun': 24536269, 'papier': 24536270, 'flou': 24536271, 'mal_croppe': 24536272, 'cartonnette': 24536273, 'environnement': 24536274, 'Carton_gris': 24536275, 'autre_refus': 24536276, 'Teint_Dans_La_Masse': 24536277}", None, None, None, None, '3231084'), ('4302', '24536200', '1370178945', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084')] time used for this insertion : 0.014912843704223633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5509793758392334 time spend to save output : 0.015217065811157227 total time spend for step 1 : 0.5661964416503906 step2:final Thu Jul 3 00:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24536200) 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 24536200 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370175306,1370175303,1370175284,1370175280,1370175276,1370175890,1370175818,1370175747,1370175666,1370175535,1370175466,1370176329,1370176316,1370176306,1370176300,1370176268,1370176180,1370176930,1370176924,1370176878,1370176843,1370176806,1370176770,1370177041,1370177035,1370177013,1370177011,1370177002,1370177001,1370176999,1370176998,1370176995,1370176992,1370176960,1370176958,1370177186,1370177165,1370177127,1370177107,1370177106,1370177103,1370177331,1370177296,1370177262,1370177222,1370177211,1370177208,1370177699,1370177708,1370177656,1370177662,1370177593,1370177597,1370177539,1370177544,1370177466,1370177462,1370177454,1370177453,1370177964,1370177957,1370177949,1370177928,1370177874,1370177836,1370178497,1370178448,1370178373,1370178292,1370178212,1370178170,1370178945,1370178877,1370178813,1370178752,1370178734,1370178730); 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([24536200]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} new output for save of step final : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] map_info['map_portfolio_photo'] : {24536200: [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170, 1370177964, 1370177957, 1370177949, 1370177928, 1370177874, 1370177836, 1370177708, 1370177699, 1370177662, 1370177656, 1370177597, 1370177593, 1370177544, 1370177539, 1370177466, 1370177462, 1370177454, 1370177453, 1370177331, 1370177296, 1370177262, 1370177222, 1370177211, 1370177208, 1370177186, 1370177165, 1370177127, 1370177107, 1370177106, 1370177103, 1370177041, 1370177035, 1370177013, 1370177011, 1370177002, 1370177001, 1370176999, 1370176998, 1370176995, 1370176992, 1370176960, 1370176958, 1370176930, 1370176924, 1370176878, 1370176843, 1370176806, 1370176770, 1370176329, 1370176316, 1370176306, 1370176300, 1370176268, 1370176180, 1370175890, 1370175818, 1370175747, 1370175666, 1370175535, 1370175466, 1370175306, 1370175303, 1370175284, 1370175280, 1370175276]} final : False mtd_id 4302 list_pids : [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] Looping around the photos to save general results len do output : 12 /1370178945.Didn't retrieve data . /1370178877.Didn't retrieve data . /1370178813.Didn't retrieve data . /1370178752.Didn't retrieve data . /1370178734.Didn't retrieve data . /1370178730.Didn't retrieve data . /1370178497.Didn't retrieve data . /1370178448.Didn't retrieve data . /1370178373.Didn't retrieve data . /1370178292.Didn't retrieve data . /1370178212.Didn't retrieve data . /1370178170.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, '3231084') ('4302', '24536200', '1370178945', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24536200', '1370178945', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178877', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178813', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178752', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178734', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178730', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178497', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178448', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178373', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178292', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178212', '0.07126561475952549', None, None, None, None, '3231084'), ('4302', '24536200', '1370178170', '0.07126561475952549', None, None, None, None, '3231084')] time used for this insertion : 0.0161130428314209 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07192587852478027 time spend to save output : 0.01689314842224121 total time spend for step 2 : 0.08881902694702148 step3:velours_tree Thu Jul 3 00:12:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24536200: [{'metal': 24536266, 'kraft': 24536267, 'plastique': 24536268, 'Carton_brun': 24536269, 'papier': 24536270, 'flou': 24536271, 'mal_croppe': 24536272, 'cartonnette': 24536273, 'environnement': 24536274, 'Carton_gris': 24536275, 'autre_refus': 24536276, 'Teint_Dans_La_Masse': 24536277}]} input_args_next_step : {24536200: ()} output_args : {24536200: [{'metal': 24536266, 'kraft': 24536267, 'plastique': 24536268, 'Carton_brun': 24536269, 'papier': 24536270, 'flou': 24536271, 'mal_croppe': 24536272, 'cartonnette': 24536273, 'environnement': 24536274, 'Carton_gris': 24536275, 'autre_refus': 24536276, 'Teint_Dans_La_Masse': 24536277}]} args : 24536200 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 : ({'metal': 24536266, 'kraft': 24536267, 'plastique': 24536268, 'Carton_brun': 24536269, 'papier': 24536270, 'flou': 24536271, 'mal_croppe': 24536272, 'cartonnette': 24536273, 'environnement': 24536274, 'Carton_gris': 24536275, 'autre_refus': 24536276, 'Teint_Dans_La_Masse': 24536277},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24536200) 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([24536200]) 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.31183457374572754 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.31188297271728516 step4:send_mail_cod Thu Jul 3 00:12:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} input_args_next_step : {1370178945: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178945 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178877 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178813 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178752 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178734 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178730 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178497 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178448 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178373 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178292 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178212 depend.output_id : 0 input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ()} output_args : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',)} args : 1370178170 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 : {24536200: [{'metal': 24536266, 'kraft': 24536267, 'plastique': 24536268, 'Carton_brun': 24536269, 'papier': 24536270, 'flou': 24536271, 'mal_croppe': 24536272, 'cartonnette': 24536273, 'environnement': 24536274, 'Carton_gris': 24536275, 'autre_refus': 24536276, 'Teint_Dans_La_Masse': 24536277}]} input_args_next_step : {1370178945: ('0.07126561475952549',), 1370178877: ('0.07126561475952549',), 1370178813: ('0.07126561475952549',), 1370178752: ('0.07126561475952549',), 1370178734: ('0.07126561475952549',), 1370178730: ('0.07126561475952549',), 1370178497: ('0.07126561475952549',), 1370178448: ('0.07126561475952549',), 1370178373: ('0.07126561475952549',), 1370178292: ('0.07126561475952549',), 1370178212: ('0.07126561475952549',), 1370178170: ('0.07126561475952549',), 24536200: ()} output_args : {24536200: [{'metal': 24536266, 'kraft': 24536267, 'plastique': 24536268, 'Carton_brun': 24536269, 'papier': 24536270, 'flou': 24536271, 'mal_croppe': 24536272, 'cartonnette': 24536273, 'environnement': 24536274, 'Carton_gris': 24536275, 'autre_refus': 24536276, 'Teint_Dans_La_Masse': 24536277}]} args : 24536200 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.07126561475952549',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24536200) 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 (1370178945,1370178877,1370178813,1370178752,1370178734,1370178730,1370178497,1370178448,1370178373,1370178292,1370178212,1370178170) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370178170 begin to download photo : 1370178373 begin to download photo : 1370178730 begin to download photo : 1370178813 download finish for photo 1370178170 begin to download photo : 1370178212 download finish for photo 1370178730 begin to download photo : 1370178734 download finish for photo 1370178373 begin to download photo : 1370178448 download finish for photo 1370178813 begin to download photo : 1370178877 download finish for photo 1370178448 begin to download photo : 1370178497 download finish for photo 1370178212 begin to download photo : 1370178292 download finish for photo 1370178734 begin to download photo : 1370178752 download finish for photo 1370178877 begin to download photo : 1370178945 download finish for photo 1370178292 download finish for photo 1370178497 download finish for photo 1370178752 download finish for photo 1370178945 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette245362661751494350/ imagette245362671751494350/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24536200_03-07-2025_00_12_30.pdf 24536266 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=24536266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245362661751494350 24536267 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=24536267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245362671751494350 24536268 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=24536268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370177098: '1751493925_315185_1370175535_70143e3328e8ecb09ad8e6daaf37109e_rle_crop_3869466011_0.png', 1370177650: '1751494045_319633_1370176960_fef1bd328ecd7eb202cc947dc69c23aa_rle_crop_3869469480_0.png', 1370177652: '1751494045_319633_1370176958_322d62510259bbe198500a0aa3271e34_rle_crop_3869469496_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/8224cb4a36d2eb28e4920731bf7f93c4_42378581.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/54e3a30771d87537767fa5a083699d9a_23129643.png change filename to text .imagette245362681751494350/ imagette245362681751494350/1751493925_315185_1370175535_70143e3328e8ecb09ad8e6daaf37109e_rle_crop_3869466011_0.png.png imagette245362681751494350/1751494045_319633_1370176960_fef1bd328ecd7eb202cc947dc69c23aa_rle_crop_3869469480_0.png.png imagette245362681751494350/1751494045_319633_1370176958_322d62510259bbe198500a0aa3271e34_rle_crop_3869469496_0.png.png imagette245362711751494350/ imagette245362721751494350/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/54e3a30771d87537767fa5a083699d9a_49747747.png imagette245362681751494350 24536271 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=24536271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245362711751494350 24536272 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=24536272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245362721751494350 24536273 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=24536273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370178387: '1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471074_0.png', 1370177572: '1751494045_319633_1370176958_322d62510259bbe198500a0aa3271e34_rle_crop_3869469500_0.png', 1370177669: '1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469542_0.png', 1370177671: '1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469610_0.png', 1370177673: '1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469620_0.png', 1370177675: '1751494086_2192624_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469664_0.png', 1370177678: '1751494086_2192624_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469725_0.png', 1370177681: '1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469782_0.png', 1370177683: '1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469773_0.png', 1370178381: '1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471030_0.png', 1370178384: '1751494166_322890_1370177296_cdc4f30a339dd19f26ba75c52d161aa2_rle_crop_3869471046_0.png', 1370177570: '1751494045_319633_1370176960_fef1bd328ecd7eb202cc947dc69c23aa_rle_crop_3869469484_0.png', 1370178390: '1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471096_0.png', 1370178393: '1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471113_0.png', 1370178396: '1751494166_322890_1370177208_6169524f971d915c35c43120a332c6f0_rle_crop_3869471126_0.png', 1370178668: '1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469542_0.png', 1370178669: '1751494207_2196396_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469610_0.png', 1370178670: '1751494207_2196396_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469620_0.png', 1370178671: '1751494207_2196396_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469664_0.png', 1370178672: '1751494207_2196396_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d30e6f16b5fc6cd5a2101626ba44c06a_32408073.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/66753c2f54a8cb182ffd407f0f3e3f68_65827628.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/f7cc61f541cd432bc8da2bc92d7c1e5d_5837258.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/94c97bae24d952ea5aec8297f560576d_29537721.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/db7686368edda7403f1698abed53c3f2_15041341.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7f3c361dd494e090778f413c0564f8bc_87426228.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/1355e9ea4625e1ba0a7e5445c3ee1b06_12298078.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/1a0cf8aaae268b27a3e605899310fd96_90647363.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/161c1cdfab9915a3c9a70bcaed5ff224_3867134.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/baeb88c23325e3416c686eda8ea20f8d_87200101.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/33d3cd766ac7611d4b906d91f301f810_48536479.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/66753c2f54a8cb182ffd407f0f3e3f68_31425798.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/c9a60cc35711fb36c9edc2f54db2c2b0_89685652.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7a060c279a335295a15f2485bc617a14_82026903.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/dbedb8db01129e5852079b31643a2276_9157282.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/f7cc61f541cd432bc8da2bc92d7c1e5d_71499346.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/94c97bae24d952ea5aec8297f560576d_22825164.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/db7686368edda7403f1698abed53c3f2_51750226.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7f3c361dd494e090778f413c0564f8bc_58893216.png change filename to text .imagette245362731751494350/ imagette245362731751494350/1751494207_2196396_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469610_0.png.png imagette245362731751494350/1751494166_322890_1370177208_6169524f971d915c35c43120a332c6f0_rle_crop_3869471126_0.png.png imagette245362731751494350/1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471113_0.png.png imagette245362731751494350/1751494166_322890_1370177296_cdc4f30a339dd19f26ba75c52d161aa2_rle_crop_3869471046_0.png.png imagette245362731751494350/1751494207_2196396_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469620_0.png.png imagette245362731751494350/1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471030_0.png.png imagette245362731751494350/1751494086_2192624_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469664_0.png.png imagette245362731751494350/1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469610_0.png.png imagette245362731751494350/1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469542_0.png.png imagette245362731751494350/1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469542_0.png.png imagette245362731751494350/1751494045_319633_1370176958_322d62510259bbe198500a0aa3271e34_rle_crop_3869469500_0.png.png imagette245362731751494350/1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469773_0.png.png imagette245362731751494350/1751494207_2196396_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469725_0.png.png imagette245362731751494350/1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471074_0.png.png imagette245362731751494350/1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469620_0.png.png imagette245362731751494350/1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471096_0.png.png imagette245362731751494350/1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469782_0.png.png imagette245362731751494350/1751494207_2196396_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469664_0.png.png imagette245362731751494350/1751494045_319633_1370176960_fef1bd328ecd7eb202cc947dc69c23aa_rle_crop_3869469484_0.png.png imagette245362731751494350/1751494086_2192624_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469725_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/1355e9ea4625e1ba0a7e5445c3ee1b06_24582432.png imagette245362731751494350 24536276 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=24536276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370178322: '1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471069_0.png', 1370177604: '1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469539_0.png', 1370177607: '1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469607_0.png', 1370177610: '1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469604_0.png', 1370177613: '1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469625_0.png', 1370177616: '1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469619_0.png', 1370177619: '1751494086_2192624_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469665_0.png', 1370177622: '1751494086_2192624_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469723_0.png', 1370177625: '1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469774_0.png', 1370178306: '1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471033_0.png', 1370178310: '1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471031_0.png', 1370178313: '1751494166_322890_1370177296_cdc4f30a339dd19f26ba75c52d161aa2_rle_crop_3869471050_0.png', 1370178316: '1751494166_322890_1370177296_cdc4f30a339dd19f26ba75c52d161aa2_rle_crop_3869471048_0.png', 1370178319: '1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471071_0.png', 1370177601: '1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469541_0.png', 1370178325: '1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471094_0.png', 1370178328: '1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471109_0.png', 1370178331: '1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471105_0.png', 1370178334: '1751494166_322890_1370177208_6169524f971d915c35c43120a332c6f0_rle_crop_3869471124_0.png', 1370178625: '1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469541_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/54bf88f8318bf69777f30b2210cd6a3d_59967612.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/66ad1bbc3cd7c563fce102c2d9971700_51237921.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d7e692b0f4581872bb073be823559b5a_51493833.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/80484eca6fb850af14953983945378f3_71211934.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/dbd4c4673e7e30a09cc2c366727c981b_12186812.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/518a7d370670f396f5969f89c0248fb0_55849057.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7e38939a57aa4aa0c548a9a1c7cd22f9_3291223.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/16c3c0f081a85325468ebcfbe1e5f15d_26312345.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d7a1c46078893bd62a06d2265647fe47_34864294.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/16c7def6c50a4834459de231e8129ad2_68635726.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/8179ec24c3f7540843e31aa3b72da3b7_67461919.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/779a7eb787737805696da5d4606d740c_66245265.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/35bc1a2cfeafaba4db2721d5d08de639_98748882.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/ab8047f0cac442f66168848767cc0a04_19186223.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/c917fa7931a2f7ae97bbde2ce6566488_5617313.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/b73e24a0ad7ca9cb8473687fd6ba1bf6_83600006.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/e6f2ca49f5065d8994487c11f36665eb_86774344.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/01fdf60a88db16ab9beaec28176d5a2a_96960576.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/5e0a9d31351b2e20a2682fb2534b600c_89896816.png change filename to text .imagette245362761751494351/ imagette245362761751494351/1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471105_0.png.png imagette245362761751494351/1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469539_0.png.png imagette245362761751494351/1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469625_0.png.png imagette245362761751494351/1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471033_0.png.png imagette245362761751494351/1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469774_0.png.png imagette245362761751494351/1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471094_0.png.png imagette245362761751494351/1751494086_2192624_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469723_0.png.png imagette245362761751494351/1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469604_0.png.png imagette245362761751494351/1751494166_322890_1370177296_cdc4f30a339dd19f26ba75c52d161aa2_rle_crop_3869471048_0.png.png imagette245362761751494351/1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471109_0.png.png imagette245362761751494351/1751494166_322890_1370177208_6169524f971d915c35c43120a332c6f0_rle_crop_3869471124_0.png.png imagette245362761751494351/1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469541_0.png.png imagette245362761751494351/1751494086_2192624_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469665_0.png.png imagette245362761751494351/1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471069_0.png.png imagette245362761751494351/1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471031_0.png.png imagette245362761751494351/1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471071_0.png.png imagette245362761751494351/1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469619_0.png.png imagette245362761751494351/1751494166_322890_1370177296_cdc4f30a339dd19f26ba75c52d161aa2_rle_crop_3869471050_0.png.png imagette245362761751494351/1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469607_0.png.png imagette245362761751494351/1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469541_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/c917fa7931a2f7ae97bbde2ce6566488_73065014.png imagette245362761751494351 24536269 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=24536269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370178426: '1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471034_0.png', 1370177626: '1751494045_319633_1370176995_18fecf2cefe68a002d6cd3f44e3d787b_rle_crop_3869469357_0.png', 1370177628: '1751494045_319633_1370176992_5b0caed58f3c2ce153dea4baacf899b5_rle_crop_3869469407_0.png', 1370177630: '1751494045_319633_1370176960_fef1bd328ecd7eb202cc947dc69c23aa_rle_crop_3869469487_0.png', 1370177632: '1751494045_319633_1370176958_322d62510259bbe198500a0aa3271e34_rle_crop_3869469503_0.png', 1370177710: '1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469613_0.png', 1370177712: '1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469630_0.png', 1370177713: '1751494086_2192624_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469670_0.png', 1370177715: '1751494086_2192624_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469728_0.png', 1370177717: '1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469780_0.png', 1370177623: '1751494045_319633_1370176998_2411240c5f3ebc856dcb881d3d7b99d7_rle_crop_3869469346_0.png', 1370178429: '1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471076_0.png', 1370178432: '1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471101_0.png', 1370178435: '1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471114_0.png', 1370178438: '1751494166_322890_1370177208_6169524f971d915c35c43120a332c6f0_rle_crop_3869471127_0.png', 1370178677: '1751494207_2196396_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469613_0.png', 1370178678: '1751494207_2196396_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469630_0.png', 1370178679: '1751494207_2196396_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469670_0.png', 1370178680: '1751494207_2196396_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469728_0.png', 1370178681: '1751494207_2196396_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/7429620505017ce8ce54b54c603ed53e_73191271.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/456f0e6554a0c9a1bda5353bff1e23fe_66023962.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/456f0e6554a0c9a1bda5353bff1e23fe_64088958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/439bc88a1177b5fc666975b59a64bec0_63529477.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/439bc88a1177b5fc666975b59a64bec0_28386044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d495f1947b604ccb4112756b82459abf_14926331.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/92f62e0035180a06a824528632c7e29f_74684381.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/c9e9f5bbe84679dccb71b6859407e680_503510.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/62f64138fe1aca98e4062df74a6c8872_80575705.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/8e384a0a40e7f9fe534aaa5dfafc17a5_78143585.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/aa9b8dc8db3d229bd8e070981ab50f91_7886409.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/6f9881a1679dc217ca9d2baa1a2fd7de_12962905.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/825048d9c4234f9f82618d1fa1040cae_40533204.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/71c4baff8d355d561fef41fd8da5a685_2434057.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/06f60ccea0cf559ea30e0a3a757ec592_82622924.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d495f1947b604ccb4112756b82459abf_45722134.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/92f62e0035180a06a824528632c7e29f_1200843.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/c9e9f5bbe84679dccb71b6859407e680_81518945.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/62f64138fe1aca98e4062df74a6c8872_78104191.png change filename to text .imagette245362691751494352/ imagette245362691751494352/1751494045_319633_1370176960_fef1bd328ecd7eb202cc947dc69c23aa_rle_crop_3869469487_0.png.png imagette245362691751494352/1751494207_2196396_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469630_0.png.png imagette245362691751494352/1751494045_319633_1370176995_18fecf2cefe68a002d6cd3f44e3d787b_rle_crop_3869469357_0.png.png imagette245362691751494352/1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471101_0.png.png imagette245362691751494352/1751494086_2192624_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469728_0.png.png imagette245362691751494352/1751494207_2196396_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469613_0.png.png imagette245362691751494352/1751494045_319633_1370176998_2411240c5f3ebc856dcb881d3d7b99d7_rle_crop_3869469346_0.png.png imagette245362691751494352/1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469613_0.png.png imagette245362691751494352/1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471114_0.png.png imagette245362691751494352/1751494166_322890_1370177262_b694074ff0e2a80b0a207516c5a10cc5_rle_crop_3869471076_0.png.png imagette245362691751494352/1751494086_2192624_1370176878_5ab74ce7ba435c1d30276eb92ec810ce_rle_crop_3869469630_0.png.png imagette245362691751494352/1751494045_319633_1370176958_322d62510259bbe198500a0aa3271e34_rle_crop_3869469503_0.png.png imagette245362691751494352/1751494166_322890_1370177208_6169524f971d915c35c43120a332c6f0_rle_crop_3869471127_0.png.png imagette245362691751494352/1751494166_322890_1370177331_d940d6efec721fc71e1607cbbaa88bfc_rle_crop_3869471034_0.png.png imagette245362691751494352/1751494045_319633_1370176992_5b0caed58f3c2ce153dea4baacf899b5_rle_crop_3869469407_0.png.png imagette245362691751494352/1751494207_2196396_1370176806_d7d88fd19a4f9cbba6e334106c6c0453_rle_crop_3869469728_0.png.png imagette245362691751494352/1751494207_2196396_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469670_0.png.png imagette245362691751494352/1751494086_2192624_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469780_0.png.png imagette245362691751494352/1751494086_2192624_1370176843_25611deacda3344ac4c1a6a79cdce2e6_rle_crop_3869469670_0.png.png imagette245362691751494352/1751494207_2196396_1370176770_1b8dc5e452e8db38a3d9405ab9ea3d5b_rle_crop_3869469780_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/8e384a0a40e7f9fe534aaa5dfafc17a5_77464682.png imagette245362691751494352 24536275 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=24536275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370177198: '1751493964_2187039_1370176268_d79fc900112591f069b7801d2a0c6ca1_rle_crop_3869466712_0.png', 1370177642: '1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469538_0.png', 1370177645: '1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469546_0.png', 1370177648: '1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469605_0.png', 1370178349: '1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471092_0.png', 1370178353: '1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471110_0.png', 1370178654: '1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469538_0.png', 1370178656: '1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469546_0.png', 1370178658: '1751494207_2196396_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469605_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/fca61509e61306f46a2ba41efba21854_38519046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/b9a49baf5a55d99815bce3579e5dc39d_16966988.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/6594fcff06460c15411349412030afb4_94855320.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/9474945efc098985d5ed7e2193749436_39568798.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/d1a42b2c154384d81c1df12f4a5497b7_7044576.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/f8e526bcbad0c050c836d06d0b5f8a51_94920360.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/b9a49baf5a55d99815bce3579e5dc39d_37230286.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/6594fcff06460c15411349412030afb4_12254405.png change filename to text .imagette245362751751494354/ imagette245362751751494354/1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469538_0.png.png imagette245362751751494354/1751493964_2187039_1370176268_d79fc900112591f069b7801d2a0c6ca1_rle_crop_3869466712_0.png.png imagette245362751751494354/1751494166_322890_1370177222_007b4c7e3b16ad340110d57fc82098be_rle_crop_3869471092_0.png.png imagette245362751751494354/1751494207_2196396_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469546_0.png.png imagette245362751751494354/1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469538_0.png.png imagette245362751751494354/1751494086_2192624_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469605_0.png.png imagette245362751751494354/1751494086_2192624_1370176930_184950f4ff1fe52d22c5d04191526fec_rle_crop_3869469546_0.png.png imagette245362751751494354/1751494207_2196396_1370176924_8e551fd6213d0248b1fdee62f220a9e2_rle_crop_3869469605_0.png.png imagette245362751751494354/1751494166_322890_1370177211_bbf283b030c5caa93b0050d1de0ad0fc_rle_crop_3869471110_0.png.png imagette245362771751494354/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/9474945efc098985d5ed7e2193749436_84729891.png imagette245362751751494354 24536277 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=24536277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245362771751494354 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24536200 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24536278,24536279,24536280,24536281,24536282,24536283,24536284,24536285,24536286,24536287,24536288,24536289?tags=metal,kraft,plastique,Carton_brun,papier,flou,mal_croppe,cartonnette,environnement,Carton_gris,autre_refus,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1370178945] : ('0.07126561475952549',) no score found for photo 1370178945 We are sending mail with results at report@fotonower.com args[1370178877] : ('0.07126561475952549',) no score found for photo 1370178877 We are sending mail with results at report@fotonower.com args[1370178813] : ('0.07126561475952549',) no score found for photo 1370178813 We are sending mail with results at report@fotonower.com args[1370178752] : ('0.07126561475952549',) no score found for photo 1370178752 We are sending mail with results at report@fotonower.com args[1370178734] : ('0.07126561475952549',) no score found for photo 1370178734 We are sending mail with results at report@fotonower.com args[1370178730] : ('0.07126561475952549',) no score found for photo 1370178730 We are sending mail with results at report@fotonower.com args[1370178497] : ('0.07126561475952549',) no score found for photo 1370178497 We are sending mail with results at report@fotonower.com args[1370178448] : ('0.07126561475952549',) no score found for photo 1370178448 We are sending mail with results at report@fotonower.com args[1370178373] : ('0.07126561475952549',) no score found for photo 1370178373 We are sending mail with results at report@fotonower.com args[1370178292] : ('0.07126561475952549',) no score found for photo 1370178292 We are sending mail with results at report@fotonower.com args[1370178212] : ('0.07126561475952549',) no score found for photo 1370178212 We are sending mail with results at report@fotonower.com args[1370178170] : ('0.07126561475952549',) no score found for photo 1370178170 We are sending mail with results at report@fotonower.com refus_total : 0.07126561475952549 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=24536200 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_P24536200_03-07-2025_00_12_30.pdf results_Auto_P24536200_03-07-2025_00_12_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_12_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24536200','results_Auto_P24536200_03-07-2025_00_12_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_12_30.pdf','pdf','','0.26','0.07126561475952549') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24536200]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] map_info['map_portfolio_photo'] : {24536200: [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170, 1370177964, 1370177957, 1370177949, 1370177928, 1370177874, 1370177836, 1370177708, 1370177699, 1370177662, 1370177656, 1370177597, 1370177593, 1370177544, 1370177539, 1370177466, 1370177462, 1370177454, 1370177453, 1370177331, 1370177296, 1370177262, 1370177222, 1370177211, 1370177208, 1370177186, 1370177165, 1370177127, 1370177107, 1370177106, 1370177103, 1370177041, 1370177035, 1370177013, 1370177011, 1370177002, 1370177001, 1370176999, 1370176998, 1370176995, 1370176992, 1370176960, 1370176958, 1370176930, 1370176924, 1370176878, 1370176843, 1370176806, 1370176770, 1370176329, 1370176316, 1370176306, 1370176300, 1370176268, 1370176180, 1370175890, 1370175818, 1370175747, 1370175666, 1370175535, 1370175466, 1370175306, 1370175303, 1370175284, 1370175280, 1370175276]} final : False mtd_id 4302 list_pids : [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] 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, '3231084') ('4302', '24536200', '1370178945', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24536200', '1370178945', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084')] time used for this insertion : 0.013763666152954102 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.7800514698028564 time spend to save output : 0.014016389846801758 total time spend for step 4 : 5.794067859649658 step5:split_time_score Thu Jul 3 00:12:35 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 : ['24536200'] 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 : [('24536200',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24536200) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370178170: {'path': 'temp/1751494350_2102050_1370178170_14c4de878bd4887c09d7d2d12a62ce0d.jpg', 'extension': 'jpg'}, 1370178212: {'path': 'temp/1751494350_2102050_1370178212_a4aa69e5b42a4ca4907e2c78f0443a47.jpg', 'extension': 'jpg'}, 1370178292: {'path': 'temp/1751494350_2102050_1370178292_4fc6eefdd2e9a4fa296ef908f228fa66.jpg', 'extension': 'jpg'}, 1370178373: {'path': 'temp/1751494350_2102050_1370178373_d4ae483d7fa58532a89f0a81a023393f.jpg', 'extension': 'jpg'}, 1370178448: {'path': 'temp/1751494350_2102050_1370178448_edc05911e1cf11e37e4295e4556ac55d.jpg', 'extension': 'jpg'}, 1370178497: {'path': 'temp/1751494350_2102050_1370178497_0aaad53affd7d28f481851c78df035d8.jpg', 'extension': 'jpg'}, 1370178730: {'path': 'temp/1751494350_2102050_1370178730_d8583eae8da64159616e0731ede95f58.jpg', 'extension': 'jpg'}, 1370178734: {'path': 'temp/1751494350_2102050_1370178734_85464254bdd43d486387f031199d0d44.jpg', 'extension': 'jpg'}, 1370178752: {'path': 'temp/1751494350_2102050_1370178752_514ea8fcc4836a948b8f7dfb3e468335.jpg', 'extension': 'jpg'}, 1370178813: {'path': 'temp/1751494350_2102050_1370178813_0d5423cf57128ec461be18f942f68689.jpg', 'extension': 'jpg'}, 1370178877: {'path': 'temp/1751494350_2102050_1370178877_2b820281ed7fb7948a45f3d899d71d71.jpg', 'extension': 'jpg'}, 1370178945: {'path': 'temp/1751494350_2102050_1370178945_6b9be2155ac1ff1e287c013dee08ade7.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 = 24536200; (('arc_en_ciel_jrm_live',),) 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 = 24536200 group by h (('00', 77),) 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=24536200 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 (24536200) 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 (24536200) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03072025 24536200 Nombre de photos uploadées : 77 / 23040 (0%) 03072025 24536200 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 03072025 24536200 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1370175306, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/faa86b5cf85da2fb21826efd499218cc.jpg', 'username': None, 'uploaded_at': 1751493697, 'text': 'image_03072025_00_00_13_010174m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370175303, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/9517613baf0c6513a7733e045951f243.jpg', 'username': None, 'uploaded_at': 1751493697, 'text': 'image_03072025_00_00_24_010144m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370175284, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/ebfb98bb585cd6061f7c33b851c23093.jpg', 'username': None, 'uploaded_at': 1751493697, 'text': 'image_03072025_00_00_34_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370175280, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/ec89966c4cfe5954f0ba3ab05940041d.jpg', 'username': None, 'uploaded_at': 1751493697, 'text': 'image_03072025_00_00_44_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033097267150878906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 24536200, '2025-07-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1947667,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027870655059814453 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= 1947667 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1947667, 'dashboard_run_id': 1955138, 'mtr_portfolio_id': 24536200, 'dashboard_result_id': 12083964, '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_P24536200_03-07-2025_00_10_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, '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 = 24536200 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': 3231084, 'mtr_portfolio_id': 24536200, 'created_at': datetime.datetime(2025, 7, 3, 0, 12, 29), 'result': '0.07126561475952549', 'result_long': None, 'result_double': None}] Qualite : 0.07126561475952549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536200 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_P24536200_03-07-2025_00_12_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}" where mtr_portfolio_id = 24536200 and dashboard_run_id = 1955138 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`=24536200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12083964, 0.07126561475952549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_00_12_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, '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 (24536200) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03072025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24536200]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] map_info['map_portfolio_photo'] : {24536200: [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170, 1370177964, 1370177957, 1370177949, 1370177928, 1370177874, 1370177836, 1370177708, 1370177699, 1370177662, 1370177656, 1370177597, 1370177593, 1370177544, 1370177539, 1370177466, 1370177462, 1370177454, 1370177453, 1370177331, 1370177296, 1370177262, 1370177222, 1370177211, 1370177208, 1370177186, 1370177165, 1370177127, 1370177107, 1370177106, 1370177103, 1370177041, 1370177035, 1370177013, 1370177011, 1370177002, 1370177001, 1370176999, 1370176998, 1370176995, 1370176992, 1370176960, 1370176958, 1370176930, 1370176924, 1370176878, 1370176843, 1370176806, 1370176770, 1370176329, 1370176316, 1370176306, 1370176300, 1370176268, 1370176180, 1370175890, 1370175818, 1370175747, 1370175666, 1370175535, 1370175466, 1370175306, 1370175303, 1370175284, 1370175280, 1370175276]} final : True mtd_id 4302 list_pids : [1370178945, 1370178877, 1370178813, 1370178752, 1370178734, 1370178730, 1370178497, 1370178448, 1370178373, 1370178292, 1370178212, 1370178170] Looping around the photos to save general results len do output : 1 /24536200Didn'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, '3231084') ('4302', '24536200', '1370178945', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084') ('4302', None, None, None, None, None, None, None, '3231084') ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24536200', 'None', None, None, None, None, '3231084'), ('4302', '24536200', '1370178945', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178877', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178813', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178752', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178734', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178730', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178497', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178448', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178373', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178292', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178212', None, None, None, None, None, '3231084'), ('4302', '24536200', '1370178170', None, None, None, None, None, '3231084')] time used for this insertion : 0.01433563232421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.19264006614685059 time spend to save output : 0.014575004577636719 total time spend for step 5 : 0.2072150707244873 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 (3231084) 2.29user 2.58system 0:10.61elapsed 45%CPU (0avgtext+0avgdata 158720maxresident)k 3760inputs+17504outputs (37major+77110minor)pagefaults 0swaps