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 : 3235520 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 (2711638) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2711638) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934417 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2711638'] with mtr_portfolio_ids : ['21934417'] and first list_photo_ids : [] new path : /proc/3235520/ Name: python3 Umask: 0002 State: R (running) Tgid: 3235520 Ngid: 0 Pid: 3235520 PPid: 3235516 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3235520 NSpid: 3235520 NSpgid: 3233359 NSsid: 3233359 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97580 kB VmRSS: 97580 kB RssAnon: 59796 kB RssFile: 37784 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 65 nonvoluntary_ctxt_switches: 188 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3235520', 'Ngid': '0', 'Pid': '3235520', 'PPid': '3235516', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3235520', 'NSpid': '3235520', 'NSpgid': '3233359', 'NSsid': '3233359', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97580 kB', 'VmRSS': '97580 kB', 'RssAnon': '59796 kB', 'RssFile': '37784 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '65', 'nonvoluntary_ctxt_switches': '188'} ('datou_batch_current', '3235520', '1106928', '0', '1106928', '865676', '97580', b'', 'marlene', '2711638') 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 (21934417) 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 (2711638 ) ) 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 (21934417) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349207887, 'portfolio_id': 21934417}, {'photo_id': 1349207296, 'portfolio_id': 21934417}, {'photo_id': 1349207246, 'portfolio_id': 21934417}, {'photo_id': 1349207193, 'portfolio_id': 21934417}, {'photo_id': 1349207102, 'portfolio_id': 21934417}, {'photo_id': 1349207034, 'portfolio_id': 21934417}, {'photo_id': 1349206622, 'portfolio_id': 21934417}, {'photo_id': 1349206620, 'portfolio_id': 21934417}, {'photo_id': 1349206618, 'portfolio_id': 21934417}, {'photo_id': 1349206616, 'portfolio_id': 21934417}, {'photo_id': 1349206600, 'portfolio_id': 21934417}, {'photo_id': 1349206591, 'portfolio_id': 21934417}, {'photo_id': 1349206588, 'portfolio_id': 21934417}, {'photo_id': 1349206587, 'portfolio_id': 21934417}, {'photo_id': 1349206581, 'portfolio_id': 21934417}, {'photo_id': 1349206570, 'portfolio_id': 21934417}, {'photo_id': 1349206568, 'portfolio_id': 21934417}, {'photo_id': 1349206566, 'portfolio_id': 21934417}, {'photo_id': 1349206564, 'portfolio_id': 21934417}, {'photo_id': 1349206560, 'portfolio_id': 21934417}, {'photo_id': 1349206558, 'portfolio_id': 21934417}, {'photo_id': 1349206544, 'portfolio_id': 21934417}, {'photo_id': 1349206542, 'portfolio_id': 21934417}, {'photo_id': 1349206541, 'portfolio_id': 21934417}, {'photo_id': 1349206539, 'portfolio_id': 21934417}, {'photo_id': 1349206531, 'portfolio_id': 21934417}, {'photo_id': 1349206529, 'portfolio_id': 21934417}, {'photo_id': 1349206528, 'portfolio_id': 21934417}, {'photo_id': 1349206527, 'portfolio_id': 21934417}, {'photo_id': 1349206526, 'portfolio_id': 21934417}, {'photo_id': 1349206442, 'portfolio_id': 21934417}, {'photo_id': 1349206441, 'portfolio_id': 21934417}, {'photo_id': 1349206439, 'portfolio_id': 21934417}, {'photo_id': 1349206437, 'portfolio_id': 21934417}, {'photo_id': 1349206433, 'portfolio_id': 21934417}, {'photo_id': 1349206432, 'portfolio_id': 21934417}, {'photo_id': 1349206431, 'portfolio_id': 21934417}, {'photo_id': 1349206429, 'portfolio_id': 21934417}, {'photo_id': 1349206419, 'portfolio_id': 21934417}, {'photo_id': 1349206414, 'portfolio_id': 21934417}, {'photo_id': 1349206396, 'portfolio_id': 21934417}, {'photo_id': 1349206394, 'portfolio_id': 21934417}, {'photo_id': 1349206392, 'portfolio_id': 21934417}, {'photo_id': 1349206386, 'portfolio_id': 21934417}, {'photo_id': 1349206384, 'portfolio_id': 21934417}, {'photo_id': 1349206382, 'portfolio_id': 21934417}, {'photo_id': 1349206381, 'portfolio_id': 21934417}, {'photo_id': 1349206377, 'portfolio_id': 21934417}, {'photo_id': 1349206336, 'portfolio_id': 21934417}, {'photo_id': 1349206334, 'portfolio_id': 21934417}, {'photo_id': 1349206332, 'portfolio_id': 21934417}, {'photo_id': 1349206327, 'portfolio_id': 21934417}, {'photo_id': 1349206236, 'portfolio_id': 21934417}, {'photo_id': 1349206235, 'portfolio_id': 21934417}, {'photo_id': 1349206234, 'portfolio_id': 21934417}, {'photo_id': 1349206233, 'portfolio_id': 21934417}, {'photo_id': 1349206216, 'portfolio_id': 21934417}, {'photo_id': 1349206215, 'portfolio_id': 21934417}, {'photo_id': 1349206213, 'portfolio_id': 21934417}, {'photo_id': 1349206168, 'portfolio_id': 21934417}, {'photo_id': 1349206150, 'portfolio_id': 21934417}, {'photo_id': 1349206142, 'portfolio_id': 21934417}, {'photo_id': 1349206114, 'portfolio_id': 21934417}, {'photo_id': 1349206113, 'portfolio_id': 21934417}, {'photo_id': 1349206112, 'portfolio_id': 21934417}, {'photo_id': 1349206106, 'portfolio_id': 21934417}] map_portfolio_id_photo_id: {21934417: [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034, 1349206622, 1349206620, 1349206618, 1349206616, 1349206600, 1349206591, 1349206588, 1349206587, 1349206581, 1349206570, 1349206568, 1349206566, 1349206564, 1349206560, 1349206558, 1349206544, 1349206542, 1349206541, 1349206539, 1349206531, 1349206529, 1349206528, 1349206527, 1349206526, 1349206442, 1349206441, 1349206439, 1349206437, 1349206433, 1349206432, 1349206431, 1349206429, 1349206419, 1349206414, 1349206396, 1349206394, 1349206392, 1349206386, 1349206384, 1349206382, 1349206381, 1349206377, 1349206336, 1349206334, 1349206332, 1349206327, 1349206236, 1349206235, 1349206234, 1349206233, 1349206216, 1349206215, 1349206213, 1349206168, 1349206150, 1349206142, 1349206114, 1349206113, 1349206112, 1349206106]} ##### 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.015800952911376953 #### 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 Tue Apr 1 06:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21934417) 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 : 21934417 get user id for portfolio 21934417 get sub ptf for main ptf 21934417, type 3726 and hashtags ['plastique', 'Carton_gris', 'metal', 'mal_croppe', 'autre_refus', 'papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'cartonnette', 'environnement', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21934417 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','metal','mal_croppe','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','kraft','cartonnette','environnement','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21934417 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','metal','mal_croppe','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','kraft','cartonnette','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21934417, 'sub_port_id': 21934420, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438304, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'autre_refus': {'main_port_id': 21934417, 'sub_port_id': 21934421, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438305, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'mal_croppe': {'main_port_id': 21934417, 'sub_port_id': 21934422, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438306, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'Carton_brun': {'main_port_id': 21934417, 'sub_port_id': 21934423, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438307, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'environnement': {'main_port_id': 21934417, 'sub_port_id': 21934424, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438308, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'metal': {'main_port_id': 21934417, 'sub_port_id': 21934425, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438309, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'cartonnette': {'main_port_id': 21934417, 'sub_port_id': 21934426, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438310, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21934417, 'sub_port_id': 21934427, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438311, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'kraft': {'main_port_id': 21934417, 'sub_port_id': 21934428, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438312, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'Carton_gris': {'main_port_id': 21934417, 'sub_port_id': 21934429, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438313, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'flou': {'main_port_id': 21934417, 'sub_port_id': 21934430, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438314, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}, 'plastique': {'main_port_id': 21934417, 'sub_port_id': 21934431, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438315, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21934420 , 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=21934417 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 (21934420) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934421 , 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=21934417 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 (21934421) result : ((1349206420,), (1349206421,), (1349206449,), (1349206552,), (1349206601,), (1349206610,), (1349206611,), (1349207425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934422 , 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=21934417 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 (21934422) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934423 , 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=21934417 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 (21934423) result : ((1349206378,), (1349206379,), (1349206409,), (1349206428,), (1349206555,), (1349206565,), (1349207459,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934424 , 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=21934417 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 (21934424) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934425 , 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=21934417 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 (21934425) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934426 , 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=21934417 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 (21934426) result : ((1349206376,), (1349206426,), (1349206427,), (1349206452,), (1349206553,), (1349206860,), (1349207058,), (1349207061,), (1349207064,), (1349207067,), (1349207070,), (1349207451,), (1349207452,), (1349207453,), (1349207454,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934427 , 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=21934417 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 (21934427) result : ((1349206338,), (1349206371,), (1349206372,), (1349206417,), (1349206418,), (1349206446,), (1349206448,), (1349206549,), (1349206550,), (1349206551,), (1349206561,), (1349206562,), (1349206594,), (1349206595,), (1349206596,), (1349206597,), (1349206599,), (1349206606,), (1349206607,), (1349206608,), (1349206609,), (1349206852,), (1349206853,), (1349206854,), (1349206855,), (1349207016,), (1349207419,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934428 , 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=21934417 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 (21934428) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934429 , 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=21934417 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 (21934429) result : ((1349206374,), (1349206375,), (1349206406,), (1349206407,), (1349206408,), (1349206423,), (1349206424,), (1349206425,), (1349206450,), (1349206563,), (1349206612,), (1349206959,), (1349207033,), (1349207037,), (1349207435,), (1349207436,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934430 , 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=21934417 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 (21934430) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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 21934431 , 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=21934417 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 (21934431) result : ((1349206380,), (1349206469,), (1349206602,), (1349206603,), (1349206613,), (1349207468,), (1349207469,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21934417) result : ((1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) 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 (1349206600) 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`=21934417 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','metal','mal_croppe','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','kraft','cartonnette','environnement','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21934417 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','metal','mal_croppe','autre_refus','papier','Carton_brun','Teint_Dans_La_Masse','kraft','cartonnette','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21934417, 'sub_port_id': 21934432, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438316, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'autre_refus': {'main_port_id': 21934417, 'sub_port_id': 21934433, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438317, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'mal_croppe': {'main_port_id': 21934417, 'sub_port_id': 21934434, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438318, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'Carton_brun': {'main_port_id': 21934417, 'sub_port_id': 21934435, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438319, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'environnement': {'main_port_id': 21934417, 'sub_port_id': 21934436, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438320, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'metal': {'main_port_id': 21934417, 'sub_port_id': 21934437, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438321, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'cartonnette': {'main_port_id': 21934417, 'sub_port_id': 21934438, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438322, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21934417, 'sub_port_id': 21934439, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438323, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'kraft': {'main_port_id': 21934417, 'sub_port_id': 21934440, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438324, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'Carton_gris': {'main_port_id': 21934417, 'sub_port_id': 21934441, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438325, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'flou': {'main_port_id': 21934417, 'sub_port_id': 21934442, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438326, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}, 'plastique': {'main_port_id': 21934417, 'sub_port_id': 21934443, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14438327, 'last_updated_at': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 1, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 1, 5, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934421 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934434,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934422 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934435,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934423 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934436,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934437,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934425 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934438,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934426 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934439,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934427 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934440,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934428 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934441,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934429 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934442,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934430 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21934443,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21934431 lien utilise dans velours : https://www.fotonower.com/velours/21934432,21934433,21934434,21934435,21934436,21934437,21934438,21934439,21934440,21934441,21934442,21934443?tags=papier,autre_refus,mal_croppe,Carton_brun,environnement,metal,cartonnette,Teint_Dans_La_Masse,kraft,Carton_gris,flou,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21934417]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] map_info['map_portfolio_photo'] : {21934417: [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034, 1349206622, 1349206620, 1349206618, 1349206616, 1349206600, 1349206591, 1349206588, 1349206587, 1349206581, 1349206570, 1349206568, 1349206566, 1349206564, 1349206560, 1349206558, 1349206544, 1349206542, 1349206541, 1349206539, 1349206531, 1349206529, 1349206528, 1349206527, 1349206526, 1349206442, 1349206441, 1349206439, 1349206437, 1349206433, 1349206432, 1349206431, 1349206429, 1349206419, 1349206414, 1349206396, 1349206394, 1349206392, 1349206386, 1349206384, 1349206382, 1349206381, 1349206377, 1349206336, 1349206334, 1349206332, 1349206327, 1349206236, 1349206235, 1349206234, 1349206233, 1349206216, 1349206215, 1349206213, 1349206168, 1349206150, 1349206142, 1349206114, 1349206113, 1349206112, 1349206106]} final : False mtd_id 4302 list_pids : [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] Looping around the photos to save general results len do output : 1 /21934417. 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, '2711638') ('4302', '21934417', '1349207887', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21934417', "{'papier': 21934420, 'autre_refus': 21934421, 'mal_croppe': 21934422, 'Carton_brun': 21934423, 'environnement': 21934424, 'metal': 21934425, 'cartonnette': 21934426, 'Teint_Dans_La_Masse': 21934427, 'kraft': 21934428, 'Carton_gris': 21934429, 'flou': 21934430, 'plastique': 21934431}", None, None, None, None, '2711638'), ('4302', '21934417', '1349207887', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638')] time used for this insertion : 0.015490531921386719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5040342807769775 time spend to save output : 0.015749216079711914 total time spend for step 1 : 0.5197834968566895 step2:final Tue Apr 1 06:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21934417) 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 21934417 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349206142,1349206114,1349206113,1349206112,1349206106,1349206216,1349206215,1349206213,1349206168,1349206150,1349206236,1349206235,1349206234,1349206233,1349206336,1349206334,1349206332,1349206327,1349206386,1349206384,1349206382,1349206381,1349206377,1349206396,1349206394,1349206392,1349206433,1349206432,1349206431,1349206429,1349206419,1349206414,1349206442,1349206441,1349206439,1349206437,1349206531,1349206529,1349206528,1349206527,1349206526,1349206544,1349206542,1349206541,1349206539,1349206570,1349206568,1349206566,1349206564,1349206560,1349206558,1349206600,1349206591,1349206588,1349206587,1349206622,1349206581,1349206620,1349206618,1349206616,1349207296,1349207246,1349207193,1349207102,1349207034,1349207887); 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([21934417]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} new output for save of step final : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] map_info['map_portfolio_photo'] : {21934417: [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034, 1349206622, 1349206620, 1349206618, 1349206616, 1349206600, 1349206591, 1349206588, 1349206587, 1349206581, 1349206570, 1349206568, 1349206566, 1349206564, 1349206560, 1349206558, 1349206544, 1349206542, 1349206541, 1349206539, 1349206531, 1349206529, 1349206528, 1349206527, 1349206526, 1349206442, 1349206441, 1349206439, 1349206437, 1349206433, 1349206432, 1349206431, 1349206429, 1349206419, 1349206414, 1349206396, 1349206394, 1349206392, 1349206386, 1349206384, 1349206382, 1349206381, 1349206377, 1349206336, 1349206334, 1349206332, 1349206327, 1349206236, 1349206235, 1349206234, 1349206233, 1349206216, 1349206215, 1349206213, 1349206168, 1349206150, 1349206142, 1349206114, 1349206113, 1349206112, 1349206106]} final : False mtd_id 4302 list_pids : [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] Looping around the photos to save general results len do output : 6 /1349207887.Didn't retrieve data . /1349207296.Didn't retrieve data . /1349207246.Didn't retrieve data . /1349207193.Didn't retrieve data . /1349207102.Didn't retrieve data . /1349207034.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, '2711638') ('4302', '21934417', '1349207887', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21934417', '1349207887', '0.04317725021261593', None, None, None, None, '2711638'), ('4302', '21934417', '1349207296', '0.04317725021261593', None, None, None, None, '2711638'), ('4302', '21934417', '1349207246', '0.04317725021261593', None, None, None, None, '2711638'), ('4302', '21934417', '1349207193', '0.04317725021261593', None, None, None, None, '2711638'), ('4302', '21934417', '1349207102', '0.04317725021261593', None, None, None, None, '2711638'), ('4302', '21934417', '1349207034', '0.04317725021261593', None, None, None, None, '2711638')] time used for this insertion : 0.08132481575012207 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5472185611724854 time spend to save output : 0.0817408561706543 total time spend for step 2 : 0.6289594173431396 step3:velours_tree Tue Apr 1 06:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21934417: [{'papier': 21934420, 'autre_refus': 21934421, 'mal_croppe': 21934422, 'Carton_brun': 21934423, 'environnement': 21934424, 'metal': 21934425, 'cartonnette': 21934426, 'Teint_Dans_La_Masse': 21934427, 'kraft': 21934428, 'Carton_gris': 21934429, 'flou': 21934430, 'plastique': 21934431}]} input_args_next_step : {21934417: ()} output_args : {21934417: [{'papier': 21934420, 'autre_refus': 21934421, 'mal_croppe': 21934422, 'Carton_brun': 21934423, 'environnement': 21934424, 'metal': 21934425, 'cartonnette': 21934426, 'Teint_Dans_La_Masse': 21934427, 'kraft': 21934428, 'Carton_gris': 21934429, 'flou': 21934430, 'plastique': 21934431}]} args : 21934417 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 : ({'papier': 21934420, 'autre_refus': 21934421, 'mal_croppe': 21934422, 'Carton_brun': 21934423, 'environnement': 21934424, 'metal': 21934425, 'cartonnette': 21934426, 'Teint_Dans_La_Masse': 21934427, 'kraft': 21934428, 'Carton_gris': 21934429, 'flou': 21934430, 'plastique': 21934431},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21934417) 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([21934417]) 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.36693620681762695 time spend to save output : 8.96453857421875e-05 total time spend for step 3 : 0.36702585220336914 step4:send_mail_cod Tue Apr 1 06:03:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} input_args_next_step : {1349207887: ()} output_args : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} args : 1349207887 depend.output_id : 0 input_args_next_step : {1349207887: ('0.04317725021261593',), 1349207296: ()} output_args : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} args : 1349207296 depend.output_id : 0 input_args_next_step : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ()} output_args : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} args : 1349207246 depend.output_id : 0 input_args_next_step : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ()} output_args : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} args : 1349207193 depend.output_id : 0 input_args_next_step : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ()} output_args : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} args : 1349207102 depend.output_id : 0 input_args_next_step : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ()} output_args : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',)} args : 1349207034 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 : {21934417: [{'papier': 21934420, 'autre_refus': 21934421, 'mal_croppe': 21934422, 'Carton_brun': 21934423, 'environnement': 21934424, 'metal': 21934425, 'cartonnette': 21934426, 'Teint_Dans_La_Masse': 21934427, 'kraft': 21934428, 'Carton_gris': 21934429, 'flou': 21934430, 'plastique': 21934431}]} input_args_next_step : {1349207887: ('0.04317725021261593',), 1349207296: ('0.04317725021261593',), 1349207246: ('0.04317725021261593',), 1349207193: ('0.04317725021261593',), 1349207102: ('0.04317725021261593',), 1349207034: ('0.04317725021261593',), 21934417: ()} output_args : {21934417: [{'papier': 21934420, 'autre_refus': 21934421, 'mal_croppe': 21934422, 'Carton_brun': 21934423, 'environnement': 21934424, 'metal': 21934425, 'cartonnette': 21934426, 'Teint_Dans_La_Masse': 21934427, 'kraft': 21934428, 'Carton_gris': 21934429, 'flou': 21934430, 'plastique': 21934431}]} args : 21934417 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :7, first value : ('0.04317725021261593',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21934417) 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 (1349207887,1349207296,1349207246,1349207193,1349207102,1349207034) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349207034 begin to download photo : 1349207193 begin to download photo : 1349207296 download finish for photo 1349207193 begin to download photo : 1349207246 download finish for photo 1349207296 begin to download photo : 1349207887 download finish for photo 1349207034 begin to download photo : 1349207102 download finish for photo 1349207246 download finish for photo 1349207887 download finish for photo 1349207102 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P21934417_01-04-2025_06_03_00.pdf 21934421 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=21934421 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349206420: '1743479491_4140436_1349206114_1c6e2832b15f8d07bd4a00f584ac21fe_rle_crop_3742303898_0.png', 1349206421: '1743479491_4140436_1349206112_628373d910a5bdcfc6bbfd7a3665663c_rle_crop_3742303930_0.png', 1349206449: '1743479591_4141239_1349206382_b71dfd91599954d847b6080a766b2282_rle_crop_3742304630_0.png', 1349206552: '1743479711_4142116_1349206528_42755e7f0c849c029928b55654720bde_rle_crop_3742304887_0.png', 1349206601: '1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313444_0.png', 1349206610: '1743479832_4143616_1349206431_c5cffa9f498af8b80e7b5ad27f3d4de6_rle_crop_3742315826_0.png', 1349206611: '1743479832_4143616_1349206414_ffc872c44feae6aff48517f1df75d2f0_rle_crop_3742310911_0.png', 1349207425: '1743479991_4145097_1349206568_39e1ad78ad252cfd377fd9697a9b6b5b_rle_crop_3742319437_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/02bfc9ee725b7a1f485d1153ae726592_66919471.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0f0c4ae1ddea7d3df2ea082174576a9a_94148651.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/421ba5838b43c383669ab818c5592c63_22252070.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7b5b6fe85c00f5cfe02167fa9464bb85_91662740.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/bbff1c6b0e16b03f031a468724ac75eb_27231600.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8018a2074eb78501b2d2d108a95e3666_70652101.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5e198d3d1f89fcb75dcc03fcc9fe52a8_14393766.png change filename to text .imagette219344211743480180/ imagette219344211743480180/1743479832_4143616_1349206431_c5cffa9f498af8b80e7b5ad27f3d4de6_rle_crop_3742315826_0.png.png imagette219344211743480180/1743479832_4143616_1349206414_ffc872c44feae6aff48517f1df75d2f0_rle_crop_3742310911_0.png.png imagette219344211743480180/1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313444_0.png.png imagette219344211743480180/1743479711_4142116_1349206528_42755e7f0c849c029928b55654720bde_rle_crop_3742304887_0.png.png imagette219344211743480180/1743479991_4145097_1349206568_39e1ad78ad252cfd377fd9697a9b6b5b_rle_crop_3742319437_0.png.png imagette219344211743480180/1743479591_4141239_1349206382_b71dfd91599954d847b6080a766b2282_rle_crop_3742304630_0.png.png imagette219344211743480180/1743479491_4140436_1349206112_628373d910a5bdcfc6bbfd7a3665663c_rle_crop_3742303930_0.png.png imagette219344211743480180/1743479491_4140436_1349206114_1c6e2832b15f8d07bd4a00f584ac21fe_rle_crop_3742303898_0.png.png imagette219344221743480180/ imagette219344251743480180/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/983712a511c82e4ec2907d4e236549bf_55728917.png imagette219344211743480180 21934422 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=21934422 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219344221743480180 21934425 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=21934425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219344251743480180 21934426 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=21934426 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349206376: '1743479367_1844114_1349206150_5f4590ebbe2cb8ad797fa6a12a32b1b9_rle_crop_3742302949_0.png', 1349206426: '1743479491_4140436_1349206114_1c6e2832b15f8d07bd4a00f584ac21fe_rle_crop_3742303901_0.png', 1349206427: '1743479491_4140436_1349206106_438f6b4fe9df9f3fd64899040134b696_rle_crop_3742303952_0.png', 1349206452: '1743479591_4141239_1349206377_bc41d3399542df79a9fac9913c2fd655_rle_crop_3742304676_0.png', 1349206553: '1743479711_4142116_1349206529_6a784afad49cacd96294b3c2d06e927b_rle_crop_3742304876_0.png', 1349206860: '1743479953_4144680_1349206618_07d919eff4c5c79e8b58973e60a9676f_rle_crop_3742318944_0.png', 1349207058: '1743479968_1853508_1349206591_2f91c9387b05870531fddc410cce3a71_rle_crop_3742319095_0.png', 1349207061: '1743479968_1853508_1349206588_28454b8a6e6cf5f35ce479503b519acc_rle_crop_3742319120_0.png', 1349207064: '1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319136_0.png', 1349207067: '1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319138_0.png', 1349207070: '1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319137_0.png', 1349207451: '1743479991_4145097_1349206566_c8d6ab2d2c859f58358c9e528ec53919_rle_crop_3742319453_0.png', 1349207452: '1743479991_4145097_1349206564_a91404872c4da846e2976930f32f4cd7_rle_crop_3742319471_0.png', 1349207453: '1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319479_0.png', 1349207454: '1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319481_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6cff9ec75bd12c05735c734ae29b395d_94343931.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2cd59bf57f20b59eded02acbb5933023_91757776.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a787282e3ff4d4a9be8bc341ada4e1e7_88101019.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4fc1b5bcbefadb60d9224dea6c6b6d16_92652636.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/528068a8a8fa0208af714aca011ba6f7_18303894.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0afcca52dfc05b32d2b9b01d39473514_63702502.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/926834c947dbdfa2295d75eefc7a0142_37183568.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7cbb72d20b8285509fb55af863d59bda_9580372.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/803f5121a571d8724046ce2e76415617_22554105.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/63bc201c7aed420a3267dac5d48787b1_79530768.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5363969f0cf565ff074f8ebf5412ea1d_49759459.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/acdad781e091f7e441432de0506475de_83137041.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c3770f1af057cd23d5710843da66fbec_57773132.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e4a82b2988ae112afd02b3c1a1c06c26_64169905.png change filename to text .imagette219344261743480180/ imagette219344261743480180/1743479491_4140436_1349206106_438f6b4fe9df9f3fd64899040134b696_rle_crop_3742303952_0.png.png imagette219344261743480180/1743479991_4145097_1349206564_a91404872c4da846e2976930f32f4cd7_rle_crop_3742319471_0.png.png imagette219344261743480180/1743479968_1853508_1349206588_28454b8a6e6cf5f35ce479503b519acc_rle_crop_3742319120_0.png.png imagette219344261743480180/1743479711_4142116_1349206529_6a784afad49cacd96294b3c2d06e927b_rle_crop_3742304876_0.png.png imagette219344261743480180/1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319137_0.png.png imagette219344261743480180/1743479491_4140436_1349206114_1c6e2832b15f8d07bd4a00f584ac21fe_rle_crop_3742303901_0.png.png imagette219344261743480180/1743479991_4145097_1349206566_c8d6ab2d2c859f58358c9e528ec53919_rle_crop_3742319453_0.png.png imagette219344261743480180/1743479591_4141239_1349206377_bc41d3399542df79a9fac9913c2fd655_rle_crop_3742304676_0.png.png imagette219344261743480180/1743479367_1844114_1349206150_5f4590ebbe2cb8ad797fa6a12a32b1b9_rle_crop_3742302949_0.png.png imagette219344261743480180/1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319479_0.png.png imagette219344261743480180/1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319138_0.png.png imagette219344261743480180/1743479953_4144680_1349206618_07d919eff4c5c79e8b58973e60a9676f_rle_crop_3742318944_0.png.png imagette219344261743480180/1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319136_0.png.png imagette219344261743480180/1743479968_1853508_1349206591_2f91c9387b05870531fddc410cce3a71_rle_crop_3742319095_0.png.png imagette219344261743480180/1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319481_0.png.png imagette219344281743480181/ imagette219344301743480181/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/130396cc7c4876d607de957a39b14576_2354313.png imagette219344261743480180 21934428 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=21934428 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219344281743480181 21934430 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=21934430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219344301743480181 21934431 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=21934431 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349206380: '1743479367_1844114_1349206215_97e84d30376f3417dd786cdae9695ddb_rle_crop_3742302906_0.png', 1349206469: '1743479591_4141239_1349206396_39fc4e965b4f2fcee99ec0116fb74e75_rle_crop_3742304594_0.png', 1349206602: '1743479821_4143465_1349206541_8cfc31ea04336364d8ed72459861a868_rle_crop_3742313441_0.png', 1349206603: '1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313451_0.png', 1349206613: '1743479832_4143616_1349206429_50562fa0bc641520f14854880aaaa23e_rle_crop_3742309449_0.png', 1349207468: '1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319484_0.png', 1349207469: '1743479991_4145097_1349206558_b3a6bfd8e0a5b9a40ee5e07aa322303f_rle_crop_3742319506_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e7461712ccaa497ddf6ba89c609c9288_43968608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/23e0e290796c77f096dab1c06139b8da_62249532.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/ec972b4ebc67ae77691d0d28a44f4f0c_99977067.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/56d9fd9ef588a583bd9da5f95fa3c610_99706017.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/9b3ee42f3f8eacf003a0c8bc1412546a_22040190.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/07328fb27fc2e09de9d545119d63debf_7104944.png change filename to text .imagette219344311743480181/ imagette219344311743480181/1743479367_1844114_1349206215_97e84d30376f3417dd786cdae9695ddb_rle_crop_3742302906_0.png.png imagette219344311743480181/1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313451_0.png.png imagette219344311743480181/1743479821_4143465_1349206541_8cfc31ea04336364d8ed72459861a868_rle_crop_3742313441_0.png.png imagette219344311743480181/1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319484_0.png.png imagette219344311743480181/1743479832_4143616_1349206429_50562fa0bc641520f14854880aaaa23e_rle_crop_3742309449_0.png.png imagette219344311743480181/1743479991_4145097_1349206558_b3a6bfd8e0a5b9a40ee5e07aa322303f_rle_crop_3742319506_0.png.png imagette219344311743480181/1743479591_4141239_1349206396_39fc4e965b4f2fcee99ec0116fb74e75_rle_crop_3742304594_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a3499a3289173ae23ca25ebecd4cd537_70703306.png imagette219344311743480181 21934423 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=21934423 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349206378: '1743479367_1844114_1349206150_5f4590ebbe2cb8ad797fa6a12a32b1b9_rle_crop_3742302948_0.png', 1349206379: '1743479367_1844114_1349206150_5f4590ebbe2cb8ad797fa6a12a32b1b9_rle_crop_3742302946_0.png', 1349206409: '1743479487_1846944_1349206327_bc429b0e4e02a4c76308a0243bef925a_rle_crop_3742303579_0.png', 1349206428: '1743479491_4140436_1349206216_e7842856833aeae116fcf83eef4227d2_rle_crop_3742303878_0.png', 1349206555: '1743479711_4142116_1349206527_c71d70a5ffa75e4a50f1f05d6d2ffdfb_rle_crop_3742304953_0.png', 1349206565: '1743479731_4142324_1349206437_fe6b9d20e026022cb57e4e4928d8d7fb_rle_crop_3742305069_0.png', 1349207459: '1743479991_4145097_1349206568_39e1ad78ad252cfd377fd9697a9b6b5b_rle_crop_3742319441_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/05e21b029e6187c26578ab2a20a82bb2_73397173.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7170fc3d78c744d13d700e1d68e19fae_89132076.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/f1501f2c89329c7bf38173ff413c97fe_76692706.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b1d0fae3bcb6b0225219a5c771721201_20198244.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5a6495a9408b283c70c354441328fd15_69566404.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/3be2e1b9c875ec76e912fb5ae0324da6_46643670.png change filename to text .imagette219344231743480182/ imagette219344231743480182/1743479487_1846944_1349206327_bc429b0e4e02a4c76308a0243bef925a_rle_crop_3742303579_0.png.png imagette219344231743480182/1743479491_4140436_1349206216_e7842856833aeae116fcf83eef4227d2_rle_crop_3742303878_0.png.png imagette219344231743480182/1743479367_1844114_1349206150_5f4590ebbe2cb8ad797fa6a12a32b1b9_rle_crop_3742302946_0.png.png imagette219344231743480182/1743479991_4145097_1349206568_39e1ad78ad252cfd377fd9697a9b6b5b_rle_crop_3742319441_0.png.png imagette219344231743480182/1743479367_1844114_1349206150_5f4590ebbe2cb8ad797fa6a12a32b1b9_rle_crop_3742302948_0.png.png imagette219344231743480182/1743479711_4142116_1349206527_c71d70a5ffa75e4a50f1f05d6d2ffdfb_rle_crop_3742304953_0.png.png imagette219344231743480182/1743479731_4142324_1349206437_fe6b9d20e026022cb57e4e4928d8d7fb_rle_crop_3742305069_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/50d59d0b91405a894a4ededabbd8d95b_24915.png imagette219344231743480182 21934427 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=21934427 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349206595: '1743479821_4143465_1349206541_8cfc31ea04336364d8ed72459861a868_rle_crop_3742313439_0.png', 1349207419: '1743479991_4145097_1349206600_6c0227c52547fbe521b2455d2f2f26da_rle_crop_3742319427_0.png', 1349207016: '1743479968_1853508_1349206591_2f91c9387b05870531fddc410cce3a71_rle_crop_3742319091_0.png', 1349206855: '1743479953_4144680_1349206616_34669e2f4ee3b9e56140eeea6421b2cc_rle_crop_3742318986_0.png', 1349206854: '1743479953_4144680_1349206618_07d919eff4c5c79e8b58973e60a9676f_rle_crop_3742318934_0.png', 1349206853: '1743479953_4144680_1349206620_340b0d9717a47e54cbba064eabb9bc01_rle_crop_3742318927_0.png', 1349206852: '1743479953_4144680_1349206620_340b0d9717a47e54cbba064eabb9bc01_rle_crop_3742318924_0.png', 1349206609: '1743479832_4143616_1349206419_bc5d14533cb2178a22c0706fa3cd0b28_rle_crop_3742309461_0.png', 1349206608: '1743479832_4143616_1349206442_f664864d2b49939d190fda8a0e9d3d43_rle_crop_3742309428_0.png', 1349206607: '1743479832_4143616_1349206442_f664864d2b49939d190fda8a0e9d3d43_rle_crop_3742309420_0.png', 1349206606: '1743479832_4143616_1349206442_f664864d2b49939d190fda8a0e9d3d43_rle_crop_3742309419_0.png', 1349206599: '1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313447_0.png', 1349206597: '1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313452_0.png', 1349206596: '1743479821_4143465_1349206541_8cfc31ea04336364d8ed72459861a868_rle_crop_3742313440_0.png', 1349206338: '1743479341_4139015_1349206233_0968ad9adee4c03c7b86292c971257a2_rle_crop_3742302738_0.png', 1349206594: '1743479821_4143465_1349206542_6a2db2e9a98a82e21c1cf09ab934e8d6_rle_crop_3742313294_0.png', 1349206562: '1743479731_4142324_1349206437_fe6b9d20e026022cb57e4e4928d8d7fb_rle_crop_3742305076_0.png', 1349206561: '1743479731_4142324_1349206531_344310cdd6be105ceaccd236befcabeb_rle_crop_3742305037_0.png', 1349206551: '1743479711_4142116_1349206526_e951b703ad4ff7a96170b34b48840525_rle_crop_3742305014_0.png', 1349206550: '1743479711_4142116_1349206527_c71d70a5ffa75e4a50f1f05d6d2ffdfb_rle_crop_3742304957_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/25714245a167127cf9906cd8f6d3a197_92739237.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/42708fd724b323043b151293f13cff8e_67541375.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/22505c35c2b89e4fcf9aac774550ecb3_64220775.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5e301e3d9e280c3b3cd565e08977f699_42683257.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2d25f226d558be7ac0432de023ee1bb5_85010904.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/dc049a4ba74b72f46d40327703797f73_8813340.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4f1fa552568df889e78484f820b755c0_57222866.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e202cfe8b3331dd831009dc6c2f3f3aa_77791693.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/96b9db1bc040dcac723d351b0b033d9d_65168753.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d7c5add9f14285dd5e141d24e7725cd1_65432243.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/56cb1e6954b4cb16902c6f7b81a99290_39225546.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8a56cbe7511e8256ed9757666ee6dff9_85515967.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1d194b0b8c64cacfeba7398e84a6225b_99809517.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/cc16a0cec7a7df5a1b5e8b1dec113484_60839777.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e69b8522c0e7ad6b9893e8b08ff3306d_12839507.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d8b839b5ae07c964c2785b9621216ac4_25434603.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a3356a88e393c173b92169638b5bfc81_5180742.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1f05aa200140f867fc17620213e962db_15443955.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8981a864f75e718c0277a73d6f30e355_68624278.png change filename to text .imagette219344271743480182/ imagette219344271743480182/1743479821_4143465_1349206541_8cfc31ea04336364d8ed72459861a868_rle_crop_3742313440_0.png.png imagette219344271743480182/1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313447_0.png.png imagette219344271743480182/1743479953_4144680_1349206620_340b0d9717a47e54cbba064eabb9bc01_rle_crop_3742318927_0.png.png imagette219344271743480182/1743479968_1853508_1349206591_2f91c9387b05870531fddc410cce3a71_rle_crop_3742319091_0.png.png imagette219344271743480182/1743479953_4144680_1349206616_34669e2f4ee3b9e56140eeea6421b2cc_rle_crop_3742318986_0.png.png imagette219344271743480182/1743479341_4139015_1349206233_0968ad9adee4c03c7b86292c971257a2_rle_crop_3742302738_0.png.png imagette219344271743480182/1743479731_4142324_1349206437_fe6b9d20e026022cb57e4e4928d8d7fb_rle_crop_3742305076_0.png.png imagette219344271743480182/1743479821_4143465_1349206542_6a2db2e9a98a82e21c1cf09ab934e8d6_rle_crop_3742313294_0.png.png imagette219344271743480182/1743479821_4143465_1349206541_8cfc31ea04336364d8ed72459861a868_rle_crop_3742313439_0.png.png imagette219344271743480182/1743479953_4144680_1349206620_340b0d9717a47e54cbba064eabb9bc01_rle_crop_3742318924_0.png.png imagette219344271743480182/1743479832_4143616_1349206419_bc5d14533cb2178a22c0706fa3cd0b28_rle_crop_3742309461_0.png.png imagette219344271743480182/1743479711_4142116_1349206527_c71d70a5ffa75e4a50f1f05d6d2ffdfb_rle_crop_3742304957_0.png.png imagette219344271743480182/1743479832_4143616_1349206442_f664864d2b49939d190fda8a0e9d3d43_rle_crop_3742309419_0.png.png imagette219344271743480182/1743479832_4143616_1349206442_f664864d2b49939d190fda8a0e9d3d43_rle_crop_3742309420_0.png.png imagette219344271743480182/1743479991_4145097_1349206600_6c0227c52547fbe521b2455d2f2f26da_rle_crop_3742319427_0.png.png imagette219344271743480182/1743479953_4144680_1349206618_07d919eff4c5c79e8b58973e60a9676f_rle_crop_3742318934_0.png.png imagette219344271743480182/1743479711_4142116_1349206526_e951b703ad4ff7a96170b34b48840525_rle_crop_3742305014_0.png.png imagette219344271743480182/1743479832_4143616_1349206442_f664864d2b49939d190fda8a0e9d3d43_rle_crop_3742309428_0.png.png imagette219344271743480182/1743479821_4143465_1349206539_afdf5dfc54e80b66a9e47c6f20622fd4_rle_crop_3742313452_0.png.png imagette219344271743480182/1743479731_4142324_1349206531_344310cdd6be105ceaccd236befcabeb_rle_crop_3742305037_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0160edbd3ec7498186db715046d6f16b_72161973.png imagette219344271743480182 21934429 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=21934429 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349206374: '1743479367_1844114_1349206236_77eed66388fc90f878c2371e98a8e02d_rle_crop_3742302893_0.png', 1349206375: '1743479367_1844114_1349206215_97e84d30376f3417dd786cdae9695ddb_rle_crop_3742302903_0.png', 1349206406: '1743479487_1846944_1349206332_0a6988f05572f28d41ef28615e13c608_rle_crop_3742303565_0.png', 1349206407: '1743479487_1846944_1349206327_bc429b0e4e02a4c76308a0243bef925a_rle_crop_3742303578_0.png', 1349206408: '1743479487_1846944_1349206327_bc429b0e4e02a4c76308a0243bef925a_rle_crop_3742303577_0.png', 1349206423: '1743479491_4140436_1349206112_628373d910a5bdcfc6bbfd7a3665663c_rle_crop_3742303927_0.png', 1349206424: '1743479491_4140436_1349206106_438f6b4fe9df9f3fd64899040134b696_rle_crop_3742303940_0.png', 1349206425: '1743479491_4140436_1349206106_438f6b4fe9df9f3fd64899040134b696_rle_crop_3742303943_0.png', 1349206450: '1743479591_4141239_1349206384_25d00b49e92189fd87425f0ec6d56edb_rle_crop_3742304604_0.png', 1349206563: '1743479731_4142324_1349206437_fe6b9d20e026022cb57e4e4928d8d7fb_rle_crop_3742305075_0.png', 1349206612: '1743479832_4143616_1349206429_50562fa0bc641520f14854880aaaa23e_rle_crop_3742309447_0.png', 1349206959: '1743479972_4144872_1349206570_73eaa5ca620b5ebe64795fe8856226c0_rle_crop_3742319103_0.png', 1349207033: '1743479968_1853508_1349206591_2f91c9387b05870531fddc410cce3a71_rle_crop_3742319088_0.png', 1349207037: '1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319135_0.png', 1349207435: '1743479991_4145097_1349206564_a91404872c4da846e2976930f32f4cd7_rle_crop_3742319469_0.png', 1349207436: '1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319482_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8512a5e2eee17cbd89f73585c2b12b9f_62892336.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1ca57b8bb99e437b909148a20f09c878_80070077.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fc97989a832076228abe17adfb1b2975_49869109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7e610b7904e79847f38a88373f619a6d_60734368.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/90c0c26bbb236274743cae720f3d0c47_9300895.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/dbb1e21b68c6201fef0c602d660db4ec_68232732.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/f4675157e05ba70aa053ce6f0abff910_38062251.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/53b41965df7fd88fc5f43f7fa7ca3a12_37173073.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/871c6163635cdd579882507d454e53bb_94951143.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a8c2f6f6b11c32834b13117c0df60758_14021030.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6331c24393c9a7ab628dbf8e1ed43694_2369219.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/aaaa629e4fd878d97a36c5709a4c2e02_96447274.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/12b4b63283948f33f4f754518107f0d9_14180007.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2be48180fc79a008b362bcf20ac16d39_23029143.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4e43faccb69ba98ff49137a439f3df4e_38953186.png change filename to text .imagette219344291743480184/ imagette219344291743480184/1743479487_1846944_1349206327_bc429b0e4e02a4c76308a0243bef925a_rle_crop_3742303578_0.png.png imagette219344291743480184/1743479367_1844114_1349206236_77eed66388fc90f878c2371e98a8e02d_rle_crop_3742302893_0.png.png imagette219344291743480184/1743479991_4145097_1349206560_53ca27e1d44758614a3c904408650a0d_rle_crop_3742319482_0.png.png imagette219344291743480184/1743479487_1846944_1349206332_0a6988f05572f28d41ef28615e13c608_rle_crop_3742303565_0.png.png imagette219344291743480184/1743479491_4140436_1349206106_438f6b4fe9df9f3fd64899040134b696_rle_crop_3742303943_0.png.png imagette219344291743480184/1743479972_4144872_1349206570_73eaa5ca620b5ebe64795fe8856226c0_rle_crop_3742319103_0.png.png imagette219344291743480184/1743479968_1853508_1349206591_2f91c9387b05870531fddc410cce3a71_rle_crop_3742319088_0.png.png imagette219344291743480184/1743479731_4142324_1349206437_fe6b9d20e026022cb57e4e4928d8d7fb_rle_crop_3742305075_0.png.png imagette219344291743480184/1743479968_1853508_1349206587_c69a1b01c02227d9c0faf72031d33cab_rle_crop_3742319135_0.png.png imagette219344291743480184/1743479487_1846944_1349206327_bc429b0e4e02a4c76308a0243bef925a_rle_crop_3742303577_0.png.png imagette219344291743480184/1743479832_4143616_1349206429_50562fa0bc641520f14854880aaaa23e_rle_crop_3742309447_0.png.png imagette219344291743480184/1743479367_1844114_1349206215_97e84d30376f3417dd786cdae9695ddb_rle_crop_3742302903_0.png.png imagette219344291743480184/1743479991_4145097_1349206564_a91404872c4da846e2976930f32f4cd7_rle_crop_3742319469_0.png.png imagette219344291743480184/1743479591_4141239_1349206384_25d00b49e92189fd87425f0ec6d56edb_rle_crop_3742304604_0.png.png imagette219344291743480184/1743479491_4140436_1349206112_628373d910a5bdcfc6bbfd7a3665663c_rle_crop_3742303927_0.png.png imagette219344291743480184/1743479491_4140436_1349206106_438f6b4fe9df9f3fd64899040134b696_rle_crop_3742303940_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/23c4d7c7143869ce3c8a7be1fea8f3ec_86576247.png imagette219344291743480184 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21934417 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21934432,21934433,21934434,21934435,21934436,21934437,21934438,21934439,21934440,21934441,21934442,21934443?tags=papier,autre_refus,mal_croppe,Carton_brun,environnement,metal,cartonnette,Teint_Dans_La_Masse,kraft,Carton_gris,flou,plastique your option no_mail is active, we will not send the real mail to your client args[1349207887] : ('0.04317725021261593',) no score found for photo 1349207887 We are sending mail with results at report@fotonower.com args[1349207296] : ('0.04317725021261593',) no score found for photo 1349207296 We are sending mail with results at report@fotonower.com args[1349207246] : ('0.04317725021261593',) no score found for photo 1349207246 We are sending mail with results at report@fotonower.com args[1349207193] : ('0.04317725021261593',) no score found for photo 1349207193 We are sending mail with results at report@fotonower.com args[1349207102] : ('0.04317725021261593',) no score found for photo 1349207102 We are sending mail with results at report@fotonower.com args[1349207034] : ('0.04317725021261593',) no score found for photo 1349207034 We are sending mail with results at report@fotonower.com refus_total : 0.04317725021261593 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=21934417 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_P21934417_01-04-2025_06_03_00.pdf results_Auto_P21934417_01-04-2025_06_03_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934417_01-04-2025_06_03_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21934417','results_Auto_P21934417_01-04-2025_06_03_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934417_01-04-2025_06_03_00.pdf','pdf','','0.24','0.04317725021261593') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21934417]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] map_info['map_portfolio_photo'] : {21934417: [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034, 1349206622, 1349206620, 1349206618, 1349206616, 1349206600, 1349206591, 1349206588, 1349206587, 1349206581, 1349206570, 1349206568, 1349206566, 1349206564, 1349206560, 1349206558, 1349206544, 1349206542, 1349206541, 1349206539, 1349206531, 1349206529, 1349206528, 1349206527, 1349206526, 1349206442, 1349206441, 1349206439, 1349206437, 1349206433, 1349206432, 1349206431, 1349206429, 1349206419, 1349206414, 1349206396, 1349206394, 1349206392, 1349206386, 1349206384, 1349206382, 1349206381, 1349206377, 1349206336, 1349206334, 1349206332, 1349206327, 1349206236, 1349206235, 1349206234, 1349206233, 1349206216, 1349206215, 1349206213, 1349206168, 1349206150, 1349206142, 1349206114, 1349206113, 1349206112, 1349206106]} final : False mtd_id 4302 list_pids : [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] 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, '2711638') ('4302', '21934417', '1349207887', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21934417', '1349207887', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638')] time used for this insertion : 0.1360630989074707 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.032082796096802 time spend to save output : 0.13629913330078125 total time spend for step 4 : 6.168381929397583 step5:split_time_score Tue Apr 1 06:03: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 : ['21934417'] 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 : [('21934417',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21934417) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349207193: {'path': 'temp/1743480180_3235520_1349207193_1b5493446509fc86b657fb36e93dc21f.jpg', 'extension': 'jpg'}, 1349207246: {'path': 'temp/1743480180_3235520_1349207246_4c7e4851764ab089fb56b69c33022e6e.jpg', 'extension': 'jpg'}, 1349207296: {'path': 'temp/1743480180_3235520_1349207296_2cfcc4260d64a9fb82a51e31b09530de.jpg', 'extension': 'jpg'}, 1349207887: {'path': 'temp/1743480180_3235520_1349207887_cc8145943413eb8a870e612369ecc7f6.jpg', 'extension': 'jpg'}, 1349207034: {'path': 'temp/1743480180_3235520_1349207034_a0ec313385ef5c206c82defb68b51472.jpg', 'extension': 'jpg'}, 1349207102: {'path': 'temp/1743480180_3235520_1349207102_7f1141c6bfd9046d00f20d7b75358ac3.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 = 21934417; (('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 = 21934417 group by h (('05', 66),) 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=21934417 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 (21934417) 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 (21934417) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01042025 21934417 Nombre de photos uploadées : 66 / 23040 (0%) 01042025 21934417 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 01042025 21934417 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1349206142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/4fe084f1c30cdd2448ece20a3e891fd0.jpg', 'username': None, 'uploaded_at': 1743479168, 'text': 'image_01042025_05_45_04_010154m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349206114, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1c6e2832b15f8d07bd4a00f584ac21fe.jpg', 'username': None, 'uploaded_at': 1743479168, 'text': 'image_01042025_05_45_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349206113, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e81a341175258c05d72458d1c5e9f3eb.jpg', 'username': None, 'uploaded_at': 1743479168, 'text': 'image_01042025_05_45_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349206112, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/628373d910a5bdcfc6bbfd7a3665663c.jpg', 'username': None, 'uploaded_at': 1743479168, 'text': 'image_01042025_05_45_33_009126m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002569913864135742 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21934417, '2025-04-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1705632,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03020453453063965 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= 1705632 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1705632, 'dashboard_run_id': 1713814, 'mtr_portfolio_id': 21933416, 'dashboard_result_id': 9777614, '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_P21933416_01-04-2025_05_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933430, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1713814, 'mtr_portfolio_id': 21933884, 'dashboard_result_id': 9777615, '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_P21933884_01-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21933912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933923, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1713814, 'mtr_portfolio_id': 21934417, 'dashboard_result_id': 9777616, '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_P21934417_01-04-2025_05_59_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21934420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934431, '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 = 21933416 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': 2711515, 'mtr_portfolio_id': 21933416, 'created_at': datetime.datetime(2025, 4, 1, 5, 32, 30), 'result': '0.04519663029978082', 'result_long': None, 'result_double': None}] Qualite : 0.04519663029978082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21933416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933416_01-04-2025_05_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21933416 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_P21933416_01-04-2025_05_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933430, 'pht': 3726}}" where mtr_portfolio_id = 21933416 and dashboard_run_id = 1713814 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`=21933416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9777614, 0.04519663029978082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933416_01-04-2025_05_32_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21933429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933430, '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 = 21933884 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': 2711610, 'mtr_portfolio_id': 21933884, 'created_at': datetime.datetime(2025, 4, 1, 5, 49, 30), 'result': '0.04014615871914352', 'result_long': None, 'result_double': None}] Qualite : 0.04014615871914352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21933884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933884_01-04-2025_05_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21933884 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_P21933884_01-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21933912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933923, 'pht': 3726}}" where mtr_portfolio_id = 21933884 and dashboard_run_id = 1713814 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`=21933884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9777615, 0.04014615871914352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21933884_01-04-2025_05_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21933912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21933913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21933914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21933915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21933916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21933917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21933918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21933919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21933920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21933921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21933922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21933923, '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 = 21934417 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': 2711638, 'mtr_portfolio_id': 21934417, 'created_at': datetime.datetime(2025, 4, 1, 6, 2, 59), 'result': '0.04317725021261593', 'result_long': None, 'result_double': None}] Qualite : 0.04317725021261593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21934417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934417_01-04-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21934417 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_P21934417_01-04-2025_06_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21934420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934431, 'pht': 3726}}" where mtr_portfolio_id = 21934417 and dashboard_run_id = 1713814 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`=21934417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9777616, 0.04317725021261593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21934417_01-04-2025_06_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21934420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21934421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21934422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21934423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21934424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21934425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21934426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21934427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21934428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21934429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21934430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21934431, '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 (21933416,21933884,21934417) result : ((1349202435,), (1349202437,), (1349202438,), (1349202439,), (1349202444,), (1349202451,), (1349202458,), (1349202459,), (1349202460,), (1349202462,), (1349202464,), (1349202468,), (1349202470,), (1349202472,), (1349202474,), (1349202476,), (1349202494,), (1349202495,), (1349202524,), (1349202560,), (1349202561,), (1349202563,), (1349202565,), (1349202592,), (1349202604,), (1349202606,), (1349202608,), (1349202625,), (1349202760,), (1349202761,), (1349202762,), (1349202764,), (1349202826,), (1349202881,), (1349202882,), (1349202888,), (1349202905,), (1349202931,), (1349203025,), (1349203026,), (1349203041,), (1349203194,), (1349203200,), (1349203202,), (1349203214,), (1349203217,), (1349203346,), (1349203347,), (1349203350,), (1349203370,), (1349203372,), (1349203374,), (1349203517,), (1349203519,), (1349203521,), (1349203524,), (1349203574,), (1349203575,), (1349203797,), (1349204045,), (1349204151,), (1349204152,), (1349204168,), (1349204187,), (1349204299,), (1349204281,), (1349204283,), (1349204285,), (1349204287,), (1349204369,), (1349204372,), (1349204374,), (1349204376,), (1349204423,), (1349204482,), (1349204504,), (1349204506,), (1349204508,), (1349204529,), (1349204530,), (1349204605,), (1349204607,), (1349204609,), (1349204719,), (1349204721,), (1349204723,), (1349204725,), (1349204750,), (1349204752,), (1349204753,), (1349204754,), (1349204813,), (1349204828,), (1349204938,), (1349204942,), (1349204944,), (1349204967,), (1349204981,), (1349205027,), (1349205078,), (1349205082,), (1349205085,), (1349205086,), (1349205174,), (1349205179,), (1349205181,), (1349205183,), (1349205184,), (1349205273,), (1349205306,), (1349205356,), (1349205382,), (1349205386,), (1349205388,), (1349205404,), (1349205406,), (1349205440,), (1349205517,), (1349205579,), (1349205581,), (1349205643,), (1349205662,), (1349205666,), (1349205782,), (1349205844,), (1349205885,), (1349205887,), (1349205889,), (1349205893,), (1349205912,), (1349206063,), (1349206072,), (1349206078,), (1349206144,), (1349206106,), (1349206112,), (1349206113,), (1349206114,), (1349206142,), (1349206150,), (1349206168,), (1349206213,), (1349206215,), (1349206216,), (1349206233,), (1349206234,), (1349206235,), (1349206236,), (1349206327,), (1349206332,), (1349206334,), (1349206336,), (1349206377,), (1349206381,), (1349206382,), (1349206384,), (1349206386,), (1349206392,), (1349206394,), (1349206396,), (1349206414,), (1349206419,), (1349206429,), (1349206431,), (1349206432,), (1349206433,), (1349206437,), (1349206439,), (1349206441,), (1349206442,), (1349206526,), (1349206527,), (1349206528,), (1349206529,), (1349206531,), (1349206539,), (1349206541,), (1349206542,), (1349206544,), (1349206558,), (1349206560,), (1349206564,), (1349206566,), (1349206568,), (1349206570,), (1349206581,), (1349206587,), (1349206588,), (1349206591,), (1349206600,), (1349206616,), (1349206618,), (1349206620,), (1349206622,), (1349207034,), (1349207102,), (1349207193,), (1349207246,), (1349207296,), (1349207887,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21934417]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] map_info['map_portfolio_photo'] : {21934417: [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034, 1349206622, 1349206620, 1349206618, 1349206616, 1349206600, 1349206591, 1349206588, 1349206587, 1349206581, 1349206570, 1349206568, 1349206566, 1349206564, 1349206560, 1349206558, 1349206544, 1349206542, 1349206541, 1349206539, 1349206531, 1349206529, 1349206528, 1349206527, 1349206526, 1349206442, 1349206441, 1349206439, 1349206437, 1349206433, 1349206432, 1349206431, 1349206429, 1349206419, 1349206414, 1349206396, 1349206394, 1349206392, 1349206386, 1349206384, 1349206382, 1349206381, 1349206377, 1349206336, 1349206334, 1349206332, 1349206327, 1349206236, 1349206235, 1349206234, 1349206233, 1349206216, 1349206215, 1349206213, 1349206168, 1349206150, 1349206142, 1349206114, 1349206113, 1349206112, 1349206106]} final : True mtd_id 4302 list_pids : [1349207887, 1349207296, 1349207246, 1349207193, 1349207102, 1349207034] Looping around the photos to save general results len do output : 1 /21934417Didn'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, '2711638') ('4302', '21934417', '1349207887', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638') ('4302', None, None, None, None, None, None, None, '2711638') ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21934417', 'None', None, None, None, None, '2711638'), ('4302', '21934417', '1349207887', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207296', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207246', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207193', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207102', None, None, None, None, None, '2711638'), ('4302', '21934417', '1349207034', None, None, None, None, None, '2711638')] time used for this insertion : 0.013866424560546875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2944924831390381 time spend to save output : 0.014137029647827148 total time spend for step 5 : 0.30862951278686523 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 (2711638) 2.17user 2.32system 0:10.88elapsed 41%CPU (0avgtext+0avgdata 158344maxresident)k 12040inputs+12024outputs (131major+74418minor)pagefaults 0swaps