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 : 2096073 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 (2702004) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2702004) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845981 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2702004'] with mtr_portfolio_ids : ['21845981'] and first list_photo_ids : [] new path : /proc/2096073/ Name: python3 Umask: 0002 State: R (running) Tgid: 2096073 Ngid: 0 Pid: 2096073 PPid: 2096072 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2096073 NSpid: 2096073 NSpgid: 2093528 NSsid: 2093528 VmPeak: 1106940 kB VmSize: 1106940 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97876 kB VmRSS: 97876 kB RssAnon: 59780 kB RssFile: 38096 kB RssShmem: 0 kB VmData: 865688 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2096073', 'Ngid': '0', 'Pid': '2096073', 'PPid': '2096072', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2096073', 'NSpid': '2096073', 'NSpgid': '2093528', 'NSsid': '2093528', 'VmPeak': '1106940 kB', 'VmSize': '1106940 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97876 kB', 'VmRSS': '97876 kB', 'RssAnon': '59780 kB', 'RssFile': '38096 kB', 'RssShmem': '0 kB', 'VmData': '865688 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '2096073', '1106940', '0', '1106940', '865688', '97876', b'', 'marlene', '2702004') 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 (21845981) 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 (2702004 ) ) 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 (21845981) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348286009, 'portfolio_id': 21845981}, {'photo_id': 1348285355, 'portfolio_id': 21845981}, {'photo_id': 1348285287, 'portfolio_id': 21845981}, {'photo_id': 1348285001, 'portfolio_id': 21845981}, {'photo_id': 1348284901, 'portfolio_id': 21845981}, {'photo_id': 1348284753, 'portfolio_id': 21845981}, {'photo_id': 1348284645, 'portfolio_id': 21845981}, {'photo_id': 1348284408, 'portfolio_id': 21845981}, {'photo_id': 1348284366, 'portfolio_id': 21845981}, {'photo_id': 1348284294, 'portfolio_id': 21845981}, {'photo_id': 1348284242, 'portfolio_id': 21845981}, {'photo_id': 1348283910, 'portfolio_id': 21845981}, {'photo_id': 1348283808, 'portfolio_id': 21845981}, {'photo_id': 1348283782, 'portfolio_id': 21845981}, {'photo_id': 1348283757, 'portfolio_id': 21845981}, {'photo_id': 1348283731, 'portfolio_id': 21845981}, {'photo_id': 1348283709, 'portfolio_id': 21845981}, {'photo_id': 1348283654, 'portfolio_id': 21845981}, {'photo_id': 1348283649, 'portfolio_id': 21845981}, {'photo_id': 1348283644, 'portfolio_id': 21845981}, {'photo_id': 1348283634, 'portfolio_id': 21845981}, {'photo_id': 1348283591, 'portfolio_id': 21845981}, {'photo_id': 1348283552, 'portfolio_id': 21845981}, {'photo_id': 1348283092, 'portfolio_id': 21845981}, {'photo_id': 1348283036, 'portfolio_id': 21845981}, {'photo_id': 1348283019, 'portfolio_id': 21845981}, {'photo_id': 1348282974, 'portfolio_id': 21845981}, {'photo_id': 1348282703, 'portfolio_id': 21845981}, {'photo_id': 1348282653, 'portfolio_id': 21845981}, {'photo_id': 1348282627, 'portfolio_id': 21845981}, {'photo_id': 1348282619, 'portfolio_id': 21845981}, {'photo_id': 1348282612, 'portfolio_id': 21845981}, {'photo_id': 1348282603, 'portfolio_id': 21845981}, {'photo_id': 1348282455, 'portfolio_id': 21845981}, {'photo_id': 1348282416, 'portfolio_id': 21845981}, {'photo_id': 1348282361, 'portfolio_id': 21845981}, {'photo_id': 1348282280, 'portfolio_id': 21845981}, {'photo_id': 1348282237, 'portfolio_id': 21845981}, {'photo_id': 1348282199, 'portfolio_id': 21845981}, {'photo_id': 1348282005, 'portfolio_id': 21845981}, {'photo_id': 1348282001, 'portfolio_id': 21845981}, {'photo_id': 1348281999, 'portfolio_id': 21845981}, {'photo_id': 1348281842, 'portfolio_id': 21845981}, {'photo_id': 1348281814, 'portfolio_id': 21845981}, {'photo_id': 1348281783, 'portfolio_id': 21845981}, {'photo_id': 1348281756, 'portfolio_id': 21845981}, {'photo_id': 1348281727, 'portfolio_id': 21845981}, {'photo_id': 1348281698, 'portfolio_id': 21845981}, {'photo_id': 1348281395, 'portfolio_id': 21845981}, {'photo_id': 1348281362, 'portfolio_id': 21845981}, {'photo_id': 1348281335, 'portfolio_id': 21845981}, {'photo_id': 1348281300, 'portfolio_id': 21845981}, {'photo_id': 1348281266, 'portfolio_id': 21845981}, {'photo_id': 1348280875, 'portfolio_id': 21845981}, {'photo_id': 1348280702, 'portfolio_id': 21845981}, {'photo_id': 1348280653, 'portfolio_id': 21845981}, {'photo_id': 1348280601, 'portfolio_id': 21845981}, {'photo_id': 1348280011, 'portfolio_id': 21845981}, {'photo_id': 1348279948, 'portfolio_id': 21845981}, {'photo_id': 1348279903, 'portfolio_id': 21845981}, {'photo_id': 1348279849, 'portfolio_id': 21845981}, {'photo_id': 1348279628, 'portfolio_id': 21845981}, {'photo_id': 1348279565, 'portfolio_id': 21845981}, {'photo_id': 1348279546, 'portfolio_id': 21845981}, {'photo_id': 1348279438, 'portfolio_id': 21845981}, {'photo_id': 1348279394, 'portfolio_id': 21845981}, {'photo_id': 1348279370, 'portfolio_id': 21845981}, {'photo_id': 1348278909, 'portfolio_id': 21845981}, {'photo_id': 1348278854, 'portfolio_id': 21845981}, {'photo_id': 1348278823, 'portfolio_id': 21845981}, {'photo_id': 1348278516, 'portfolio_id': 21845981}, {'photo_id': 1348278468, 'portfolio_id': 21845981}, {'photo_id': 1348278396, 'portfolio_id': 21845981}, {'photo_id': 1348278353, 'portfolio_id': 21845981}] map_portfolio_id_photo_id: {21845981: [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242, 1348283910, 1348283808, 1348283782, 1348283757, 1348283731, 1348283709, 1348283654, 1348283649, 1348283644, 1348283634, 1348283591, 1348283552, 1348283092, 1348283036, 1348283019, 1348282974, 1348282703, 1348282653, 1348282627, 1348282619, 1348282612, 1348282603, 1348282455, 1348282416, 1348282361, 1348282280, 1348282237, 1348282199, 1348282005, 1348282001, 1348281999, 1348281842, 1348281814, 1348281783, 1348281756, 1348281727, 1348281698, 1348281395, 1348281362, 1348281335, 1348281300, 1348281266, 1348280875, 1348280702, 1348280653, 1348280601, 1348280011, 1348279948, 1348279903, 1348279849, 1348279628, 1348279565, 1348279546, 1348279438, 1348279394, 1348279370, 1348278909, 1348278854, 1348278823, 1348278516, 1348278468, 1348278396, 1348278353]} ##### 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.016594648361206055 #### 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 Fri Mar 28 14:48:56 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 (21845981) 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 : 21845981 get user id for portfolio 21845981 get sub ptf for main ptf 21845981, type 3726 and hashtags ['environnement', 'Carton_brun', 'kraft', 'plastique', 'Carton_gris', 'flou', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'mal_croppe', 'cartonnette', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21845981 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','kraft','plastique','Carton_gris','flou','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21845981 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','kraft','plastique','Carton_gris','flou','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21845981, 'sub_port_id': 21845987, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360835, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'environnement': {'main_port_id': 21845981, 'sub_port_id': 21845988, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360836, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'papier': {'main_port_id': 21845981, 'sub_port_id': 21845989, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360837, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'cartonnette': {'main_port_id': 21845981, 'sub_port_id': 21845990, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360838, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'metal': {'main_port_id': 21845981, 'sub_port_id': 21845991, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360839, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'flou': {'main_port_id': 21845981, 'sub_port_id': 21845992, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360840, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'kraft': {'main_port_id': 21845981, 'sub_port_id': 21845993, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360841, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21845981, 'sub_port_id': 21845994, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360842, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'plastique': {'main_port_id': 21845981, 'sub_port_id': 21845995, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360843, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'mal_croppe': {'main_port_id': 21845981, 'sub_port_id': 21845996, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360844, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'Carton_gris': {'main_port_id': 21845981, 'sub_port_id': 21845997, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360845, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}, 'Carton_brun': {'main_port_id': 21845981, 'sub_port_id': 21845998, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360846, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 35, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21845987 , 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=21845981 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 (21845987) result : ((1348283592,), (1348285458,), (1348285622,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845988 , 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=21845981 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 (21845988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845989 , 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=21845981 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 (21845989) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845990 , 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=21845981 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 (21845990) result : ((1348281945,), (1348281947,), (1348282602,), (1348282604,), (1348282605,), (1348282606,), (1348282617,), (1348282618,), (1348283227,), (1348283289,), (1348283290,), (1348284106,), (1348284110,), (1348284220,), (1348284221,), (1348285523,), (1348285633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845991 , 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=21845981 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 (21845991) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845992 , 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=21845981 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 (21845992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845993 , 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=21845981 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 (21845993) result : ((1348280965,), (1348284245,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845994 , 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=21845981 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 (21845994) result : ((1348281874,), (1348282593,), (1348282598,), (1348282599,), (1348282600,), (1348282601,), (1348282614,), (1348282658,), (1348282660,), (1348283183,), (1348284044,), (1348284173,), (1348285427,), (1348285430,), (1348285433,), (1348285436,), (1348285612,), (1348285614,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845995 , 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=21845981 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 (21845995) result : ((1348283607,), (1348284238,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845996 , 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=21845981 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 (21845996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845997 , 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=21845981 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 (21845997) result : ((1348281913,), (1348281915,), (1348281917,), (1348282596,), (1348283264,), (1348283265,), (1348283267,), (1348283268,), (1348283269,), (1348283270,), (1348283271,), (1348283599,), (1348284087,), (1348284088,), (1348284089,), (1348284090,), (1348284092,), (1348284094,), (1348284095,), (1348284196,), (1348284198,), (1348285478,), (1348285481,), (1348285493,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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 21845998 , 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=21845981 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 (21845998) result : ((1348280949,), (1348280951,), (1348282609,), (1348283325,), (1348283326,), (1348283327,), (1348283328,), (1348283331,), (1348283332,), (1348283333,), (1348284119,), (1348284120,), (1348284121,), (1348284122,), (1348284123,), (1348284127,), (1348284128,), (1348285556,), (1348285559,), (1348285651,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21845981) result : ((1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) 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 (1348281300) 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`=21845981 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','kraft','plastique','Carton_gris','flou','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21845981 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Carton_brun','kraft','plastique','Carton_gris','flou','Teint_Dans_La_Masse','autre_refus','papier','mal_croppe','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21845981, 'sub_port_id': 21845999, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360847, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'environnement': {'main_port_id': 21845981, 'sub_port_id': 21846000, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360848, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'papier': {'main_port_id': 21845981, 'sub_port_id': 21846001, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360849, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'cartonnette': {'main_port_id': 21845981, 'sub_port_id': 21846002, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360850, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'metal': {'main_port_id': 21845981, 'sub_port_id': 21846003, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360851, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'flou': {'main_port_id': 21845981, 'sub_port_id': 21846004, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360852, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'kraft': {'main_port_id': 21845981, 'sub_port_id': 21846005, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360853, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 21845981, 'sub_port_id': 21846006, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360854, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'plastique': {'main_port_id': 21845981, 'sub_port_id': 21846007, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360855, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'mal_croppe': {'main_port_id': 21845981, 'sub_port_id': 21846008, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360856, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'Carton_gris': {'main_port_id': 21845981, 'sub_port_id': 21846009, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360857, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}, 'Carton_brun': {'main_port_id': 21845981, 'sub_port_id': 21846010, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14360858, 'last_updated_at': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 14, 45, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 14, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21845999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21846010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21845998 lien utilise dans velours : https://www.fotonower.com/velours/21845999,21846000,21846001,21846002,21846003,21846004,21846005,21846006,21846007,21846008,21846009,21846010?tags=autre_refus,environnement,papier,cartonnette,metal,flou,kraft,Teint_Dans_La_Masse,plastique,mal_croppe,Carton_gris,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21845981]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] map_info['map_portfolio_photo'] : {21845981: [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242, 1348283910, 1348283808, 1348283782, 1348283757, 1348283731, 1348283709, 1348283654, 1348283649, 1348283644, 1348283634, 1348283591, 1348283552, 1348283092, 1348283036, 1348283019, 1348282974, 1348282703, 1348282653, 1348282627, 1348282619, 1348282612, 1348282603, 1348282455, 1348282416, 1348282361, 1348282280, 1348282237, 1348282199, 1348282005, 1348282001, 1348281999, 1348281842, 1348281814, 1348281783, 1348281756, 1348281727, 1348281698, 1348281395, 1348281362, 1348281335, 1348281300, 1348281266, 1348280875, 1348280702, 1348280653, 1348280601, 1348280011, 1348279948, 1348279903, 1348279849, 1348279628, 1348279565, 1348279546, 1348279438, 1348279394, 1348279370, 1348278909, 1348278854, 1348278823, 1348278516, 1348278468, 1348278396, 1348278353]} final : False mtd_id 4302 list_pids : [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] Looping around the photos to save general results len do output : 1 /21845981. 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, '2702004') ('4302', '21845981', '1348286009', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004') 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', None, '21845981', "{'autre_refus': 21845987, 'environnement': 21845988, 'papier': 21845989, 'cartonnette': 21845990, 'metal': 21845991, 'flou': 21845992, 'kraft': 21845993, 'Teint_Dans_La_Masse': 21845994, 'plastique': 21845995, 'mal_croppe': 21845996, 'Carton_gris': 21845997, 'Carton_brun': 21845998}", None, None, None, None, '2702004'), ('4302', '21845981', '1348286009', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004')] time used for this insertion : 0.01611781120300293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6419429779052734 time spend to save output : 0.016435861587524414 total time spend for step 1 : 0.6583788394927979 step2:final Fri Mar 28 14:48:56 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 (21845981) 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 21845981 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348278516,1348278468,1348278396,1348278353,1348278909,1348278854,1348278823,1348279628,1348279565,1348279546,1348279438,1348279394,1348279370,1348280011,1348279948,1348279903,1348279849,1348280875,1348280702,1348280653,1348281395,1348280601,1348281362,1348281335,1348281300,1348281266,1348281842,1348281814,1348281783,1348281756,1348281727,1348281698,1348282005,1348282001,1348281999,1348282455,1348282416,1348282361,1348282280,1348282237,1348282199,1348282703,1348282653,1348282627,1348282619,1348282612,1348282603,1348283092,1348283036,1348283019,1348282974,1348283654,1348283649,1348283644,1348283634,1348283591,1348283552,1348283910,1348283808,1348283782,1348283757,1348283731,1348283709,1348284408,1348284366,1348284294,1348284242,1348285355,1348285287,1348285001,1348284901,1348284753,1348284645,1348286009); 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([21845981]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} new output for save of step final : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] map_info['map_portfolio_photo'] : {21845981: [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242, 1348283910, 1348283808, 1348283782, 1348283757, 1348283731, 1348283709, 1348283654, 1348283649, 1348283644, 1348283634, 1348283591, 1348283552, 1348283092, 1348283036, 1348283019, 1348282974, 1348282703, 1348282653, 1348282627, 1348282619, 1348282612, 1348282603, 1348282455, 1348282416, 1348282361, 1348282280, 1348282237, 1348282199, 1348282005, 1348282001, 1348281999, 1348281842, 1348281814, 1348281783, 1348281756, 1348281727, 1348281698, 1348281395, 1348281362, 1348281335, 1348281300, 1348281266, 1348280875, 1348280702, 1348280653, 1348280601, 1348280011, 1348279948, 1348279903, 1348279849, 1348279628, 1348279565, 1348279546, 1348279438, 1348279394, 1348279370, 1348278909, 1348278854, 1348278823, 1348278516, 1348278468, 1348278396, 1348278353]} final : False mtd_id 4302 list_pids : [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] Looping around the photos to save general results len do output : 11 /1348286009.Didn't retrieve data . /1348285355.Didn't retrieve data . /1348285287.Didn't retrieve data . /1348285001.Didn't retrieve data . /1348284901.Didn't retrieve data . /1348284753.Didn't retrieve data . /1348284645.Didn't retrieve data . /1348284408.Didn't retrieve data . /1348284366.Didn't retrieve data . /1348284294.Didn't retrieve data . /1348284242.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, '2702004') ('4302', '21845981', '1348286009', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21845981', '1348286009', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348285355', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348285287', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348285001', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284901', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284753', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284645', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284408', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284366', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284294', '0.0469128167528036', None, None, None, None, '2702004'), ('4302', '21845981', '1348284242', '0.0469128167528036', None, None, None, None, '2702004')] time used for this insertion : 0.013502120971679688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07566022872924805 time spend to save output : 0.014035463333129883 total time spend for step 2 : 0.08969569206237793 step3:velours_tree Fri Mar 28 14:48:56 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 : {21845981: [{'autre_refus': 21845987, 'environnement': 21845988, 'papier': 21845989, 'cartonnette': 21845990, 'metal': 21845991, 'flou': 21845992, 'kraft': 21845993, 'Teint_Dans_La_Masse': 21845994, 'plastique': 21845995, 'mal_croppe': 21845996, 'Carton_gris': 21845997, 'Carton_brun': 21845998}]} input_args_next_step : {21845981: ()} output_args : {21845981: [{'autre_refus': 21845987, 'environnement': 21845988, 'papier': 21845989, 'cartonnette': 21845990, 'metal': 21845991, 'flou': 21845992, 'kraft': 21845993, 'Teint_Dans_La_Masse': 21845994, 'plastique': 21845995, 'mal_croppe': 21845996, 'Carton_gris': 21845997, 'Carton_brun': 21845998}]} args : 21845981 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 21845987, 'environnement': 21845988, 'papier': 21845989, 'cartonnette': 21845990, 'metal': 21845991, 'flou': 21845992, 'kraft': 21845993, 'Teint_Dans_La_Masse': 21845994, 'plastique': 21845995, 'mal_croppe': 21845996, 'Carton_gris': 21845997, 'Carton_brun': 21845998},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21845981) 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([21845981]) 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.28726768493652344 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.28731799125671387 step4:send_mail_cod Fri Mar 28 14:48:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} input_args_next_step : {1348286009: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348286009 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348285355 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348285287 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348285001 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284901 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284753 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284645 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284408 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284366 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284294 depend.output_id : 0 input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ()} output_args : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',)} args : 1348284242 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 : {21845981: [{'autre_refus': 21845987, 'environnement': 21845988, 'papier': 21845989, 'cartonnette': 21845990, 'metal': 21845991, 'flou': 21845992, 'kraft': 21845993, 'Teint_Dans_La_Masse': 21845994, 'plastique': 21845995, 'mal_croppe': 21845996, 'Carton_gris': 21845997, 'Carton_brun': 21845998}]} input_args_next_step : {1348286009: ('0.0469128167528036',), 1348285355: ('0.0469128167528036',), 1348285287: ('0.0469128167528036',), 1348285001: ('0.0469128167528036',), 1348284901: ('0.0469128167528036',), 1348284753: ('0.0469128167528036',), 1348284645: ('0.0469128167528036',), 1348284408: ('0.0469128167528036',), 1348284366: ('0.0469128167528036',), 1348284294: ('0.0469128167528036',), 1348284242: ('0.0469128167528036',), 21845981: ()} output_args : {21845981: [{'autre_refus': 21845987, 'environnement': 21845988, 'papier': 21845989, 'cartonnette': 21845990, 'metal': 21845991, 'flou': 21845992, 'kraft': 21845993, 'Teint_Dans_La_Masse': 21845994, 'plastique': 21845995, 'mal_croppe': 21845996, 'Carton_gris': 21845997, 'Carton_brun': 21845998}]} args : 21845981 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 :12, first value : ('0.0469128167528036',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21845981) 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 (1348286009,1348285355,1348285287,1348285001,1348284901,1348284753,1348284645,1348284408,1348284366,1348284294,1348284242) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348284242 begin to download photo : 1348284408 begin to download photo : 1348284901 begin to download photo : 1348285355 download finish for photo 1348284242 begin to download photo : 1348284294 download finish for photo 1348284901 begin to download photo : 1348285001 download finish for photo 1348284408 begin to download photo : 1348284645 download finish for photo 1348285001 begin to download photo : 1348285287 download finish for photo 1348285355 begin to download photo : 1348286009 download finish for photo 1348284645 begin to download photo : 1348284753 download finish for photo 1348286009 download finish for photo 1348284294 begin to download photo : 1348284366 download finish for photo 1348285287 download finish for photo 1348284753 download finish for photo 1348284366 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21845981_28-03-2025_14_48_57.pdf 21845987 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=21845987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348283592: '1743169334_1300660_1348282361_20aa67b14991ca9398361dce4b5a98b5_rle_crop_3736395623_0.png', 1348285458: '1743169586_162259_1348283591_1dcecd92c0fc2ceb4f044f8bb11770ec_rle_crop_3736404354_0.png', 1348285622: '1743169572_1306929_1348283731_8dff61f8622a0ad4e3eccd16a4400cff_rle_crop_3736404603_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7ad46191c8116696e5cbc245cb304238_29626748.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ec614169eff6668fd88e726f32aadbec_73137474.png change filename to text .imagette218459871743169737/ imagette218459871743169737/1743169334_1300660_1348282361_20aa67b14991ca9398361dce4b5a98b5_rle_crop_3736395623_0.png.png imagette218459871743169737/1743169586_162259_1348283591_1dcecd92c0fc2ceb4f044f8bb11770ec_rle_crop_3736404354_0.png.png imagette218459871743169737/1743169572_1306929_1348283731_8dff61f8622a0ad4e3eccd16a4400cff_rle_crop_3736404603_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e47824fd720bb1eec10b694a38359351_5011524.png imagette218459871743169737 21845990 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=21845990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348283227: '1743169345_1541771_1348282001_3f691bc792654345f280ee6b0cf1f3a4_rle_crop_3736395194_0.png', 1348285633: '1743169572_1306929_1348283782_7d0cfcf8c3a8e03f95d11543e6a6ef13_rle_crop_3736404580_0.png', 1348285523: '1743169586_162259_1348283552_6eafc7e5ae6934820e961b46fcde6d6e_rle_crop_3736404561_0.png', 1348284221: '1743169454_1304909_1348282603_a51d33cccdd2b71224ab26a0e55c78c9_rle_crop_3736400873_0.png', 1348284220: '1743169454_1304909_1348282619_7a8f71eab98f130c926d99adbd3216c4_rle_crop_3736400822_0.png', 1348284110: '1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395217_0.png', 1348284106: '1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395208_0.png', 1348283290: '1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395217_0.png', 1348283289: '1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395208_0.png', 1348281945: '1743169104_1534418_1348279948_df57b14047bb659fb6d01855852a5ac0_rle_crop_3736385546_0.png', 1348282618: '1743169234_1298934_1348281266_9d921cb450e1c0dec74eeb1b6e6cf864_rle_crop_3736394125_0.png', 1348282617: '1743169234_1298934_1348281266_9d921cb450e1c0dec74eeb1b6e6cf864_rle_crop_3736394129_0.png', 1348282606: '1743169212_1298603_1348279546_f028e87f780ac73bcf70979a98d65325_rle_crop_3736390081_0.png', 1348282605: '1743169212_1298603_1348279565_ad89a7556b43558af8d31a4e5de4aab0_rle_crop_3736387643_0.png', 1348282604: '1743169212_1298603_1348279565_ad89a7556b43558af8d31a4e5de4aab0_rle_crop_3736387644_0.png', 1348282602: '1743169228_1538504_1348281756_1e5278df030818fcbec707e1a5beddd5_rle_crop_3736392451_0.png', 1348281947: '1743169104_1534418_1348279903_8aa072d0b05528dfb17ba632e29d2efe_rle_crop_3736385565_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f603de6a1436ae406670a222ef1ed875_54267640.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c6742651488c3cee47dca92da6eee54e_28057287.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9c43960486800d1c84d95218bca3f0b3_49859898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/811200febda18a220c883856f0b1c50f_14508175.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ccc91bf6840c834cd3e06300192070f0_15583133.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/88a63aa22eff92ad3bdb915e33c661a5_88645198.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/472d9862d90349e950805abfcd60d62a_67185259.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/88a63aa22eff92ad3bdb915e33c661a5_82870912.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/472d9862d90349e950805abfcd60d62a_69422395.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d2f1882abf71ca324ee6b0eda03af180_91486733.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/21e3985a464092d0310a9152e07c98c4_21050693.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e6cd92b05b061c2472232e08868297e6_87499390.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7c49fb66a4bf3547e9655f197033f25_95079618.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3326ac3a9cb5a9353b18123b6b0f12bf_59053613.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fbb05ca8db9df037c2686eedc418ee50_36551973.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b9ad755cceb48ae6cba74110dfa5d9f6_45470086.png change filename to text .imagette218459901743169737/ imagette218459901743169737/1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395208_0.png.png imagette218459901743169737/1743169104_1534418_1348279903_8aa072d0b05528dfb17ba632e29d2efe_rle_crop_3736385565_0.png.png imagette218459901743169737/1743169586_162259_1348283552_6eafc7e5ae6934820e961b46fcde6d6e_rle_crop_3736404561_0.png.png imagette218459901743169737/1743169234_1298934_1348281266_9d921cb450e1c0dec74eeb1b6e6cf864_rle_crop_3736394125_0.png.png imagette218459901743169737/1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395208_0.png.png imagette218459901743169737/1743169212_1298603_1348279565_ad89a7556b43558af8d31a4e5de4aab0_rle_crop_3736387643_0.png.png imagette218459901743169737/1743169212_1298603_1348279546_f028e87f780ac73bcf70979a98d65325_rle_crop_3736390081_0.png.png imagette218459901743169737/1743169345_1541771_1348282001_3f691bc792654345f280ee6b0cf1f3a4_rle_crop_3736395194_0.png.png imagette218459901743169737/1743169454_1304909_1348282619_7a8f71eab98f130c926d99adbd3216c4_rle_crop_3736400822_0.png.png imagette218459901743169737/1743169572_1306929_1348283782_7d0cfcf8c3a8e03f95d11543e6a6ef13_rle_crop_3736404580_0.png.png imagette218459901743169737/1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395217_0.png.png imagette218459901743169737/1743169212_1298603_1348279565_ad89a7556b43558af8d31a4e5de4aab0_rle_crop_3736387644_0.png.png imagette218459901743169737/1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395217_0.png.png imagette218459901743169737/1743169104_1534418_1348279948_df57b14047bb659fb6d01855852a5ac0_rle_crop_3736385546_0.png.png imagette218459901743169737/1743169234_1298934_1348281266_9d921cb450e1c0dec74eeb1b6e6cf864_rle_crop_3736394129_0.png.png imagette218459901743169737/1743169228_1538504_1348281756_1e5278df030818fcbec707e1a5beddd5_rle_crop_3736392451_0.png.png imagette218459901743169737/1743169454_1304909_1348282603_a51d33cccdd2b71224ab26a0e55c78c9_rle_crop_3736400873_0.png.png imagette218459911743169738/ imagette218459921743169738/ wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/05cf71564c88876e8ccd7ea6f115846f_65935562.png imagette218459901743169737 21845991 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=21845991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218459911743169738 21845992 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=21845992 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218459921743169738 21845993 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=21845993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348280965: '1743168985_1529763_1348279628_f7ff436060761f1717b42cbdd1de6b60_rle_crop_3736378667_0.png', 1348284245: '1743169454_1304909_1348283092_6e881657ca5c6ff743a5e776c9f66909_rle_crop_3736400766_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a368746f65626093b457cf8ff5481335_63001215.png change filename to text .imagette218459931743169738/ imagette218459931743169738/1743169454_1304909_1348283092_6e881657ca5c6ff743a5e776c9f66909_rle_crop_3736400766_0.png.png imagette218459931743169738/1743168985_1529763_1348279628_f7ff436060761f1717b42cbdd1de6b60_rle_crop_3736378667_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/50652e166d9777f3d3e13b88ae862076_8774089.png imagette218459931743169738 21845995 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=21845995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348283607: '1743169334_1300660_1348282280_c3431c09e4aa6e11866e1901158ca283_rle_crop_3736395643_0.png', 1348284238: '1743169454_1304909_1348282612_7366df022da2b21c65082bdb9f5f86a7_rle_crop_3736400836_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0865f56f9aae12a456826ec5d70fdef1_44396223.png change filename to text .imagette218459951743169738/ imagette218459951743169738/1743169334_1300660_1348282280_c3431c09e4aa6e11866e1901158ca283_rle_crop_3736395643_0.png.png imagette218459951743169738/1743169454_1304909_1348282612_7366df022da2b21c65082bdb9f5f86a7_rle_crop_3736400836_0.png.png imagette218459961743169739/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/91c96e8fdb28101358192c5bfec1b1e0_74151343.png imagette218459951743169738 21845996 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=21845996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218459961743169739 21845994 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=21845994 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348283183: '1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395214_0.png', 1348285614: '1743169572_1306929_1348283731_8dff61f8622a0ad4e3eccd16a4400cff_rle_crop_3736404607_0.png', 1348285612: '1743169572_1306929_1348283782_7d0cfcf8c3a8e03f95d11543e6a6ef13_rle_crop_3736404583_0.png', 1348285436: '1743169586_162259_1348283634_3063a84ee5b3e92f772ab5809129165e_rle_crop_3736404344_0.png', 1348285433: '1743169586_162259_1348283644_a4898817f439fe20bf2233c040dc67b2_rle_crop_3736404333_0.png', 1348285430: '1743169586_162259_1348283649_616a06b323f88d106094efb01d9d40ca_rle_crop_3736404228_0.png', 1348285427: '1743169586_162259_1348283910_8077547420cbe72b2acea40fbde53af4_rle_crop_3736404212_0.png', 1348284173: '1743169454_1304909_1348282653_ddf33a6fd45cbe1c8c954c02d806241f_rle_crop_3736400797_0.png', 1348284044: '1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395214_0.png', 1348281874: '1743169104_1534418_1348279849_85ba830f2e451c1c3944bf45dab308fd_rle_crop_3736385580_0.png', 1348282660: '1743169254_1299253_1348280702_2c9745691541bd7b5e0b1d6860d6f6be_bib_crop_3736386670_0.jpg', 1348282658: '1743169254_1299253_1348280702_2c9745691541bd7b5e0b1d6860d6f6be_rle_crop_3736394205_0.png', 1348282614: '1743169234_1298934_1348281842_309e4569ab41b3f00e4fb4d8258d50db_rle_crop_3736393513_0.png', 1348282601: '1743169228_1538504_1348281727_bae41dd3b19aed0aa5b74e4a284cef4d_rle_crop_3736392953_0.png', 1348282600: '1743169228_1538504_1348281756_1e5278df030818fcbec707e1a5beddd5_rle_crop_3736392450_0.png', 1348282599: '1743169228_1538504_1348281783_caf1a8e15c01edc2640c6d92af9695dd_rle_crop_3736392391_0.png', 1348282598: '1743169228_1538504_1348281814_9e58d90b2efbe8789facfe124c19d6b0_rle_crop_3736392158_0.png', 1348282593: '1743169212_1298603_1348279370_9bb5bae8089662401177f9e6aa349113_rle_crop_3736390137_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/486f36a729ae8731a0efd5c9b813eaad_50537944.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/45625ceffeec7960b844ca9351553378_21259268.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/4dc2bee698a5c8768a2a368dcc61821e_61143370.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/86ca2fa86ba623aa2ed2a615ebf9a034_83516270.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7740a57f3048d303762f8585c3f5afc9_19267853.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a8fb9df44f8125bdc16840a8e897f1e1_98754250.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a89fe812286eaffc065d3fd1a75f98e0_23774669.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b1286da8dfce2fbc56072e1377a89850_76692965.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/486f36a729ae8731a0efd5c9b813eaad_41491482.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/4b9436226935f5010a92e719495fb7d5_24585293.png change filename to text .wget -O 11.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/562031463e0754bfec356db69c2d12bb_94955535.jpg change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8d77e2e4d461a5d5c71686cf52ebd053_64808232.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0977a86e1bf3bbeae0113137a4cbfced_51841986.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2e7ed5dc6c9699cbac45a2bcc68b0c20_29764179.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/62fe5266ef2dd461198f2c95235d0968_59159142.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/76a7d913a6d3cb106007a9d30dec371f_15262062.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/05aeb4e5f5f415ab926e90b80159ea35_91654445.png change filename to text .imagette218459941743169739/ imagette218459941743169739/1743169234_1298934_1348281842_309e4569ab41b3f00e4fb4d8258d50db_rle_crop_3736393513_0.png.png imagette218459941743169739/1743169572_1306929_1348283782_7d0cfcf8c3a8e03f95d11543e6a6ef13_rle_crop_3736404583_0.png.png imagette218459941743169739/1743169586_162259_1348283644_a4898817f439fe20bf2233c040dc67b2_rle_crop_3736404333_0.png.png imagette218459941743169739/1743169586_162259_1348283910_8077547420cbe72b2acea40fbde53af4_rle_crop_3736404212_0.png.png imagette218459941743169739/1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395214_0.png.png imagette218459941743169739/1743169104_1534418_1348279849_85ba830f2e451c1c3944bf45dab308fd_rle_crop_3736385580_0.png.png imagette218459941743169739/1743169254_1299253_1348280702_2c9745691541bd7b5e0b1d6860d6f6be_rle_crop_3736394205_0.png.png imagette218459941743169739/1743169586_162259_1348283649_616a06b323f88d106094efb01d9d40ca_rle_crop_3736404228_0.png.png imagette218459941743169739/1743169228_1538504_1348281727_bae41dd3b19aed0aa5b74e4a284cef4d_rle_crop_3736392953_0.png.png imagette218459941743169739/1743169454_1304909_1348282653_ddf33a6fd45cbe1c8c954c02d806241f_rle_crop_3736400797_0.png.png imagette218459941743169739/1743169572_1306929_1348283731_8dff61f8622a0ad4e3eccd16a4400cff_rle_crop_3736404607_0.png.png imagette218459941743169739/1743169586_162259_1348283634_3063a84ee5b3e92f772ab5809129165e_rle_crop_3736404344_0.png.png imagette218459941743169739/1743169228_1538504_1348281756_1e5278df030818fcbec707e1a5beddd5_rle_crop_3736392450_0.png.png imagette218459941743169739/1743169212_1298603_1348279370_9bb5bae8089662401177f9e6aa349113_rle_crop_3736390137_0.png.png imagette218459941743169739/1743169228_1538504_1348281783_caf1a8e15c01edc2640c6d92af9695dd_rle_crop_3736392391_0.png.png imagette218459941743169739/1743169228_1538504_1348281814_9e58d90b2efbe8789facfe124c19d6b0_rle_crop_3736392158_0.png.png imagette218459941743169739/1743169254_1299253_1348280702_2c9745691541bd7b5e0b1d6860d6f6be_bib_crop_3736386670_0.jpg.jpg imagette218459941743169739/1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395214_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/91f28308e71d5b848b336bb09dcf5ac9_83549939.png imagette218459941743169739 21845997 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=21845997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348284087: '1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394976_0.png', 1348285493: '1743169586_162259_1348283634_3063a84ee5b3e92f772ab5809129165e_rle_crop_3736404341_0.png', 1348285481: '1743169586_162259_1348283644_a4898817f439fe20bf2233c040dc67b2_rle_crop_3736404328_0.png', 1348285478: '1743169586_162259_1348283649_616a06b323f88d106094efb01d9d40ca_rle_crop_3736404224_0.png', 1348284198: '1743169454_1304909_1348282619_7a8f71eab98f130c926d99adbd3216c4_rle_crop_3736400817_0.png', 1348284196: '1743169454_1304909_1348283092_6e881657ca5c6ff743a5e776c9f66909_rle_crop_3736400762_0.png', 1348284095: '1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395206_0.png', 1348284094: '1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395158_0.png', 1348284092: '1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395159_0.png', 1348284090: '1743169431_1304612_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395132_0.png', 1348284089: '1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394978_0.png', 1348284088: '1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394985_0.png', 1348281913: '1743169104_1534418_1348279948_df57b14047bb659fb6d01855852a5ac0_rle_crop_3736385549_0.png', 1348283599: '1743169334_1300660_1348282280_c3431c09e4aa6e11866e1901158ca283_rle_crop_3736395635_0.png', 1348283271: '1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395206_0.png', 1348283270: '1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395158_0.png', 1348283269: '1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395159_0.png', 1348283268: '1743169274_1299621_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395132_0.png', 1348283267: '1743169274_1299621_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394978_0.png', 1348283265: '1743169274_1299621_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b43e9607ab5798965a12581bd40d00f0_29576097.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/529d0e5730a048877cba46ff24b68229_83509434.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d84412be0b2b0a8c776c885558c45697_41269876.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/cba75326c164b26aa9678f1d8101745e_91199715.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/26580b662316e2ff661aefefb0d2668d_64574440.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/aa94898c655b5fd391ded0287bb7c6e8_21218838.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6ef52b33155e349f7b4281a389b2052a_50905197.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/26d5ae42130cf02f3351069715ae378f_85803164.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6c8d40daa916f74de9f160bc58991382_93435580.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/97e30415d728a6e637ba452ac34c5647_1408394.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bc1f6a6120ee9c4b131327ce6b59a469_56386940.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f18998724ce93a52b5b3abc9e284f105_43313350.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b182d421a73bd233191d01babf7589a1_68040737.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6d67fc522814d5d223e6be2b2de4f70c_29628180.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6ef52b33155e349f7b4281a389b2052a_35666719.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/26d5ae42130cf02f3351069715ae378f_67029517.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6c8d40daa916f74de9f160bc58991382_64507142.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/97e30415d728a6e637ba452ac34c5647_97418130.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bc1f6a6120ee9c4b131327ce6b59a469_2600755.png change filename to text .imagette218459971743169741/ imagette218459971743169741/1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394985_0.png.png imagette218459971743169741/1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395159_0.png.png imagette218459971743169741/1743169274_1299621_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394985_0.png.png imagette218459971743169741/1743169586_162259_1348283634_3063a84ee5b3e92f772ab5809129165e_rle_crop_3736404341_0.png.png imagette218459971743169741/1743169586_162259_1348283644_a4898817f439fe20bf2233c040dc67b2_rle_crop_3736404328_0.png.png imagette218459971743169741/1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395158_0.png.png imagette218459971743169741/1743169454_1304909_1348282619_7a8f71eab98f130c926d99adbd3216c4_rle_crop_3736400817_0.png.png imagette218459971743169741/1743169334_1300660_1348282280_c3431c09e4aa6e11866e1901158ca283_rle_crop_3736395635_0.png.png imagette218459971743169741/1743169104_1534418_1348279948_df57b14047bb659fb6d01855852a5ac0_rle_crop_3736385549_0.png.png imagette218459971743169741/1743169274_1299621_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395132_0.png.png imagette218459971743169741/1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395158_0.png.png imagette218459971743169741/1743169431_1304612_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395132_0.png.png imagette218459971743169741/1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394976_0.png.png imagette218459971743169741/1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395159_0.png.png imagette218459971743169741/1743169586_162259_1348283649_616a06b323f88d106094efb01d9d40ca_rle_crop_3736404224_0.png.png imagette218459971743169741/1743169454_1304909_1348283092_6e881657ca5c6ff743a5e776c9f66909_rle_crop_3736400762_0.png.png imagette218459971743169741/1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395206_0.png.png imagette218459971743169741/1743169274_1299621_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394978_0.png.png imagette218459971743169741/1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395206_0.png.png imagette218459971743169741/1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394978_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f18998724ce93a52b5b3abc9e284f105_45795317.png imagette218459971743169741 21845998 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=21845998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348284119: '1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394986_0.png', 1348285651: '1743169572_1306929_1348283782_7d0cfcf8c3a8e03f95d11543e6a6ef13_rle_crop_3736404588_0.png', 1348285559: '1743169586_162259_1348283634_3063a84ee5b3e92f772ab5809129165e_rle_crop_3736404342_0.png', 1348285556: '1743169586_162259_1348283644_a4898817f439fe20bf2233c040dc67b2_rle_crop_3736404331_0.png', 1348284128: '1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395212_0.png', 1348284127: '1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395164_0.png', 1348284123: '1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395161_0.png', 1348284122: '1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395165_0.png', 1348284121: '1743169431_1304612_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395127_0.png', 1348284120: '1743169431_1304612_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395129_0.png', 1348280949: '1743168985_1529763_1348279628_f7ff436060761f1717b42cbdd1de6b60_rle_crop_3736378671_0.png', 1348283333: '1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395212_0.png', 1348283332: '1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395164_0.png', 1348283331: '1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395161_0.png', 1348283328: '1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395165_0.png', 1348283327: '1743169274_1299621_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395127_0.png', 1348283326: '1743169274_1299621_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395129_0.png', 1348283325: '1743169274_1299621_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394986_0.png', 1348282609: '1743169228_1538504_1348281783_caf1a8e15c01edc2640c6d92af9695dd_rle_crop_3736392389_0.png', 1348280951: '1743168985_1529763_1348278854_184e834129b3309f432677b775f11467_rle_crop_3736378691_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0ae7af1525a91252889e4c41868ea330_96983209.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/70bffbd28cd38bd8e2f678b7be486594_54855497.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/19b8ea090443a1923b7efef825090803_24538165.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0cafa08aeb71ff002e005078a5004e0d_21590763.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/67d32711ec845c1e413a66a13895b0d0_91960929.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/42e06fedbb06dffde5593e3da3676409_19145174.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6b2674491d89d606f754485fad39f1bc_70016916.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/819e17ab0d213af5351ed8c9f9d711dc_95708121.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a2699923338f9bff8d16e65c17cea064_15891982.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3be57586c06371efb8cc584be0920721_29124990.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/00f246057fce50820817892199731bd0_19463036.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/67d32711ec845c1e413a66a13895b0d0_48242090.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/42e06fedbb06dffde5593e3da3676409_95785864.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6b2674491d89d606f754485fad39f1bc_15384414.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/819e17ab0d213af5351ed8c9f9d711dc_24681175.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a2699923338f9bff8d16e65c17cea064_92862434.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3be57586c06371efb8cc584be0920721_10441657.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0ae7af1525a91252889e4c41868ea330_93994518.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9bf706ffbdb79c97d192215fb631f304_43142462.png change filename to text .imagette218459981743169743/ imagette218459981743169743/1743169431_1304612_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395127_0.png.png imagette218459981743169743/1743169431_1304612_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395212_0.png.png imagette218459981743169743/1743169431_1304612_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394986_0.png.png imagette218459981743169743/1743169572_1306929_1348283782_7d0cfcf8c3a8e03f95d11543e6a6ef13_rle_crop_3736404588_0.png.png imagette218459981743169743/1743169586_162259_1348283634_3063a84ee5b3e92f772ab5809129165e_rle_crop_3736404342_0.png.png imagette218459981743169743/1743169586_162259_1348283644_a4898817f439fe20bf2233c040dc67b2_rle_crop_3736404331_0.png.png imagette218459981743169743/1743169274_1299621_1348278353_7cd005eb7a0e7c3d84deb9e13eb35e9c_rle_crop_3736395212_0.png.png imagette218459981743169743/1743168985_1529763_1348279628_f7ff436060761f1717b42cbdd1de6b60_rle_crop_3736378671_0.png.png imagette218459981743169743/1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395164_0.png.png imagette218459981743169743/1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395165_0.png.png imagette218459981743169743/1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395161_0.png.png imagette218459981743169743/1743169274_1299621_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395164_0.png.png imagette218459981743169743/1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395165_0.png.png imagette218459981743169743/1743169274_1299621_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395127_0.png.png imagette218459981743169743/1743168985_1529763_1348278854_184e834129b3309f432677b775f11467_rle_crop_3736378691_0.png.png imagette218459981743169743/1743169431_1304612_1348278396_f4ee00f71d7a3e81ba40313d1094e859_rle_crop_3736395161_0.png.png imagette218459981743169743/1743169274_1299621_1348278909_56cf36a0c051a3782e3d609bfd6db1cd_rle_crop_3736394986_0.png.png imagette218459981743169743/1743169274_1299621_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395129_0.png.png imagette218459981743169743/1743169228_1538504_1348281783_caf1a8e15c01edc2640c6d92af9695dd_rle_crop_3736392389_0.png.png imagette218459981743169743/1743169431_1304612_1348278468_a5f42907d14722b8dbfd1d0cdb90887f_rle_crop_3736395129_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d11813ce4e553a966b269597b8550008_90293303.png imagette218459981743169743 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21845981 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21845999,21846000,21846001,21846002,21846003,21846004,21846005,21846006,21846007,21846008,21846009,21846010?tags=autre_refus,environnement,papier,cartonnette,metal,flou,kraft,Teint_Dans_La_Masse,plastique,mal_croppe,Carton_gris,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1348286009] : ('0.0469128167528036',) no score found for photo 1348286009 We are sending mail with results at report@fotonower.com args[1348285355] : ('0.0469128167528036',) no score found for photo 1348285355 We are sending mail with results at report@fotonower.com args[1348285287] : ('0.0469128167528036',) no score found for photo 1348285287 We are sending mail with results at report@fotonower.com args[1348285001] : ('0.0469128167528036',) no score found for photo 1348285001 We are sending mail with results at report@fotonower.com args[1348284901] : ('0.0469128167528036',) no score found for photo 1348284901 We are sending mail with results at report@fotonower.com args[1348284753] : ('0.0469128167528036',) no score found for photo 1348284753 We are sending mail with results at report@fotonower.com args[1348284645] : ('0.0469128167528036',) no score found for photo 1348284645 We are sending mail with results at report@fotonower.com args[1348284408] : ('0.0469128167528036',) no score found for photo 1348284408 We are sending mail with results at report@fotonower.com args[1348284366] : ('0.0469128167528036',) no score found for photo 1348284366 We are sending mail with results at report@fotonower.com args[1348284294] : ('0.0469128167528036',) no score found for photo 1348284294 We are sending mail with results at report@fotonower.com args[1348284242] : ('0.0469128167528036',) no score found for photo 1348284242 We are sending mail with results at report@fotonower.com refus_total : 0.0469128167528036 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=21845981 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_P21845981_28-03-2025_14_48_57.pdf results_Auto_P21845981_28-03-2025_14_48_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21845981_28-03-2025_14_48_57.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','21845981','results_Auto_P21845981_28-03-2025_14_48_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21845981_28-03-2025_14_48_57.pdf','pdf','','0.3','0.0469128167528036') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21845981]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] map_info['map_portfolio_photo'] : {21845981: [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242, 1348283910, 1348283808, 1348283782, 1348283757, 1348283731, 1348283709, 1348283654, 1348283649, 1348283644, 1348283634, 1348283591, 1348283552, 1348283092, 1348283036, 1348283019, 1348282974, 1348282703, 1348282653, 1348282627, 1348282619, 1348282612, 1348282603, 1348282455, 1348282416, 1348282361, 1348282280, 1348282237, 1348282199, 1348282005, 1348282001, 1348281999, 1348281842, 1348281814, 1348281783, 1348281756, 1348281727, 1348281698, 1348281395, 1348281362, 1348281335, 1348281300, 1348281266, 1348280875, 1348280702, 1348280653, 1348280601, 1348280011, 1348279948, 1348279903, 1348279849, 1348279628, 1348279565, 1348279546, 1348279438, 1348279394, 1348279370, 1348278909, 1348278854, 1348278823, 1348278516, 1348278468, 1348278396, 1348278353]} final : False mtd_id 4302 list_pids : [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] 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, '2702004') ('4302', '21845981', '1348286009', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '21845981', '1348286009', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004')] time used for this insertion : 0.021795988082885742 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.564269304275513 time spend to save output : 0.022097110748291016 total time spend for step 4 : 9.586366415023804 step5:split_time_score Fri Mar 28 14:49:06 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 : ['21845981'] 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 : [('21845981',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21845981) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348285355: {'path': 'temp/1743169737_2096073_1348285355_6b8c1f2d574d1d70d778d0bab3b8862b.jpg', 'extension': 'jpg'}, 1348286009: {'path': 'temp/1743169737_2096073_1348286009_62af03efb073d47e87058d2036d24d72.jpg', 'extension': 'jpg'}, 1348284901: {'path': 'temp/1743169737_2096073_1348284901_288f0f591e9303d764b1cc06ff660082.jpg', 'extension': 'jpg'}, 1348285001: {'path': 'temp/1743169737_2096073_1348285001_fc7e9073789c1aca07be1bd235d54863.jpg', 'extension': 'jpg'}, 1348285287: {'path': 'temp/1743169737_2096073_1348285287_e74976910fbe793333a4d596fa7cdf80.jpg', 'extension': 'jpg'}, 1348284408: {'path': 'temp/1743169737_2096073_1348284408_de77833ad1cf6dab37c9e040166ed75b.jpg', 'extension': 'jpg'}, 1348284645: {'path': 'temp/1743169737_2096073_1348284645_806cdfb8904f69b08d242a306f644e6e.jpg', 'extension': 'jpg'}, 1348284753: {'path': 'temp/1743169737_2096073_1348284753_ef697c1e4cb64b0e57ef84040030ef5b.jpg', 'extension': 'jpg'}, 1348284242: {'path': 'temp/1743169737_2096073_1348284242_4778adac454200396f1047512df44e5e.jpg', 'extension': 'jpg'}, 1348284294: {'path': 'temp/1743169737_2096073_1348284294_9d5fcc2c934afbbda070c73ce92f2ade.jpg', 'extension': 'jpg'}, 1348284366: {'path': 'temp/1743169737_2096073_1348284366_71e2f83eafa80457cff985abd7b5d839.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 = 21845981; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21845981 group by h (('14', 74),) 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=21845981 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 (21845981) 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 (21845981) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21845981 Nombre de photos uploadées : 74 / 23040 (0%) 28032025 21845981 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 28032025 21845981 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1348278516, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a081c9ab59f44e2ef4b3247059f529c8.jpg', 'username': None, 'uploaded_at': 1743168739, 'text': 'image_28032025_14_30_04_010153m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348278468, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a5f42907d14722b8dbfd1d0cdb90887f.jpg', 'username': None, 'uploaded_at': 1743168739, 'text': 'image_28032025_14_30_14_010141m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348278396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f4ee00f71d7a3e81ba40313d1094e859.jpg', 'username': None, 'uploaded_at': 1743168739, 'text': 'image_28032025_14_30_24_009128m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348278353, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7cd005eb7a0e7c3d84deb9e13eb35e9c.jpg', 'username': None, 'uploaded_at': 1743168739, 'text': 'image_28032025_14_30_34_010143m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.2636184692382812e-05 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035431385040283203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21845981, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025634050369262695 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705571, 'mtr_portfolio_id': 21844510, 'dashboard_result_id': 9719095, '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_P21844510_28-03-2025_14_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21844511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21844512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21844513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21844514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21844515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21844516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21844517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21844518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21844519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21844520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21844521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21844522, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705571, 'mtr_portfolio_id': 21845175, 'dashboard_result_id': 9719096, '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_P21845175_28-03-2025_14_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21845176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21845177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21845178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21845179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21845180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21845181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21845182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21845183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21845184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21845185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21845186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21845187, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705571, 'mtr_portfolio_id': 21845981, 'dashboard_result_id': 9719097, '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_P21845981_28-03-2025_14_46_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21845987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21845988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21845989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21845990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21845991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21845992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21845993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21845994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21845995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21845996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21845997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21845998, '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 = 21844510 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': 2701891, 'mtr_portfolio_id': 21844510, 'created_at': datetime.datetime(2025, 3, 28, 14, 19), 'result': '0.01817350413726024', 'result_long': None, 'result_double': None}] Qualite : 0.01817350413726024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21844510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21844510_28-03-2025_14_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21844510 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_P21844510_28-03-2025_14_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21844511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21844512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21844513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21844514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21844515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21844516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21844517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21844518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21844519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21844520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21844521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21844522, 'pht': 3726}}" where mtr_portfolio_id = 21844510 and dashboard_run_id = 1705571 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`=21844510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9719095, 0.01817350413726024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21844510_28-03-2025_14_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21844511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21844512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21844513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21844514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21844515, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21844516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21844517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21844518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21844519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21844520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21844521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21844522, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21845175 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': 2701934, 'mtr_portfolio_id': 21845175, 'created_at': datetime.datetime(2025, 3, 28, 14, 35), 'result': '0.03391887589980472', 'result_long': None, 'result_double': None}] Qualite : 0.03391887589980472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21845175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21845175_28-03-2025_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21845175 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_P21845175_28-03-2025_14_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21845176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21845177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21845178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21845179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21845180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21845181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21845182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21845183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21845184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21845185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21845186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21845187, 'pht': 3726}}" where mtr_portfolio_id = 21845175 and dashboard_run_id = 1705571 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`=21845175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9719096, 0.03391887589980472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21845175_28-03-2025_14_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21845176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21845177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21845178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21845179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21845180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21845181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21845182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21845183, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21845184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21845185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21845186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21845187, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21845981 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': 2702004, 'mtr_portfolio_id': 21845981, 'created_at': datetime.datetime(2025, 3, 28, 14, 48, 57), 'result': '0.0469128167528036', 'result_long': None, 'result_double': None}] Qualite : 0.0469128167528036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21845981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21845981_28-03-2025_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21845981 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_P21845981_28-03-2025_14_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21845987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21845988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21845989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21845990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21845991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21845992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21845993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21845994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21845995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21845996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21845997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21845998, 'pht': 3726}}" where mtr_portfolio_id = 21845981 and dashboard_run_id = 1705571 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`=21845981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9719097, 0.0469128167528036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21845981_28-03-2025_14_48_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21845987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21845988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21845989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21845990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21845991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21845992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21845993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21845994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21845995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21845996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21845997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21845998, '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 (21844510,21845175,21845981) result : ((1348263226,), (1348263267,), (1348263319,), (1348264030,), (1348264089,), (1348264137,), (1348266234,), (1348266371,), (1348266485,), (1348266579,), (1348266674,), (1348267020,), (1348267029,), (1348267044,), (1348267049,), (1348267159,), (1348268547,), (1348269662,), (1348269710,), (1348269785,), (1348269869,), (1348270413,), (1348270454,), (1348271074,), (1348271481,), (1348271523,), (1348271567,), (1348271730,), (1348271822,), (1348271889,), (1348272200,), (1348272265,), (1348272349,), (1348272430,), (1348272492,), (1348272545,), (1348272945,), (1348272890,), (1348272917,), (1348273418,), (1348273453,), (1348273511,), (1348273566,), (1348273606,), (1348274195,), (1348274219,), (1348274251,), (1348274274,), (1348274282,), (1348274354,), (1348274668,), (1348274687,), (1348274713,), (1348274728,), (1348275329,), (1348275491,), (1348275532,), (1348275640,), (1348275656,), (1348275697,), (1348275742,), (1348275753,), (1348275773,), (1348275849,), (1348275882,), (1348276008,), (1348276075,), (1348276106,), (1348276137,), (1348276482,), (1348276521,), (1348276758,), (1348276764,), (1348276793,), (1348276854,), (1348277047,), (1348277365,), (1348278559,), (1348278353,), (1348278396,), (1348278468,), (1348278516,), (1348278823,), (1348278854,), (1348278909,), (1348279370,), (1348279394,), (1348279438,), (1348279546,), (1348279565,), (1348279628,), (1348279849,), (1348279903,), (1348279948,), (1348280011,), (1348280601,), (1348280653,), (1348280702,), (1348280875,), (1348281266,), (1348281300,), (1348281335,), (1348281362,), (1348281395,), (1348281698,), (1348281727,), (1348281756,), (1348281783,), (1348281814,), (1348281842,), (1348281999,), (1348282001,), (1348282005,), (1348282199,), (1348282237,), (1348282280,), (1348282361,), (1348282416,), (1348282455,), (1348282603,), (1348282612,), (1348282619,), (1348282627,), (1348282653,), (1348282703,), (1348282974,), (1348283019,), (1348283036,), (1348283092,), (1348283552,), (1348283591,), (1348283634,), (1348283644,), (1348283649,), (1348283654,), (1348283709,), (1348283731,), (1348283757,), (1348283782,), (1348283808,), (1348283910,), (1348284242,), (1348284294,), (1348284366,), (1348284408,), (1348284645,), (1348284753,), (1348284901,), (1348285001,), (1348285287,), (1348285355,), (1348286009,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21845981]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] map_info['map_portfolio_photo'] : {21845981: [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242, 1348283910, 1348283808, 1348283782, 1348283757, 1348283731, 1348283709, 1348283654, 1348283649, 1348283644, 1348283634, 1348283591, 1348283552, 1348283092, 1348283036, 1348283019, 1348282974, 1348282703, 1348282653, 1348282627, 1348282619, 1348282612, 1348282603, 1348282455, 1348282416, 1348282361, 1348282280, 1348282237, 1348282199, 1348282005, 1348282001, 1348281999, 1348281842, 1348281814, 1348281783, 1348281756, 1348281727, 1348281698, 1348281395, 1348281362, 1348281335, 1348281300, 1348281266, 1348280875, 1348280702, 1348280653, 1348280601, 1348280011, 1348279948, 1348279903, 1348279849, 1348279628, 1348279565, 1348279546, 1348279438, 1348279394, 1348279370, 1348278909, 1348278854, 1348278823, 1348278516, 1348278468, 1348278396, 1348278353]} final : True mtd_id 4302 list_pids : [1348286009, 1348285355, 1348285287, 1348285001, 1348284901, 1348284753, 1348284645, 1348284408, 1348284366, 1348284294, 1348284242] Looping around the photos to save general results len do output : 1 /21845981Didn'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, '2702004') ('4302', '21845981', '1348286009', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004') ('4302', None, None, None, None, None, None, None, '2702004') ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004') 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', None, '21845981', 'None', None, None, None, None, '2702004'), ('4302', '21845981', '1348286009', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285355', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285287', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348285001', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284901', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284753', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284645', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284408', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284366', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284294', None, None, None, None, None, '2702004'), ('4302', '21845981', '1348284242', None, None, None, None, None, '2702004')] time used for this insertion : 0.013257741928100586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1772665977478027 time spend to save output : 0.013503551483154297 total time spend for step 5 : 1.190770149230957 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 (2702004) 2.41user 2.61system 0:14.00elapsed 35%CPU (0avgtext+0avgdata 159576maxresident)k 752inputs+18640outputs (11major+75055minor)pagefaults 0swaps