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 : 3669655 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 (2693396) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2693396) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735300 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2693396'] with mtr_portfolio_ids : ['21735300'] and first list_photo_ids : [] new path : /proc/3669655/ Name: python3 Umask: 0002 State: R (running) Tgid: 3669655 Ngid: 0 Pid: 3669655 PPid: 3669654 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3669655 NSpid: 3669655 NSpgid: 3667012 NSsid: 3667012 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97684 kB VmRSS: 97684 kB RssAnon: 59796 kB RssFile: 37888 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 48 nonvoluntary_ctxt_switches: 130 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3669655', 'Ngid': '0', 'Pid': '3669655', 'PPid': '3669654', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3669655', 'NSpid': '3669655', 'NSpgid': '3667012', 'NSsid': '3667012', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97684 kB', 'VmRSS': '97684 kB', 'RssAnon': '59796 kB', 'RssFile': '37888 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '48', 'nonvoluntary_ctxt_switches': '130'} ('datou_batch_current', '3669655', '1106932', '0', '1106932', '865680', '97684', b'', 'marlene', '2693396') 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 (21735300) 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 (2693396 ) ) 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 (21735300) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347539227, 'portfolio_id': 21735300}, {'photo_id': 1347538886, 'portfolio_id': 21735300}, {'photo_id': 1347538828, 'portfolio_id': 21735300}, {'photo_id': 1347538800, 'portfolio_id': 21735300}, {'photo_id': 1347538744, 'portfolio_id': 21735300}, {'photo_id': 1347538684, 'portfolio_id': 21735300}, {'photo_id': 1347538375, 'portfolio_id': 21735300}, {'photo_id': 1347538304, 'portfolio_id': 21735300}, {'photo_id': 1347538224, 'portfolio_id': 21735300}, {'photo_id': 1347537002, 'portfolio_id': 21735300}, {'photo_id': 1347537000, 'portfolio_id': 21735300}, {'photo_id': 1347536997, 'portfolio_id': 21735300}, {'photo_id': 1347536994, 'portfolio_id': 21735300}, {'photo_id': 1347536986, 'portfolio_id': 21735300}, {'photo_id': 1347536930, 'portfolio_id': 21735300}, {'photo_id': 1347536924, 'portfolio_id': 21735300}, {'photo_id': 1347536920, 'portfolio_id': 21735300}, {'photo_id': 1347536916, 'portfolio_id': 21735300}, {'photo_id': 1347536913, 'portfolio_id': 21735300}, {'photo_id': 1347536871, 'portfolio_id': 21735300}, {'photo_id': 1347536869, 'portfolio_id': 21735300}, {'photo_id': 1347536860, 'portfolio_id': 21735300}, {'photo_id': 1347536852, 'portfolio_id': 21735300}, {'photo_id': 1347536841, 'portfolio_id': 21735300}, {'photo_id': 1347536829, 'portfolio_id': 21735300}, {'photo_id': 1347536826, 'portfolio_id': 21735300}, {'photo_id': 1347536810, 'portfolio_id': 21735300}, {'photo_id': 1347536788, 'portfolio_id': 21735300}, {'photo_id': 1347536765, 'portfolio_id': 21735300}, {'photo_id': 1347536654, 'portfolio_id': 21735300}, {'photo_id': 1347536650, 'portfolio_id': 21735300}, {'photo_id': 1347536645, 'portfolio_id': 21735300}, {'photo_id': 1347536623, 'portfolio_id': 21735300}, {'photo_id': 1347536621, 'portfolio_id': 21735300}, {'photo_id': 1347536603, 'portfolio_id': 21735300}, {'photo_id': 1347536597, 'portfolio_id': 21735300}, {'photo_id': 1347536593, 'portfolio_id': 21735300}, {'photo_id': 1347536589, 'portfolio_id': 21735300}, {'photo_id': 1347536586, 'portfolio_id': 21735300}, {'photo_id': 1347536564, 'portfolio_id': 21735300}, {'photo_id': 1347536544, 'portfolio_id': 21735300}, {'photo_id': 1347536540, 'portfolio_id': 21735300}, {'photo_id': 1347536539, 'portfolio_id': 21735300}, {'photo_id': 1347536537, 'portfolio_id': 21735300}, {'photo_id': 1347536530, 'portfolio_id': 21735300}, {'photo_id': 1347536526, 'portfolio_id': 21735300}, {'photo_id': 1347536492, 'portfolio_id': 21735300}, {'photo_id': 1347536489, 'portfolio_id': 21735300}, {'photo_id': 1347536487, 'portfolio_id': 21735300}, {'photo_id': 1347536484, 'portfolio_id': 21735300}, {'photo_id': 1347536482, 'portfolio_id': 21735300}, {'photo_id': 1347536430, 'portfolio_id': 21735300}, {'photo_id': 1347536428, 'portfolio_id': 21735300}, {'photo_id': 1347536426, 'portfolio_id': 21735300}, {'photo_id': 1347536421, 'portfolio_id': 21735300}, {'photo_id': 1347536204, 'portfolio_id': 21735300}, {'photo_id': 1347536194, 'portfolio_id': 21735300}, {'photo_id': 1347536151, 'portfolio_id': 21735300}, {'photo_id': 1347536137, 'portfolio_id': 21735300}, {'photo_id': 1347536096, 'portfolio_id': 21735300}, {'photo_id': 1347536043, 'portfolio_id': 21735300}, {'photo_id': 1347535723, 'portfolio_id': 21735300}, {'photo_id': 1347535681, 'portfolio_id': 21735300}, {'photo_id': 1347535654, 'portfolio_id': 21735300}, {'photo_id': 1347535542, 'portfolio_id': 21735300}, {'photo_id': 1347535538, 'portfolio_id': 21735300}, {'photo_id': 1347535534, 'portfolio_id': 21735300}, {'photo_id': 1347535530, 'portfolio_id': 21735300}, {'photo_id': 1347535525, 'portfolio_id': 21735300}, {'photo_id': 1347535519, 'portfolio_id': 21735300}, {'photo_id': 1347535226, 'portfolio_id': 21735300}, {'photo_id': 1347535100, 'portfolio_id': 21735300}, {'photo_id': 1347535094, 'portfolio_id': 21735300}] map_portfolio_id_photo_id: {21735300: [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684, 1347538375, 1347538304, 1347538224, 1347537002, 1347537000, 1347536997, 1347536994, 1347536986, 1347536930, 1347536924, 1347536920, 1347536916, 1347536913, 1347536871, 1347536869, 1347536860, 1347536852, 1347536841, 1347536829, 1347536826, 1347536810, 1347536788, 1347536765, 1347536654, 1347536650, 1347536645, 1347536623, 1347536621, 1347536603, 1347536597, 1347536593, 1347536589, 1347536586, 1347536564, 1347536544, 1347536540, 1347536539, 1347536537, 1347536530, 1347536526, 1347536492, 1347536489, 1347536487, 1347536484, 1347536482, 1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} ##### 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.0163576602935791 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 26 17:03: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 (21735300) 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 : 21735300 get user id for portfolio 21735300 get sub ptf for main ptf 21735300, type 3726 and hashtags ['autre_refus', 'cartonnette', 'flou', 'papier', 'environnement', 'Teint_Dans_La_Masse', 'plastique', 'kraft', 'mal_croppe', 'Carton_brun', 'metal', 'Carton_gris'] 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`=21735300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','flou','papier','environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_brun','metal','Carton_gris')) 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`=21735300 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','flou','papier','environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_brun','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21735300, 'sub_port_id': 21735301, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260856, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'cartonnette': {'main_port_id': 21735300, 'sub_port_id': 21735302, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260857, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'kraft': {'main_port_id': 21735300, 'sub_port_id': 21735303, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260858, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'Carton_brun': {'main_port_id': 21735300, 'sub_port_id': 21735304, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260859, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'flou': {'main_port_id': 21735300, 'sub_port_id': 21735305, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260860, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'autre_refus': {'main_port_id': 21735300, 'sub_port_id': 21735306, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260861, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'environnement': {'main_port_id': 21735300, 'sub_port_id': 21735307, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260862, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'plastique': {'main_port_id': 21735300, 'sub_port_id': 21735308, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260863, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'metal': {'main_port_id': 21735300, 'sub_port_id': 21735309, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260864, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'mal_croppe': {'main_port_id': 21735300, 'sub_port_id': 21735310, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260865, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21735300, 'sub_port_id': 21735311, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260866, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}, 'papier': {'main_port_id': 21735300, 'sub_port_id': 21735312, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260867, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 51, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21735301 , 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=21735300 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 (21735301) result : ((1347536464,), (1347536465,), (1347536466,), (1347536467,), (1347536468,), (1347536676,), (1347536677,), (1347536856,), (1347536857,), (1347536940,), (1347536941,), (1347536984,), (1347539388,), (1347539389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735302 , 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=21735300 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 (21735302) result : ((1347536427,), (1347536470,), (1347536471,), (1347536513,), (1347536514,), (1347536608,), (1347536858,), (1347536859,), (1347536942,), (1347536943,), (1347536945,), (1347536946,), (1347536987,), (1347536989,), (1347539124,), (1347539125,), (1347539419,), (1347539420,), (1347539421,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735303 , 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=21735300 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 (21735303) result : ((1347536472,), (1347536868,), (1347539499,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735304 , 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=21735300 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 (21735304) result : ((1347536515,), (1347536516,), (1347536517,), (1347536609,), (1347536679,), (1347536836,), (1347536837,), (1347536862,), (1347536864,), (1347536865,), (1347536947,), (1347536948,), (1347536949,), (1347539452,), (1347539453,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735305 , 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=21735300 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 (21735305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735306 , 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=21735300 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 (21735306) result : ((1347536425,), (1347536510,), (1347536607,), (1347536835,), (1347536939,), (1347536982,), (1347536983,), (1347538975,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735307 , 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=21735300 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 (21735307) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735308 , 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=21735300 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 (21735308) result : ((1347536520,), (1347536521,), (1347536522,), (1347536610,), (1347536838,), (1347536867,), (1347536991,), (1347539487,), (1347539490,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735309 , 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=21735300 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 (21735309) result : ((1347536839,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735310 , 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=21735300 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 (21735310) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735311 , 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=21735300 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 (21735311) result : ((1347536459,), (1347536460,), (1347536476,), (1347536507,), (1347536508,), (1347536672,), (1347536673,), (1347536675,), (1347536833,), (1347536834,), (1347536854,), (1347536855,), (1347536937,), (1347536938,), (1347536978,), (1347539371,), (1347539372,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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 21735312 , 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=21735300 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 (21735312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21735300) result : ((1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,)) 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 (1347537000,1347538800,1347535100) 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`=21735300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','flou','papier','environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_brun','metal','Carton_gris')) 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`=21735300 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','flou','papier','environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_brun','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21735300, 'sub_port_id': 21735313, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260868, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'cartonnette': {'main_port_id': 21735300, 'sub_port_id': 21735314, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260869, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'kraft': {'main_port_id': 21735300, 'sub_port_id': 21735315, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260870, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'Carton_brun': {'main_port_id': 21735300, 'sub_port_id': 21735316, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260871, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'flou': {'main_port_id': 21735300, 'sub_port_id': 21735317, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260872, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'autre_refus': {'main_port_id': 21735300, 'sub_port_id': 21735318, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260873, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'environnement': {'main_port_id': 21735300, 'sub_port_id': 21735319, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260874, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'plastique': {'main_port_id': 21735300, 'sub_port_id': 21735320, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260875, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'metal': {'main_port_id': 21735300, 'sub_port_id': 21735321, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260876, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'mal_croppe': {'main_port_id': 21735300, 'sub_port_id': 21735322, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260877, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'Teint_Dans_La_Masse': {'main_port_id': 21735300, 'sub_port_id': 21735323, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260878, 'last_updated_at': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 16, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}, 'papier': {'main_port_id': 21735300, 'sub_port_id': 21735324, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14260879, 'last_updated_at': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 17, 2, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 16, 52)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735306 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735319,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735307 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735320,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735308 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735321,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735309 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21735324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21735312 lien utilise dans velours : https://www.fotonower.com/velours/21735313,21735314,21735315,21735316,21735317,21735318,21735319,21735320,21735321,21735322,21735323,21735324?tags=Carton_gris,cartonnette,kraft,Carton_brun,flou,autre_refus,environnement,plastique,metal,mal_croppe,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21735300]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] map_info['map_portfolio_photo'] : {21735300: [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684, 1347538375, 1347538304, 1347538224, 1347537002, 1347537000, 1347536997, 1347536994, 1347536986, 1347536930, 1347536924, 1347536920, 1347536916, 1347536913, 1347536871, 1347536869, 1347536860, 1347536852, 1347536841, 1347536829, 1347536826, 1347536810, 1347536788, 1347536765, 1347536654, 1347536650, 1347536645, 1347536623, 1347536621, 1347536603, 1347536597, 1347536593, 1347536589, 1347536586, 1347536564, 1347536544, 1347536540, 1347536539, 1347536537, 1347536530, 1347536526, 1347536492, 1347536489, 1347536487, 1347536484, 1347536482, 1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : False mtd_id 4302 list_pids : [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] Looping around the photos to save general results len do output : 1 /21735300. 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, '2693396') ('4302', '21735300', '1347539227', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396') 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, '21735300', "{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}", None, None, None, None, '2693396'), ('4302', '21735300', '1347539227', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396')] time used for this insertion : 0.02024221420288086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.914963960647583 time spend to save output : 0.02051830291748047 total time spend for step 1 : 0.9354822635650635 step2:final Wed Mar 26 17:03: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 (21735300) 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 21735300 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347535226,1347535100,1347535094,1347535542,1347535538,1347535534,1347535530,1347535525,1347535519,1347535723,1347535681,1347535654,1347536204,1347536194,1347536151,1347536137,1347536096,1347536043,1347536430,1347536428,1347536426,1347536421,1347536492,1347536489,1347536487,1347536484,1347536482,1347536544,1347536540,1347536539,1347536537,1347536530,1347536526,1347536603,1347536597,1347536593,1347536589,1347536586,1347536654,1347536564,1347536650,1347536645,1347536623,1347536621,1347536841,1347536829,1347536826,1347536810,1347536788,1347536765,1347536871,1347536869,1347536860,1347536852,1347536930,1347536924,1347536920,1347536916,1347536913,1347537002,1347537000,1347536997,1347536994,1347536986,1347538375,1347538304,1347538224,1347538886,1347538828,1347538800,1347538744,1347538684,1347539227); 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([21735300]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} new output for save of step final : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] map_info['map_portfolio_photo'] : {21735300: [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684, 1347538375, 1347538304, 1347538224, 1347537002, 1347537000, 1347536997, 1347536994, 1347536986, 1347536930, 1347536924, 1347536920, 1347536916, 1347536913, 1347536871, 1347536869, 1347536860, 1347536852, 1347536841, 1347536829, 1347536826, 1347536810, 1347536788, 1347536765, 1347536654, 1347536650, 1347536645, 1347536623, 1347536621, 1347536603, 1347536597, 1347536593, 1347536589, 1347536586, 1347536564, 1347536544, 1347536540, 1347536539, 1347536537, 1347536530, 1347536526, 1347536492, 1347536489, 1347536487, 1347536484, 1347536482, 1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : False mtd_id 4302 list_pids : [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] Looping around the photos to save general results len do output : 6 /1347539227.Didn't retrieve data . /1347538886.Didn't retrieve data . /1347538828.Didn't retrieve data . /1347538800.Didn't retrieve data . /1347538744.Didn't retrieve data . /1347538684.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, '2693396') ('4302', '21735300', '1347539227', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396') 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', '21735300', '1347539227', '0.03953451944661678', None, None, None, None, '2693396'), ('4302', '21735300', '1347538886', '0.03953451944661678', None, None, None, None, '2693396'), ('4302', '21735300', '1347538828', '0.03953451944661678', None, None, None, None, '2693396'), ('4302', '21735300', '1347538800', '0.03953451944661678', None, None, None, None, '2693396'), ('4302', '21735300', '1347538744', '0.03953451944661678', None, None, None, None, '2693396'), ('4302', '21735300', '1347538684', '0.03953451944661678', None, None, None, None, '2693396')] time used for this insertion : 0.013516664505004883 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07446432113647461 time spend to save output : 0.013955116271972656 total time spend for step 2 : 0.08841943740844727 step3:velours_tree Wed Mar 26 17:03: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 : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} input_args_next_step : {21735300: ()} output_args : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} args : 21735300 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) 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([21735300]) 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.32981181144714355 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.32985424995422363 step4:send_mail_cod Wed Mar 26 17:03:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} input_args_next_step : {1347539227: ()} output_args : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} args : 1347539227 depend.output_id : 0 input_args_next_step : {1347539227: ('0.03953451944661678',), 1347538886: ()} output_args : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} args : 1347538886 depend.output_id : 0 input_args_next_step : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ()} output_args : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} args : 1347538828 depend.output_id : 0 input_args_next_step : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ()} output_args : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} args : 1347538800 depend.output_id : 0 input_args_next_step : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ()} output_args : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} args : 1347538744 depend.output_id : 0 input_args_next_step : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ()} output_args : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',)} args : 1347538684 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 : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} input_args_next_step : {1347539227: ('0.03953451944661678',), 1347538886: ('0.03953451944661678',), 1347538828: ('0.03953451944661678',), 1347538800: ('0.03953451944661678',), 1347538744: ('0.03953451944661678',), 1347538684: ('0.03953451944661678',), 21735300: ()} output_args : {21735300: [{'Carton_gris': 21735301, 'cartonnette': 21735302, 'kraft': 21735303, 'Carton_brun': 21735304, 'flou': 21735305, 'autre_refus': 21735306, 'environnement': 21735307, 'plastique': 21735308, 'metal': 21735309, 'mal_croppe': 21735310, 'Teint_Dans_La_Masse': 21735311, 'papier': 21735312}]} args : 21735300 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.03953451944661678',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) 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 (1347539227,1347538886,1347538828,1347538800,1347538744,1347538684) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347538684 begin to download photo : 1347538800 begin to download photo : 1347538886 download finish for photo 1347538886 begin to download photo : 1347539227 download finish for photo 1347538800 begin to download photo : 1347538828 download finish for photo 1347538684 begin to download photo : 1347538744 download finish for photo 1347538744 download finish for photo 1347539227 download finish for photo 1347538828 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_P21735300_26-03-2025_17_03_59.pdf 21735302 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=21735302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536943: '1743004692_1900929_1347536788_4896b367b620983e557fe3d1ff473908_rle_crop_3731434145_0.png', 1347539421: '1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441739_0.png', 1347539420: '1743004892_1903610_1347536860_d6e0d32be1ed70d2cbff279345e28e0e_rle_crop_3731441714_0.png', 1347539419: '1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441587_0.png', 1347539125: '1743004874_1903376_1347536994_d9e5f310c914ca1a45584e95ed7982f0_rle_crop_3731441504_0.png', 1347539124: '1743004874_1903376_1347536997_583569b0b6063f1fc444589906694345_rle_crop_3731441370_0.png', 1347536989: '1743004723_3504653_1347536621_72d7ec9c8eeb55014d12bbc77a742f9b_rle_crop_3731434442_0.png', 1347536987: '1743004723_3504653_1347536623_cd61d2390f58e7606d2cf2b892667eb3_rle_crop_3731434418_0.png', 1347536946: '1743004692_1900929_1347536765_497298fb159046f7bbd7cbcdcbd80412_rle_crop_3731434157_0.png', 1347536945: '1743004692_1900929_1347536788_4896b367b620983e557fe3d1ff473908_rle_crop_3731434144_0.png', 1347536427: '1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394414_0.png', 1347536942: '1743004692_1900929_1347536810_9f51790f629a006fd2035322c4c27825_rle_crop_3731434132_0.png', 1347536859: '1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425898_0.png', 1347536858: '1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425094_0.png', 1347536608: '1743004454_1898608_1347536487_c202e9dfc052054d39bdff79434e0fcc_rle_crop_3731397381_0.png', 1347536514: '1743004331_1897159_1347536043_21a745b839f98d70ede705292a3ee058_rle_crop_3731394990_0.png', 1347536513: '1743004331_1897159_1347536096_b03f136cb52a1c39e59d8fd19e78872c_rle_crop_3731394976_0.png', 1347536471: '1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394711_0.png', 1347536470: '1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394602_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3540b8a0529f58677931dddfd6932861_37211803.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/15bc7aabf65fddad359edd27d2c4ce8e_42896375.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4e1164ce8a5cebe1c1eb6488064efc3d_46984639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bbbc9698017b676effc2aecb2ff6e300_988946.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/46cef9d0ae119ff5c9be0c385f2f62e7_89974773.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/405007af6933e290a3a44d0c4664286e_63409973.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/470b4217afc2ab62219d44001981f956_10823172.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e17bd19a5411893550c31e9b6e5ad3e3_43812938.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6dfcfc878a2633a0dd0d83a7e52a9f1b_48172780.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cbd8f03ff2bc613920cf8be2ddac9e51_8563152.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6cb291433afe665b85b04e7020d87d2a_8215097.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/71b1ae844cf734b166bf89b284375ac4_17397336.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a0c2b46c47e96fc803764b8fb0a8e57d_96149697.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bf7668df16bd0aeda1db097e0a40259b_85891722.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ba20c6edd4eb6dae8dba9010602611f9_93742811.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d31e5c15694f0cff5fb90e5760b8460c_30206638.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ee21b45bdd45c1492197b4ca795b37ef_95074269.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/32715f69555bf62e74680b7c7e6d3b38_45641597.png change filename to text .imagette217353021743005039/ imagette217353021743005039/1743004692_1900929_1347536765_497298fb159046f7bbd7cbcdcbd80412_rle_crop_3731434157_0.png.png imagette217353021743005039/1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425898_0.png.png imagette217353021743005039/1743004892_1903610_1347536860_d6e0d32be1ed70d2cbff279345e28e0e_rle_crop_3731441714_0.png.png imagette217353021743005039/1743004331_1897159_1347536096_b03f136cb52a1c39e59d8fd19e78872c_rle_crop_3731394976_0.png.png imagette217353021743005039/1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394414_0.png.png imagette217353021743005039/1743004692_1900929_1347536810_9f51790f629a006fd2035322c4c27825_rle_crop_3731434132_0.png.png imagette217353021743005039/1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441587_0.png.png imagette217353021743005039/1743004874_1903376_1347536994_d9e5f310c914ca1a45584e95ed7982f0_rle_crop_3731441504_0.png.png imagette217353021743005039/1743004331_1897159_1347536043_21a745b839f98d70ede705292a3ee058_rle_crop_3731394990_0.png.png imagette217353021743005039/1743004692_1900929_1347536788_4896b367b620983e557fe3d1ff473908_rle_crop_3731434145_0.png.png imagette217353021743005039/1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394711_0.png.png imagette217353021743005039/1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394602_0.png.png imagette217353021743005039/1743004723_3504653_1347536623_cd61d2390f58e7606d2cf2b892667eb3_rle_crop_3731434418_0.png.png imagette217353021743005039/1743004874_1903376_1347536997_583569b0b6063f1fc444589906694345_rle_crop_3731441370_0.png.png imagette217353021743005039/1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441739_0.png.png imagette217353021743005039/1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425094_0.png.png imagette217353021743005039/1743004692_1900929_1347536788_4896b367b620983e557fe3d1ff473908_rle_crop_3731434144_0.png.png imagette217353021743005039/1743004454_1898608_1347536487_c202e9dfc052054d39bdff79434e0fcc_rle_crop_3731397381_0.png.png imagette217353021743005039/1743004723_3504653_1347536621_72d7ec9c8eeb55014d12bbc77a742f9b_rle_crop_3731434442_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/46a22a438014e43d0ea58fb9b5efd9cb_59078118.png imagette217353021743005039 21735303 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=21735303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536472: '1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394712_0.png', 1347536868: '1743004604_3500887_1347536603_8e53d5ee559e6eebba1b4a113842945e_rle_crop_3731423524_0.png', 1347539499: '1743004892_1903610_1347536869_9929a75452a6f4b2d158297a8ffa91c9_rle_crop_3731441600_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9c58e5751bff0d19b9478767c15fc060_37046814.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2601c5c35b41d2f4c4bc8cfb19ae85d7_30015133.png change filename to text .imagette217353031743005040/ imagette217353031743005040/1743004892_1903610_1347536869_9929a75452a6f4b2d158297a8ffa91c9_rle_crop_3731441600_0.png.png imagette217353031743005040/1743004604_3500887_1347536603_8e53d5ee559e6eebba1b4a113842945e_rle_crop_3731423524_0.png.png imagette217353031743005040/1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394712_0.png.png imagette217353051743005041/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7e2d3ae951c69a0c23a727934d33042d_47410218.png imagette217353031743005040 21735305 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=21735305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353051743005041 21735306 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=21735306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536425: '1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394411_0.png', 1347536510: '1743004331_1897159_1347536043_21a745b839f98d70ede705292a3ee058_rle_crop_3731394993_0.png', 1347536607: '1743004454_1898608_1347536489_45e33410eb23bced5b6d6686dc5df39e_rle_crop_3731397364_0.png', 1347536835: '1743004572_1899754_1347536589_9b48f991818cae483ca119ed7af8c6bd_rle_crop_3731416113_0.png', 1347536939: '1743004692_1900929_1347536829_00f2691fcc11abad29865172bf0713cc_rle_crop_3731433696_0.png', 1347536982: '1743004723_3504653_1347536841_2808b097d0e5833bc022a511efb9a8b8_rle_crop_3731434404_0.png', 1347536983: '1743004723_3504653_1347536621_72d7ec9c8eeb55014d12bbc77a742f9b_rle_crop_3731434439_0.png', 1347538975: '1743004853_1902717_1347536913_94ce39c78e7d8b573a5b90099972039b_rle_crop_3731440603_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2eb570e6ed6d1c61446861c4f3a4b410_1955012.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/419b793202fe6de4c80b707d1db976f2_78309751.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0ff02e6cbe4a53889ab25b34c55e897a_32023571.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e3ef92bc6a6db318805efd2a623d4cfb_66930308.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6eca82687f7c980a0c05e35da7470c38_84193059.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b46c917dbbead7f6b4cf98d80fd389e4_71953775.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/dd582a22e6863634912c3ad02db0397e_40376458.png change filename to text .imagette217353061743005041/ imagette217353061743005041/1743004853_1902717_1347536913_94ce39c78e7d8b573a5b90099972039b_rle_crop_3731440603_0.png.png imagette217353061743005041/1743004723_3504653_1347536621_72d7ec9c8eeb55014d12bbc77a742f9b_rle_crop_3731434439_0.png.png imagette217353061743005041/1743004572_1899754_1347536589_9b48f991818cae483ca119ed7af8c6bd_rle_crop_3731416113_0.png.png imagette217353061743005041/1743004252_1895947_1347535654_af4af0113caec059381837608acd53bf_rle_crop_3731394411_0.png.png imagette217353061743005041/1743004331_1897159_1347536043_21a745b839f98d70ede705292a3ee058_rle_crop_3731394993_0.png.png imagette217353061743005041/1743004723_3504653_1347536841_2808b097d0e5833bc022a511efb9a8b8_rle_crop_3731434404_0.png.png imagette217353061743005041/1743004692_1900929_1347536829_00f2691fcc11abad29865172bf0713cc_rle_crop_3731433696_0.png.png imagette217353061743005041/1743004454_1898608_1347536489_45e33410eb23bced5b6d6686dc5df39e_rle_crop_3731397364_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a50ab2877fb8f0a1b6a62370f36091ce_50444071.png imagette217353061743005041 21735308 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=21735308 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536520: '1743004331_1897159_1347536151_b30bda4bb1fd4822652c4f25ed1c22bb_rle_crop_3731394950_0.png', 1347536521: '1743004331_1897159_1347536137_df0b8ebb77c4edebf74cd1c08863238f_rle_crop_3731394969_0.png', 1347536522: '1743004331_1897159_1347536043_21a745b839f98d70ede705292a3ee058_rle_crop_3731394991_0.png', 1347536610: '1743004454_1898608_1347536487_c202e9dfc052054d39bdff79434e0fcc_rle_crop_3731397384_0.png', 1347536838: '1743004572_1899754_1347536597_f1a2089cbc8e3d87bb68096a3b17f4de_rle_crop_3731416095_0.png', 1347536867: '1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425906_0.png', 1347536991: '1743004723_3504653_1347536841_2808b097d0e5833bc022a511efb9a8b8_rle_crop_3731434398_0.png', 1347539487: '1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441588_0.png', 1347539490: '1743004892_1903610_1347536869_9929a75452a6f4b2d158297a8ffa91c9_rle_crop_3731441598_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a257201085188960b577a314aab668dc_71097343.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8d6cd13afe15a8f0070ae115bc569741_96973463.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c4edcaf337556dfb5668c8987094319c_33405967.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9e2726f27755d6211c48652e6c7c2134_54487709.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/52893fc3807d2e1423e2a300a2d10700_35382509.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/381f944d33759a91c89efb1f40e0bfbb_83790228.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/19087e6d7ddd9ec4e974e494d272ca6c_96409591.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/691b43783895bd6fc39af1e68d4196e9_22019175.png change filename to text .imagette217353081743005041/ imagette217353081743005041/1743004331_1897159_1347536137_df0b8ebb77c4edebf74cd1c08863238f_rle_crop_3731394969_0.png.png imagette217353081743005041/1743004331_1897159_1347536151_b30bda4bb1fd4822652c4f25ed1c22bb_rle_crop_3731394950_0.png.png imagette217353081743005041/1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441588_0.png.png imagette217353081743005041/1743004454_1898608_1347536487_c202e9dfc052054d39bdff79434e0fcc_rle_crop_3731397384_0.png.png imagette217353081743005041/1743004572_1899754_1347536597_f1a2089cbc8e3d87bb68096a3b17f4de_rle_crop_3731416095_0.png.png imagette217353081743005041/1743004331_1897159_1347536043_21a745b839f98d70ede705292a3ee058_rle_crop_3731394991_0.png.png imagette217353081743005041/1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425906_0.png.png imagette217353081743005041/1743004723_3504653_1347536841_2808b097d0e5833bc022a511efb9a8b8_rle_crop_3731434398_0.png.png imagette217353081743005041/1743004892_1903610_1347536869_9929a75452a6f4b2d158297a8ffa91c9_rle_crop_3731441598_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/64b22ab76f1857797a3d1afd3e3baa16_52461659.png imagette217353081743005041 21735309 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=21735309 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536839: '1743004572_1899754_1347536586_d5c7ee321b564d52ca5ca0d6f9dd28e2_rle_crop_3731419661_0.png'} change filename to text .imagette217353091743005042/ imagette217353091743005042/1743004572_1899754_1347536586_d5c7ee321b564d52ca5ca0d6f9dd28e2_rle_crop_3731419661_0.png.png imagette217353101743005042/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/579d3b9318c8ffcd9005011fea44d1fe_10974379.png imagette217353091743005042 21735310 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=21735310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217353101743005042 21735301 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=21735301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536464: '1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394600_0.png', 1347536465: '1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394599_0.png', 1347536466: '1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394604_0.png', 1347536467: '1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394708_0.png', 1347536468: '1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394715_0.png', 1347536676: '1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398110_0.png', 1347536677: '1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398118_0.png', 1347536856: '1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425093_0.png', 1347536857: '1743004604_3500887_1347536530_f4ea474509a2cdc53f14a18dd2236685_rle_crop_3731427831_0.png', 1347536940: '1743004692_1900929_1347536826_70a10e35a7082c659301e8726aa7a5ba_rle_crop_3731433790_0.png', 1347536941: '1743004692_1900929_1347536765_497298fb159046f7bbd7cbcdcbd80412_rle_crop_3731434151_0.png', 1347536984: '1743004723_3504653_1347536621_72d7ec9c8eeb55014d12bbc77a742f9b_rle_crop_3731434441_0.png', 1347539388: '1743004892_1903610_1347536869_9929a75452a6f4b2d158297a8ffa91c9_rle_crop_3731441603_0.png', 1347539389: '1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441736_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4c116c3725e7f39a0a12dafa47c78a1c_66905200.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fe2f703c45aa647cded836a59b6b1da1_73766574.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/85dd8cf8b9efc0242aec6ba8dc6be096_17813578.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9c9f1e55c442837bde685b5b103e56c0_38686734.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/848b0ca5408cb21791bb21d80c6c5f33_45838662.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6412b2f543d7d902ada6cb1fe55e5e4a_56272836.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7da4772b3e2a45af7829fc43b973cd14_9949550.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/da7c5443f0b7f9a5e30ca1e529d3c8b0_27365054.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4e280985fd39f0f1147c3522ca207302_98442424.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/149b3d45591b60bcbe9b26068e5b5bba_48183600.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b0f51fdfab939c619af232aad0c5f254_41815374.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/afc3f93d191b811f22993ef9906f4449_94980340.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5467cf7242dbf87bad424e2d426469a2_87092860.png change filename to text .imagette217353011743005042/ imagette217353011743005042/1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425093_0.png.png imagette217353011743005042/1743004604_3500887_1347536530_f4ea474509a2cdc53f14a18dd2236685_rle_crop_3731427831_0.png.png imagette217353011743005042/1743004892_1903610_1347536869_9929a75452a6f4b2d158297a8ffa91c9_rle_crop_3731441603_0.png.png imagette217353011743005042/1743004692_1900929_1347536765_497298fb159046f7bbd7cbcdcbd80412_rle_crop_3731434151_0.png.png imagette217353011743005042/1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394604_0.png.png imagette217353011743005042/1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394599_0.png.png imagette217353011743005042/1743004692_1900929_1347536826_70a10e35a7082c659301e8726aa7a5ba_rle_crop_3731433790_0.png.png imagette217353011743005042/1743004273_1896250_1347535723_2b2c915710dbf8eda65601d39177edae_rle_crop_3731394600_0.png.png imagette217353011743005042/1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398110_0.png.png imagette217353011743005042/1743004723_3504653_1347536621_72d7ec9c8eeb55014d12bbc77a742f9b_rle_crop_3731434441_0.png.png imagette217353011743005042/1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398118_0.png.png imagette217353011743005042/1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394708_0.png.png imagette217353011743005042/1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441736_0.png.png imagette217353011743005042/1743004273_1896250_1347535519_ce1f74f2f9174eb20ce014eef9d909b3_rle_crop_3731394715_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/74fd5dba99c10c1a441f9f43978a2f0d_53649611.png imagette217353011743005042 21735304 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=21735304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536515: '1743004331_1897159_1347536194_5c604e802b081b4b51b2f455e56c98df_rle_crop_3731394943_0.png', 1347536516: '1743004331_1897159_1347536151_b30bda4bb1fd4822652c4f25ed1c22bb_rle_crop_3731394954_0.png', 1347536517: '1743004331_1897159_1347536096_b03f136cb52a1c39e59d8fd19e78872c_rle_crop_3731394981_0.png', 1347536609: '1743004454_1898608_1347536489_45e33410eb23bced5b6d6686dc5df39e_rle_crop_3731397371_0.png', 1347536679: '1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398113_0.png', 1347536836: '1743004572_1899754_1347536593_6e3e0f16e5bb33bde22227d0e8d93706_rle_crop_3731416108_0.png', 1347536837: '1743004572_1899754_1347536589_9b48f991818cae483ca119ed7af8c6bd_rle_crop_3731416118_0.png', 1347536862: '1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425096_0.png', 1347536864: '1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425100_0.png', 1347536865: '1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425907_0.png', 1347536947: '1743004692_1900929_1347536829_00f2691fcc11abad29865172bf0713cc_rle_crop_3731433702_0.png', 1347536948: '1743004692_1900929_1347536826_70a10e35a7082c659301e8726aa7a5ba_rle_crop_3731433793_0.png', 1347536949: '1743004692_1900929_1347536810_9f51790f629a006fd2035322c4c27825_rle_crop_3731434138_0.png', 1347539452: '1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441591_0.png', 1347539453: '1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441742_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6d2b5401dd8803dc9f3dd9f3c744b770_47466966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/076fada0a746674901097b1762ffe4e5_79852180.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4621e29cdfd65f25271ca79112e606ae_78810775.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/65de36241fd35e75f7cf5eab0882afca_4537338.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/178c025343cda06ee824bece30e53f10_97153094.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/136ae909942cec78ae9862fe1fd8bf33_13630397.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9446f661c74b19f13e7c5486f57d237f_4531940.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cdbc66d8fca79380ef4e544b432325cb_47141691.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/eac42a6ec6e35fee3d97e4450f8b0214_86493808.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ee3442c3f6dc040dfb8334da85cfb48b_22214939.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c43ba5915e357e4e13c91170de4f838a_44879004.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4f204d7095ded263a8c39b97233b8940_63748621.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c4f0f30ac48621dc770aceb39901d3fd_93076816.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/483627dcf31263867d124cf9b1a781f8_94183409.png change filename to text .imagette217353041743005043/ imagette217353041743005043/1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398113_0.png.png imagette217353041743005043/1743004572_1899754_1347536593_6e3e0f16e5bb33bde22227d0e8d93706_rle_crop_3731416108_0.png.png imagette217353041743005043/1743004692_1900929_1347536829_00f2691fcc11abad29865172bf0713cc_rle_crop_3731433702_0.png.png imagette217353041743005043/1743004572_1899754_1347536589_9b48f991818cae483ca119ed7af8c6bd_rle_crop_3731416118_0.png.png imagette217353041743005043/1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425100_0.png.png imagette217353041743005043/1743004331_1897159_1347536194_5c604e802b081b4b51b2f455e56c98df_rle_crop_3731394943_0.png.png imagette217353041743005043/1743004692_1900929_1347536810_9f51790f629a006fd2035322c4c27825_rle_crop_3731434138_0.png.png imagette217353041743005043/1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425907_0.png.png imagette217353041743005043/1743004692_1900929_1347536826_70a10e35a7082c659301e8726aa7a5ba_rle_crop_3731433793_0.png.png imagette217353041743005043/1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425096_0.png.png imagette217353041743005043/1743004331_1897159_1347536151_b30bda4bb1fd4822652c4f25ed1c22bb_rle_crop_3731394954_0.png.png imagette217353041743005043/1743004454_1898608_1347536489_45e33410eb23bced5b6d6686dc5df39e_rle_crop_3731397371_0.png.png imagette217353041743005043/1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441742_0.png.png imagette217353041743005043/1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441591_0.png.png imagette217353041743005043/1743004331_1897159_1347536096_b03f136cb52a1c39e59d8fd19e78872c_rle_crop_3731394981_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1c40f8a783104d36e372d9fdedf7a2d1_65205217.png imagette217353041743005043 21735311 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=21735311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347536833: '1743004572_1899754_1347536597_f1a2089cbc8e3d87bb68096a3b17f4de_rle_crop_3731416102_0.png', 1347539372: '1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441744_0.png', 1347539371: '1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441594_0.png', 1347536978: '1743004723_3504653_1347536623_cd61d2390f58e7606d2cf2b892667eb3_rle_crop_3731434424_0.png', 1347536938: '1743004692_1900929_1347536765_497298fb159046f7bbd7cbcdcbd80412_rle_crop_3731434160_0.png', 1347536937: '1743004692_1900929_1347536810_9f51790f629a006fd2035322c4c27825_rle_crop_3731434139_0.png', 1347536855: '1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425904_0.png', 1347536854: '1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425095_0.png', 1347536834: '1743004572_1899754_1347536593_6e3e0f16e5bb33bde22227d0e8d93706_rle_crop_3731416109_0.png', 1347536459: '1743004273_1896250_1347535530_1e9ee76753921fac1d1412d384a349ce_rle_crop_3731394696_0.png', 1347536675: '1743004481_3497992_1347536421_131695f02b28702e387e31f62d21abbe_rle_crop_3731401565_0.png', 1347536673: '1743004481_3497992_1347536426_288524cc62fa66e1a3667758d7676dfc_rle_crop_3731398134_0.png', 1347536672: '1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398117_0.png', 1347536508: '1743004331_1897159_1347536096_b03f136cb52a1c39e59d8fd19e78872c_rle_crop_3731394973_0.png', 1347536507: '1743004331_1897159_1347536137_df0b8ebb77c4edebf74cd1c08863238f_rle_crop_3731394963_0.png', 1347536476: '1743004292_1896556_1347535226_7a0998ae473dcc93c417bfb4701f149a_rle_crop_3731394734_0.png', 1347536460: '1743004273_1896250_1347535530_1e9ee76753921fac1d1412d384a349ce_rle_crop_3731394692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9e9913ded9307adabee360bde784b55b_30539890.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/62e809e76d88a9a3483f767235c701a9_17405736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1d4aa0de2e0fa61df141170b61eb76ca_33754943.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/12f3786372b69975b02382b17a9d31a4_93622771.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ad0496ab100445f93595608abcd5cf36_13949074.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cf24916e3b08dbf9b60e6d69c8425ac8_40791540.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4dc0fa1a7020d64be37bc4b4cd0c909f_91707642.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6233249af65f23d2502906608cb44252_48317440.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/44bfd2e8860ae7223243149e2325d3ef_7207137.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/19aee341f6f9a14eb014c5a72a924d53_57488039.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/983855f024d6f199dcb1178df6ec982b_5850617.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fb40be48d2412c7d6233e1dd601c659e_98213441.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/45533f32d00b213f5987bde35387b086_98768680.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a1cb16e53db3d510a475aea4ef8ec13e_11773791.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6e62180513cf7a1a076a2f3c0477e1a9_70800139.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b15dbb4e983da1f1be886e09cff4c7dc_10384913.png change filename to text .imagette217353111743005043/ imagette217353111743005043/1743004331_1897159_1347536096_b03f136cb52a1c39e59d8fd19e78872c_rle_crop_3731394973_0.png.png imagette217353111743005043/1743004572_1899754_1347536597_f1a2089cbc8e3d87bb68096a3b17f4de_rle_crop_3731416102_0.png.png imagette217353111743005043/1743004273_1896250_1347535530_1e9ee76753921fac1d1412d384a349ce_rle_crop_3731394696_0.png.png imagette217353111743005043/1743004331_1897159_1347536137_df0b8ebb77c4edebf74cd1c08863238f_rle_crop_3731394963_0.png.png imagette217353111743005043/1743004892_1903610_1347536852_5d10821647966d43e5949d2acc15dd04_rle_crop_3731441744_0.png.png imagette217353111743005043/1743004481_3497992_1347536421_131695f02b28702e387e31f62d21abbe_rle_crop_3731401565_0.png.png imagette217353111743005043/1743004692_1900929_1347536810_9f51790f629a006fd2035322c4c27825_rle_crop_3731434139_0.png.png imagette217353111743005043/1743004572_1899754_1347536593_6e3e0f16e5bb33bde22227d0e8d93706_rle_crop_3731416109_0.png.png imagette217353111743005043/1743004692_1900929_1347536765_497298fb159046f7bbd7cbcdcbd80412_rle_crop_3731434160_0.png.png imagette217353111743005043/1743004892_1903610_1347536930_c4b0a81df2ff0f450adc70d2d6066c9d_rle_crop_3731441594_0.png.png imagette217353111743005043/1743004604_3500887_1347536539_bf6d6d1fca618be47120387256fb6a6a_rle_crop_3731425095_0.png.png imagette217353111743005043/1743004723_3504653_1347536623_cd61d2390f58e7606d2cf2b892667eb3_rle_crop_3731434424_0.png.png imagette217353111743005043/1743004273_1896250_1347535530_1e9ee76753921fac1d1412d384a349ce_rle_crop_3731394692_0.png.png imagette217353111743005043/1743004604_3500887_1347536537_6d9238d81cf94bd22592e8336530453f_rle_crop_3731425904_0.png.png imagette217353111743005043/1743004481_3497992_1347536492_0517e541896dd4962416b08411469c18_rle_crop_3731398117_0.png.png imagette217353111743005043/1743004292_1896556_1347535226_7a0998ae473dcc93c417bfb4701f149a_rle_crop_3731394734_0.png.png imagette217353111743005043/1743004481_3497992_1347536426_288524cc62fa66e1a3667758d7676dfc_rle_crop_3731398134_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3518bcb0bf0b9227cda6ce2e58c82d87_82190884.png imagette217353111743005043 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21735300 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21735313,21735314,21735315,21735316,21735317,21735318,21735319,21735320,21735321,21735322,21735323,21735324?tags=Carton_gris,cartonnette,kraft,Carton_brun,flou,autre_refus,environnement,plastique,metal,mal_croppe,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1347539227] : ('0.03953451944661678',) no score found for photo 1347539227 We are sending mail with results at report@fotonower.com args[1347538886] : ('0.03953451944661678',) no score found for photo 1347538886 We are sending mail with results at report@fotonower.com args[1347538828] : ('0.03953451944661678',) no score found for photo 1347538828 We are sending mail with results at report@fotonower.com args[1347538800] : ('0.03953451944661678',) no score found for photo 1347538800 We are sending mail with results at report@fotonower.com args[1347538744] : ('0.03953451944661678',) no score found for photo 1347538744 We are sending mail with results at report@fotonower.com args[1347538684] : ('0.03953451944661678',) no score found for photo 1347538684 We are sending mail with results at report@fotonower.com refus_total : 0.03953451944661678 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=21735300 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_P21735300_26-03-2025_17_03_59.pdf results_Auto_P21735300_26-03-2025_17_03_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_17_03_59.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','21735300','results_Auto_P21735300_26-03-2025_17_03_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_17_03_59.pdf','pdf','','0.28','0.03953451944661678') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21735300]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] map_info['map_portfolio_photo'] : {21735300: [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684, 1347538375, 1347538304, 1347538224, 1347537002, 1347537000, 1347536997, 1347536994, 1347536986, 1347536930, 1347536924, 1347536920, 1347536916, 1347536913, 1347536871, 1347536869, 1347536860, 1347536852, 1347536841, 1347536829, 1347536826, 1347536810, 1347536788, 1347536765, 1347536654, 1347536650, 1347536645, 1347536623, 1347536621, 1347536603, 1347536597, 1347536593, 1347536589, 1347536586, 1347536564, 1347536544, 1347536540, 1347536539, 1347536537, 1347536530, 1347536526, 1347536492, 1347536489, 1347536487, 1347536484, 1347536482, 1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : False mtd_id 4302 list_pids : [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] 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, '2693396') ('4302', '21735300', '1347539227', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396') 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', '21735300', '1347539227', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396')] time used for this insertion : 0.0133056640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.277405738830566 time spend to save output : 0.013728618621826172 total time spend for step 4 : 6.291134357452393 step5:split_time_score Wed Mar 26 17:04:05 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 : ['21735300'] 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 : [('21735300',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21735300) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347538684: {'path': 'temp/1743005039_3669655_1347538684_cf5cdf71bc4b366d91290e1703985452.jpg', 'extension': 'jpg'}, 1347538744: {'path': 'temp/1743005039_3669655_1347538744_8b0dd8ed5feed7f7932802902ad67fc5.jpg', 'extension': 'jpg'}, 1347538886: {'path': 'temp/1743005039_3669655_1347538886_24b0823d29ab6d41e966386e4a495aac.jpg', 'extension': 'jpg'}, 1347539227: {'path': 'temp/1743005039_3669655_1347539227_028e038ac6c4043b56b79daeb123c073.jpg', 'extension': 'jpg'}, 1347538800: {'path': 'temp/1743005039_3669655_1347538800_464f33c1716a7ae2ff0ce69ee214e06e.jpg', 'extension': 'jpg'}, 1347538828: {'path': 'temp/1743005039_3669655_1347538828_7f0988a8f26f21376df630adcf3df79d.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 = 21735300; (('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 = 21735300 group by h (('16', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21735300 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 (21735300) 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 (21735300) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21735300 Nombre de photos uploadées : 73 / 23040 (0%) 26032025 21735300 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 26032025 21735300 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1347535226, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7a0998ae473dcc93c417bfb4701f149a.jpg', 'username': None, 'uploaded_at': 1743004034, 'text': 'image_26032025_16_45_05_010155m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1347535100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/978887f110842f4fe863a6e9a68dd1a3.jpg', 'username': None, 'uploaded_at': 1743004034, 'text': 'image_26032025_16_45_15_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347535094, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1cd9a44b42ff4c7e756b040431325576.jpg', 'username': None, 'uploaded_at': 1743004034, 'text': 'image_26032025_16_45_45_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347535542, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0c862e1d86426bf18a70d7b8209f6bae.jpg', 'username': None, 'uploaded_at': 1743004094, 'text': 'image_26032025_16_45_54_009123m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 7.867813110351562e-06 elapsed_time : order_list_meta_photo_and_scores 1.52587890625e-05 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003569364547729492 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21735300, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027454853057861328 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698279, 'mtr_portfolio_id': 21733447, 'dashboard_result_id': 9639529, '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_P21733447_26-03-2025_16_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21733450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21733451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21733452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21733453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21733454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21733455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21733456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21733457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21733458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21733459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21733460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21733461, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698279, 'mtr_portfolio_id': 21734263, 'dashboard_result_id': 9639530, '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_P21734263_26-03-2025_16_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21734264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21734265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21734266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21734267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21734268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21734269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21734271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21734272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21734273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21734274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21734275, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698279, 'mtr_portfolio_id': 21735300, 'dashboard_result_id': 9639532, '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_P21735300_26-03-2025_17_02_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21735301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21735302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21735303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21735304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21735305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21735306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21735307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21735308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21735309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21735310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21735311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21735312, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698279, 'mtr_portfolio_id': 21735815, 'dashboard_result_id': 9639535, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 21733447 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': 2693209, 'mtr_portfolio_id': 21733447, 'created_at': datetime.datetime(2025, 3, 26, 16, 32, 58), 'result': '0.04344358042473777', 'result_long': None, 'result_double': None}] Qualite : 0.04344358042473777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21733447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21733447_26-03-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21733447 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_P21733447_26-03-2025_16_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21733450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21733451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21733452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21733453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21733454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21733455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21733456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21733457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21733458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21733459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21733460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21733461, 'pht': 3726}}" where mtr_portfolio_id = 21733447 and dashboard_run_id = 1698279 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`=21733447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9639529, 0.04344358042473777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21733447_26-03-2025_16_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21733450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21733451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21733452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21733453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21733454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21733455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21733456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21733457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21733458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21733459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21733460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21733461, '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 = 21734263 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': 2693323, 'mtr_portfolio_id': 21734263, 'created_at': datetime.datetime(2025, 3, 26, 16, 47, 59), 'result': '0.035100811440391545', 'result_long': None, 'result_double': None}] Qualite : 0.035100811440391545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21734263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21734263_26-03-2025_16_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21734263 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_P21734263_26-03-2025_16_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21734264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21734265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21734266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21734267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21734268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21734269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21734271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21734272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21734273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21734274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21734275, 'pht': 3726}}" where mtr_portfolio_id = 21734263 and dashboard_run_id = 1698279 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`=21734263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9639530, 0.035100811440391545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21734263_26-03-2025_16_48_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21734264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21734265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21734266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21734267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21734268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21734269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21734271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21734272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21734273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21734274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21734275, '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 = 21735300 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': 2693396, 'mtr_portfolio_id': 21735300, 'created_at': datetime.datetime(2025, 3, 26, 17, 3, 59), 'result': '0.03953451944661678', 'result_long': None, 'result_double': None}] Qualite : 0.03953451944661678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21735300 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_17_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21735300 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_P21735300_26-03-2025_17_03_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21735301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21735302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21735303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21735304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21735305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21735306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21735307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21735308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21735309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21735310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21735311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21735312, 'pht': 3726}}" where mtr_portfolio_id = 21735300 and dashboard_run_id = 1698279 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`=21735300 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9639532, 0.03953451944661678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21735300_26-03-2025_17_03_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21735301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21735302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21735303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21735304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21735305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21735306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21735307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21735308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21735309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21735310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21735311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21735312, '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 = 21735815 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21735815 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21735815 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21735815%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21735815 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21735815 and dashboard_run_id = 1698279 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21733447,21734263,21735300,21735815) result : ((1347525708,), (1347525712,), (1347525738,), (1347525763,), (1347525790,), (1347526360,), (1347526810,), (1347526879,), (1347526984,), (1347527040,), (1347527197,), (1347527199,), (1347527207,), (1347527276,), (1347527320,), (1347527346,), (1347527792,), (1347527818,), (1347527854,), (1347527886,), (1347528091,), (1347528095,), (1347528105,), (1347528109,), (1347528112,), (1347528117,), (1347528178,), (1347528181,), (1347528201,), (1347528485,), (1347528500,), (1347528504,), (1347528509,), (1347528662,), (1347528680,), (1347528738,), (1347528748,), (1347528755,), (1347528771,), (1347528787,), (1347528817,), (1347528830,), (1347528844,), (1347528852,), (1347528871,), (1347528903,), (1347528909,), (1347528914,), (1347528917,), (1347528921,), (1347528984,), (1347529001,), (1347529006,), (1347529015,), (1347529030,), (1347529034,), (1347529057,), (1347529060,), (1347529062,), (1347529185,), (1347529197,), (1347529208,), (1347529238,), (1347529267,), (1347529333,), (1347529475,), (1347529483,), (1347529500,), (1347529507,), (1347529657,), (1347529660,), (1347529674,), (1347529677,), (1347529732,), (1347529704,), (1347529709,), (1347529717,), (1347529722,), (1347529726,), (1347529784,), (1347529789,), (1347529806,), (1347529885,), (1347530182,), (1347530210,), (1347530235,), (1347530258,), (1347530284,), (1347530315,), (1347530357,), (1347530408,), (1347530467,), (1347530499,), (1347530532,), (1347530575,), (1347530834,), (1347530862,), (1347530892,), (1347530915,), (1347531202,), (1347531244,), (1347531289,), (1347531379,), (1347531428,), (1347531541,), (1347531544,), (1347531547,), (1347531629,), (1347531663,), (1347531715,), (1347531735,), (1347531795,), (1347532165,), (1347532235,), (1347532277,), (1347532327,), (1347532476,), (1347532818,), (1347532853,), (1347532908,), (1347532956,), (1347532992,), (1347533057,), (1347533409,), (1347533472,), (1347533502,), (1347533519,), (1347533546,), (1347533961,), (1347534005,), (1347534055,), (1347534094,), (1347534134,), (1347534174,), (1347534438,), (1347534488,), (1347534536,), (1347534559,), (1347534789,), (1347534818,), (1347534852,), (1347534880,), (1347534911,), (1347534934,), (1347535242,), (1347535094,), (1347535100,), (1347535226,), (1347535519,), (1347535525,), (1347535530,), (1347535534,), (1347535538,), (1347535542,), (1347535654,), (1347535681,), (1347535723,), (1347536043,), (1347536096,), (1347536137,), (1347536151,), (1347536194,), (1347536204,), (1347536421,), (1347536426,), (1347536428,), (1347536430,), (1347536482,), (1347536484,), (1347536487,), (1347536489,), (1347536492,), (1347536526,), (1347536530,), (1347536537,), (1347536539,), (1347536540,), (1347536544,), (1347536564,), (1347536586,), (1347536589,), (1347536593,), (1347536597,), (1347536603,), (1347536621,), (1347536623,), (1347536645,), (1347536650,), (1347536654,), (1347536765,), (1347536788,), (1347536810,), (1347536826,), (1347536829,), (1347536841,), (1347536852,), (1347536860,), (1347536869,), (1347536871,), (1347536913,), (1347536916,), (1347536920,), (1347536924,), (1347536930,), (1347536986,), (1347536994,), (1347536997,), (1347537000,), (1347537002,), (1347538224,), (1347538304,), (1347538375,), (1347538684,), (1347538744,), (1347538800,), (1347538828,), (1347538886,), (1347539227,), (1347539034,), (1347539069,), (1347539110,), (1347539157,), (1347539593,), (1347539705,), (1347539773,), (1347539888,), (1347539992,), (1347540071,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21735300]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] map_info['map_portfolio_photo'] : {21735300: [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684, 1347538375, 1347538304, 1347538224, 1347537002, 1347537000, 1347536997, 1347536994, 1347536986, 1347536930, 1347536924, 1347536920, 1347536916, 1347536913, 1347536871, 1347536869, 1347536860, 1347536852, 1347536841, 1347536829, 1347536826, 1347536810, 1347536788, 1347536765, 1347536654, 1347536650, 1347536645, 1347536623, 1347536621, 1347536603, 1347536597, 1347536593, 1347536589, 1347536586, 1347536564, 1347536544, 1347536540, 1347536539, 1347536537, 1347536530, 1347536526, 1347536492, 1347536489, 1347536487, 1347536484, 1347536482, 1347536430, 1347536428, 1347536426, 1347536421, 1347536204, 1347536194, 1347536151, 1347536137, 1347536096, 1347536043, 1347535723, 1347535681, 1347535654, 1347535542, 1347535538, 1347535534, 1347535530, 1347535525, 1347535519, 1347535226, 1347535100, 1347535094]} final : True mtd_id 4302 list_pids : [1347539227, 1347538886, 1347538828, 1347538800, 1347538744, 1347538684] Looping around the photos to save general results len do output : 1 /21735300Didn'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, '2693396') ('4302', '21735300', '1347539227', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396') ('4302', None, None, None, None, None, None, None, '2693396') ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396') 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, '21735300', 'None', None, None, None, None, '2693396'), ('4302', '21735300', '1347539227', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538886', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538828', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538800', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538744', None, None, None, None, None, '2693396'), ('4302', '21735300', '1347538684', None, None, None, None, None, '2693396')] time used for this insertion : 0.01496267318725586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1807503700256348 time spend to save output : 0.015167236328125 total time spend for step 5 : 1.1959176063537598 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 (2693396) 2.22user 2.61system 0:12.85elapsed 37%CPU (0avgtext+0avgdata 158860maxresident)k 1400inputs+14104outputs (26major+72376minor)pagefaults 0swaps